POST
/
accounts
/
verify
Verify account OTP
curl --request POST \
  --url https://grid.squads.xyz/api/grid/v1/accounts/verify \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-grid-environment: <api-key>' \
  --header 'x-idempotency-key: <x-idempotency-key>' \
  --data '{
  "email": "user@example.com",
  "otp_code": "123456",
  "encryption_public_key": "base64encodedkey..."
}'
{
  "data": {
    "address": "11111111111111111111111111111112",
    "policies": {
      "signers": [
        {
          "address": "11111111111111111111111111111112",
          "role": "primary",
          "permissions": [
            "Initiate"
          ],
          "provider": "privy"
        }
      ],
      "threshold": 5,
      "time_lock": 2,
      "admin_address": "11111111111111111111111111111112"
    },
    "grid_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "authentication": [
      {
        "provider": "<string>",
        "session": {
          "user_id": "<string>",
          "session": {}
        }
      }
    ]
  },
  "metadata": {
    "request_id": "123e4567-e89b-12d3-a456-426614174000",
    "timestamp": "2023-07-15T14:30:00.000Z"
  }
}

Authorizations

Authorization
string
header
required

API key authentication with Bearer token. Include the API key in the Authorization header as 'Bearer YOUR_API_KEY'

x-grid-environment
string
header
required

Environment identifier for the Grid API. Use 'sandbox' for testing on devnet or 'production' for production on mainnet.

Headers

x-idempotency-key
string<uuid>
required

Unique key to ensure idempotent operations

Body

application/json

Response

200
application/json

Account verified successfully

The response is of type object.