Get a device registration
Get the full details of a device.
Path parameters
-
device_id
string Required Device's ID.
GET
/push/deviceRegistrations/{device_id}
curl \
-X GET https://rest.ably.io/push/deviceRegistrations/{device_id}
Response examples (2XX)
{
"id": "string",
"clientId": "string",
"formFactor": "phone",
"metadata": {},
"platform": "ios",
"deviceSecret": "string",
"push.recipient": {
"transportType": "apns",
"deviceToken": "string",
"registrationToken": "string"
},
"push.state": "Active"
}
Response examples (2XX)
{
"id": "string",
"clientId": "string",
"formFactor": "phone",
"metadata": {},
"platform": "ios",
"deviceSecret": "string",
"push.recipient": {
"transportType": "apns",
"deviceToken": "string",
"registrationToken": "string"
},
"push.state": "Active"
}
Response examples (default)
# Headers
x-ably-errorcode: 42
x-ably-errormessage: string
x-ably-serverid: string
# Payload
{
"message": "string",
"code": 42,
"statusCode": 42,
"href": "string",
"serverId": "string"
}
Response examples (default)
# Headers
x-ably-errorcode: 42
x-ably-errormessage: string
x-ably-serverid: string
# Payload
{
"message": "string",
"code": 42,
"statusCode": 42,
"href": "string",
"serverId": "string"
}