Skip to main content
POST
/
accounts
cURL
curl --request POST \
  --url https://grid.squads.xyz/api/grid/v1/accounts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-grid-environment: <x-grid-environment>' \
  --data '{
  "email": "<string>",
  "memo": "<string>",
  "type": "email"
}'
{
  "data": {
    "created_at": "2023-11-07T05:31:56Z",
    "email": "<string>",
    "expires_at": "2023-11-07T05:31:56Z",
    "memo": "<string>",
    "otp_sent": true,
    "status": "<string>",
    "type": "<string>"
  },
  "metadata": {
    "request_id": "<string>",
    "timestamp": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Your Grid API key from the Grid Dashboard

Headers

x-grid-environment
string
required

Solana network environment (sandbox, devnet, mainnet)

x-idempotency-key
string | null

Idempotency key to prevent duplicate account creation

Body

application/json
  • Option 1
  • Option 2
email
string
required
type
enum<string>
required
Available options:
email
memo
string | null

Response

Account created successfully

data
object
required
  • Option 1
  • Option 2
metadata
object
required