Audiences
AuthTokens
Brands
Inbound
Lists
Messages
Notifications
Profiles
Tenants
User Preferences
User Tenants
User Tokens
Add single token to user
Adds a single token to a user and overwrites a matching existing token.
PUT
/
users
/
{user_id}
/
tokens
/
{token}
Copy
Ask AI
curl --request PUT \
--url https://api.courier.com/users/{user_id}/tokens/{token} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"token": "<string>",
"provider_key": "firebase-fcm",
"expiry_date": "<string>",
"properties": "<any>",
"device": {
"app_id": "<string>",
"ad_id": "<string>",
"device_id": "<string>",
"platform": "<string>",
"manufacturer": "<string>",
"model": "<string>"
},
"tracking": {
"os_version": "<string>",
"ip": "<string>",
"lat": "<string>",
"long": "<string>"
}
}'
Copy
Ask AI
This response has no body data.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The user's ID. This can be any uniquely identifiable string.
The full token string.
Body
application/json
Copy
Ask AI
curl --request PUT \
--url https://api.courier.com/users/{user_id}/tokens/{token} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"token": "<string>",
"provider_key": "firebase-fcm",
"expiry_date": "<string>",
"properties": "<any>",
"device": {
"app_id": "<string>",
"ad_id": "<string>",
"device_id": "<string>",
"platform": "<string>",
"manufacturer": "<string>",
"model": "<string>"
},
"tracking": {
"os_version": "<string>",
"ip": "<string>",
"lat": "<string>",
"long": "<string>"
}
}'
Copy
Ask AI
This response has no body data.
Assistant
Responses are generated using AI and may contain mistakes.