Get a registration or device token owner
Retrieves a user who owns a registration or device token. You can pass gcm, huawei, or apns for FCM registration token, HMS device token, or APNs device token, respectively, in the token_type parameter for the push notification service you are using.
HTTP request
Note: If you are using the in-app channel in Delight AI agent, the endpoint for your API request should start with
https://api-{application_id}.svc.delight.ai/v3instead ofhttps://api-{application_id}.sendbird.com/v3. For more details, refer to our Delight AI agent guide.
Parameters
The following table lists the parameters that this action supports.
Required
| Parameter name | Type | Description |
|---|---|---|
token_type | string | Specifies the type of a token. Acceptable values are gcm, huawei, and apns for FCM, HMS, and APNS respectively. |
token | string | Specifies the registration or device token of a user. |
Response
If successful, this action returns the ID of a user who owns a token in the response body.
In the case of an error, an error object is returned. A detailed list of error codes is available here.