Audiences
AuthTokens
Brands
Inbound
Lists
Messages
Notifications
Profiles
Tenants
User Preferences
User Tenants
Tenants
Get a List of Tenants
GET
/
tenants
Copy
Ask AI
curl --request GET \
--url https://api.courier.com/tenants \
--header 'Authorization: Bearer <token>'
Copy
Ask AI
{
"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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
Filter the list of tenants by parent_id
The number of tenants to return (defaults to 20, maximum value of 100)
Continue the pagination with the next cursor
Response
200 - application/json
The response is of type object
.
Copy
Ask AI
curl --request GET \
--url https://api.courier.com/tenants \
--header 'Authorization: Bearer <token>'
Copy
Ask AI
{
"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"
}
Assistant
Responses are generated using AI and may contain mistakes.