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>",
"type": "email",
"memo": "<string>"
}
'{
"data": {
"created_at": "2023-11-07T05:31:56Z",
"email": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"otp_sent": true,
"status": "<string>",
"type": "<string>",
"memo": "<string>"
},
"metadata": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}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>",
"type": "email",
"memo": "<string>"
}
'{
"data": {
"created_at": "2023-11-07T05:31:56Z",
"email": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"otp_sent": true,
"status": "<string>",
"type": "<string>",
"memo": "<string>"
},
"metadata": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}Your Grid API key from the Grid Dashboard
Solana network environment (sandbox, devnet, mainnet)
Idempotency key to prevent duplicate account creation
Account created successfully
Was this page helpful?