latestOpenAPI 3.1.02026-08-1014497184.0 KB

8b99dca11019

mobile_push
apns

Fetch an APNs token

Fetches details of a specific APNs token belonging to the authenticated user. Returns information about the token's status, creation date, and any associated metadata. Users can only access their own tokens.

get/channels/mobile_push/apns/tokens/{token_id}

Path parameters

token_idstring required

Response

OK

app_idstring

The bundle identifier of the application registering this token. Use this to override the default identifier configured on the APNs integration.

created_atstring date-time required

The timestamp when the token was created.

device_tokenstring required

The APNs device token to register with MagicBell.

discarded_atstring date-time nullable

The timestamp when the token was discarded, if applicable.

idstring required

The unique identifier for the token.

installation_id'development' | 'production'

The APNs environment this token belongs to. If omitted we assume it targets production.

updated_atstring date-time nullable

The timestamp when the token metadata last changed.

Example response

{
  "created_at": "2021-01-01T00:00:00Z",
  "device_token": "eH0fLhuiRj2Np7UQ-opXAm:APA91bGtC-wH4sgW1jWkMKIZf7FYkm_RTQb7Jid7DfSJnCgivGYoRzhLrGxpcIF6yPjmbzAr6CKF-6phZkBasFUUfZmfdgcqfA_ZlZdVk6pSnon3LGzMumCzEJE0zgWoo_RUmVUVJUAt",
  "discarded_at": "2021-01-01T00:00:00Z",
  "id": "123",
  "installation_id": "development",
  "updated_at": "2021-01-01T00:00:00Z"
}