Audiences
AuthTokens
Brands
Inbound
Lists
Messages
Notifications
Profiles
Tenants
User Preferences
User Tenants
AuthTokens
Create an auth token
Returns a new access token.
POST
/
auth
/
issue-token
Copy
Ask AI
curl --request POST \
--url https://api.courier.com/auth/issue-token \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"scope": "read:preferences",
"expires_in": "<string>"
}'
Copy
Ask AI
{
"token": "<string>"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200 - application/json
The response is of type object
.
Copy
Ask AI
curl --request POST \
--url https://api.courier.com/auth/issue-token \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"scope": "read:preferences",
"expires_in": "<string>"
}'
Copy
Ask AI
{
"token": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.