GET
/
accounts
curl --request GET \
  --url https://api.togai.com/accounts \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "G234DZZKBKACATFFGVGEMERFI",
      "togaiAccountId": "account.dsvvre314.dcs314",
      "customerId": "ACME_CUSTOMER_1",
      "togaiCustomerId": "customer.dsvvre314.dcs314",
      "name": "ACME Enterprise - Account2",
      "status": "ACTIVE",
      "aliases": [
        {
          "alias": "account2@acme.com"
        },
        {
          "alias": "+1234567890"
        }
      ]
    }
  ],
  "nextToken": "eyJsYXN0SXRlbUlkIjogInN0cmluZyIsICJwYWdlU2l6ZSI6IDEwMCwgInNvcnRPcmRlciI6ICJhc2MifQ==",
  "context": {
    "pageSize": 10
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

nextToken
string
Example:

"eyJsYXN0SXRlbUlkIjogInN0cmluZyIsICJwYWdlU2l6ZSI6IDEwMCwgInNvcnRPcmRlciI6ICJhc2MifQ=="

pageSize
number
Example:

10

Response

200
application/json
Response for list customers request
data
object[]

Structure of an account

nextToken
string
context
object