List the entities you can access

​

The entities this credential can read, with the external_id to pass as entity on every other route. An API key lists its own entity. Signed in with OAuth, it lists the entities in your organization you can see in the T0 app; match the one the user means by name or country, and ask them when more than one could apply.

Responses

  • application/json
  • The credential was refused: none sent (CAPI11), an API key that is not valid (CAPI15), or an OAuth sign-in that has expired (CAPI16), was not issued for this API (CAPI17), names an organization T0 does not hold (CAPI18) or a membership that is no longer usable (CAPI19). detail says what to do.

Request Example for get/v1/entities
curl https://api.t0.ai/v1/entities \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "data": [
    {
      "external_id": "string",
      "name": "string",
      "country": "string"
    }
  ]
}