SendbirdSendbird 聊天平台服务端 API v3
POST/v3/users/{user_id}/push/{token_type}
添加注册或设备令牌
将指定 user_id 用户的注册或设备令牌添加到 Sendbird 服务器,用于代表服务器向推送服务发送通知请求。每种令牌类型各限 20 个;达到上限时添加新令牌前会先删除最旧的令牌,仅保留最新的 20 个。
通过官方 Sendbird Chat Platform API v3 管理用户、群组频道、开放频道、消息、元数据、审核、机器人与公告。完整边界为固定官方生成 SDK revision 重建的 83 个 REST Endpoint;客户端实时协议与 Chat SDK 不在本集合内。应用数据为调用方私有内容,Pontx 不代理、缓存或聚合,调用方使用本地 SDK/CLI 直连。
请求
- operationId
addARegistrationOrDeviceToken- 服务器
https://api-{app_id}.sendbird.com- 认证
- apiTokenAuth
请求参数
user_id
pathstring必填
用户 ID
user_id_123
token_type
pathstring必填
token type 字段。
gcm
Body 参数
AddARegistrationOrDeviceTokenRequest
字段: apns_device_tokengcm_reg_tokenhuawei_device_token
响应
200
AddARegistrationOrDeviceTokenResponseapplication/json
请求成功。
字段: tokentypeuser
400
SendbirdApiErrorapplication/json
请求参数无效。
字段: codemessage
401
SendbirdApiErrorapplication/json
未认证或 API 令牌无效。
字段: codemessage
403
SendbirdApiErrorapplication/json
无权限访问该资源。
字段: codemessage
404
SendbirdApiErrorapplication/json
未找到指定资源。
字段: codemessage
429
SendbirdApiErrorapplication/json
请求频率超限,请稍后重试。
字段: codemessage
500
SendbirdApiErrorapplication/json
上游服务内部错误。
字段: codemessage
{
"token": "next_page_token_abc",
"type": "default"
}