GET
/
tenants
curl --request GET \
  --url https://api.courier.com/tenants \
  --header 'Authorization: Bearer <token>'
{
  "cursor": "<string>",
  "has_more": true,
  "items": [
    {
      "id": "<string>",
      "name": "<string>",
      "parent_tenant_id": "<string>",
      "default_preferences": {
        "items": [
          {
            "status": "OPTED_OUT",
            "has_custom_routing": true,
            "custom_routing": [
              "direct_message"
            ],
            "id": "<string>"
          }
        ]
      },
      "properties": {},
      "user_profile": {},
      "brand_id": "<string>"
    }
  ],
  "next_url": "<string>",
  "url": "<string>",
  "type": "list"
}

Authorizations

Authorization
string
header
required

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

Query Parameters

parent_tenant_id
string | null

Filter the list of tenants by parent_id

limit
integer | null

The number of tenants to return (defaults to 20, maximum value of 100)

cursor
string | null

Continue the pagination with the next cursor

Response

200 - application/json

The response is of type object.