SendbirdSendbird Chat Platform server-side API v3
POST/v3/users/{user_id}/push/{token_type}
Add a registration or device token
Adds a user's registration or device token to the Sendbird server so your server can send notification requests to push services on behalf of the user. A user can have up to 20 tokens of each type; the oldest token is deleted before a new one is added once the limit is reached, keeping only the 20 newest tokens.
Manage users, group channels, open channels, messages, metadata, moderation, bots, and announcements through the official Sendbird Chat Platform API v3. The complete boundary is the 83 REST endpoints reconstructed from a pinned official generated SDK revision; client realtime protocols and Chat SDKs are not part of this collection. Application data is the caller's private content, so Pontx does not proxy, cache, or aggregate it and callers use the local SDK/CLI directly.
Request
- operationId
addARegistrationOrDeviceToken- Server
https://api-{app_id}.sendbird.com- Authentication
- apiTokenAuth
Request parameters
user_id
pathstringrequired
User identifier.
user_id_123
token_type
pathstringrequired
token type field.
gcm
Request body
AddARegistrationOrDeviceTokenRequest
Properties: apns_device_tokengcm_reg_tokenhuawei_device_token
Responses
200
AddARegistrationOrDeviceTokenResponseapplication/json
Request succeeded.
Properties: tokentypeuser
400
SendbirdApiErrorapplication/json
Request parameters are invalid.
Properties: codemessage
401
SendbirdApiErrorapplication/json
Unauthenticated or the API token is invalid.
Properties: codemessage
403
SendbirdApiErrorapplication/json
Access to the resource is forbidden.
Properties: codemessage
404
SendbirdApiErrorapplication/json
The requested resource was not found.
Properties: codemessage
429
SendbirdApiErrorapplication/json
Rate limited; retry later.
Properties: codemessage
500
SendbirdApiErrorapplication/json
Upstream internal error.
Properties: codemessage
{
"token": "next_page_token_abc",
"type": "default"
}