POST
/
smart-accounts
curl --request POST \
  --url https://grid.squads.xyz/api/v0/grid/smart-accounts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Grid-Environment: <x-grid-environment>' \
  --data '{
  "grid_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "memo": "<string>",
  "mpc_provider_info": null,
  "policies": {
    "admin_address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "authorities": [
      {
        "address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
        "permissions": [
          "CAN_INITIATE"
        ]
      }
    ],
    "threshold": 5,
    "time_lock": 1
  }
}'
{
  "created_at": "2021-01-01T00:00:00Z",
  "grid_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "policies": {
    "admin_address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "authorities": [
      {
        "address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
        "permissions": [
          "CAN_INITIATE"
        ]
      }
    ],
    "threshold": 5,
    "time_lock": 1
  },
  "smart_account_address": "<string>"
}

Authorizations

Authorization
string
header
required

API Key for authentication

Headers

X-Grid-Environment
string
required

The environment you’re using. Can be sandbox or production.

Body

application/json

Response

200
application/json

Smart account created successfully

The response is of type object.