Account

Fetch custodian-mode client details.

get

This endpoint returns the custodian-mode client details for authenticated users.

Authorizations
Responses
200

The request was successful.

application/json
get
GET /account HTTP/1.1
Host: studio-api.cheqd.net
x-api-key: YOUR_API_KEY
Accept: */*
{
  "customer": {
    "customerId": "text",
    "name": "text"
  },
  "paymentAccount": {
    "mainnet": "text",
    "testnet": "text"
  }
}
Deprecated

Fetch IdToken.

get

This endpoint returns IdToken as JWT with list of user roles inside

Authorizations
Responses
200

The request was successful.

application/json
get
GET /account/idtoken HTTP/1.1
Host: studio-api.cheqd.net
x-api-key: YOUR_API_KEY
Accept: */*
{
  "idToken": "text"
}

Create an client for an authenticated user.

post

This endpoint creates a client in the custodian-mode for an authenticated user

Authorizations
Body
Responses
200

The request was successful.

application/json
post
POST /account/create HTTP/1.1
Host: studio-api.cheqd.net
x-api-key: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 46

"user={'name':'text','primaryEmail':'text'}"
{
  "idToken": "text"
}

Was this helpful?