curl --request POST \
--url https://grid.squads.xyz/api/grid/v1/accounts:custom \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-grid-environment: <x-grid-environment>' \
--header 'x-idempotency-key: <x-idempotency-key>' \
--data '
{
"policies": {
"signers": [
{
"address": "<string>",
"permissions": [
"CAN_INITIATE"
],
"role": "primary",
"provider": "privy"
}
],
"threshold": 1,
"admin_address": "<string>",
"time_lock": 1
},
"memo": "<string>"
}
'{
"data": {
"address": "<string>",
"policies": {
"signers": [
{
"address": "<string>",
"permissions": [
"CAN_INITIATE"
]
}
],
"threshold": 1,
"adminAddress": "<string>",
"timeLock": 1
},
"type": "<string>"
},
"metadata": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}curl --request POST \
--url https://grid.squads.xyz/api/grid/v1/accounts:custom \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-grid-environment: <x-grid-environment>' \
--header 'x-idempotency-key: <x-idempotency-key>' \
--data '
{
"policies": {
"signers": [
{
"address": "<string>",
"permissions": [
"CAN_INITIATE"
],
"role": "primary",
"provider": "privy"
}
],
"threshold": 1,
"admin_address": "<string>",
"time_lock": 1
},
"memo": "<string>"
}
'{
"data": {
"address": "<string>",
"policies": {
"signers": [
{
"address": "<string>",
"permissions": [
"CAN_INITIATE"
]
}
],
"threshold": 1,
"adminAddress": "<string>",
"timeLock": 1
},
"type": "<string>"
},
"metadata": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}Your Grid API key from the Grid Dashboard
Solana network environment (sandbox, production)
Optional idempotency key to prevent duplicate account creation
Was this page helpful?