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
headerrequired

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

Query Parameters

nextToken
string
pageSize
number

Response

200 - application/json
data
object[]
nextToken
string
context
object