curl --request POST \
--url https://grid.squads.xyz/api/grid/v1/auth/verify \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"kms_provider": "privy",
"kms_provider_config": {
"encryption_public_key": "<string>",
"otp_id": "<string>"
},
"otp_code": "<string>"
}
'{
"address": "<string>",
"authentication": [
{
"provider": "privy",
"session": {
"Privy": {
"privy_access_token": "<string>",
"refresh_token": "<string>",
"session": {
"expires_at": 1,
"wallets": [
{
"additional_signers": [
{
"signer_id": "<string>",
"override_policy_ids": [
"<string>"
]
}
],
"address": "<string>",
"chain_type": "solana",
"created_at": 1,
"id": "<string>",
"policy_ids": [
"<string>"
],
"exported_at": 1,
"imported_at": 1,
"owner_id": "<string>",
"public_key": "<string>"
}
],
"authorization_key": "<string>",
"encrypted_authorization_key": "<unknown>"
},
"token": "<string>",
"user_id": "<string>"
}
}
}
],
"grid_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"policies": {
"signers": [
{
"address": "<string>",
"permissions": [
"CAN_INITIATE"
],
"role": "primary",
"provider": "privy"
}
],
"threshold": 1,
"admin_address": "<string>",
"time_lock": 1
}
}Complete the authentication process by verifying the OTP code
curl --request POST \
--url https://grid.squads.xyz/api/grid/v1/auth/verify \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"kms_provider": "privy",
"kms_provider_config": {
"encryption_public_key": "<string>",
"otp_id": "<string>"
},
"otp_code": "<string>"
}
'{
"address": "<string>",
"authentication": [
{
"provider": "privy",
"session": {
"Privy": {
"privy_access_token": "<string>",
"refresh_token": "<string>",
"session": {
"expires_at": 1,
"wallets": [
{
"additional_signers": [
{
"signer_id": "<string>",
"override_policy_ids": [
"<string>"
]
}
],
"address": "<string>",
"chain_type": "solana",
"created_at": 1,
"id": "<string>",
"policy_ids": [
"<string>"
],
"exported_at": 1,
"imported_at": 1,
"owner_id": "<string>",
"public_key": "<string>"
}
],
"authorization_key": "<string>",
"encrypted_authorization_key": "<unknown>"
},
"token": "<string>",
"user_id": "<string>"
}
}
}
],
"grid_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"policies": {
"signers": [
{
"address": "<string>",
"permissions": [
"CAN_INITIATE"
],
"role": "primary",
"provider": "privy"
}
],
"threshold": 1,
"admin_address": "<string>",
"time_lock": 1
}
}Your Grid API key from the Grid Dashboard
privy, dynamic, passkey, turnkey, external Authentication successful
Show child attributes
privy, dynamic, passkey, turnkey, external Show child attributes
Show child attributes
Show child attributes
x >= 0Show child attributes
solana, ethereum, cosmos, stellar, sui, tron, bitcoin-segwit x >= 0x >= 0x >= 0Show child attributes
Show child attributes
Show child attributes
CAN_INITIATE, CAN_VOTE, CAN_EXECUTE primary, backup privy, dynamic, passkey, turnkey, external x >= 0x >= 0Was this page helpful?