Autional Autional
API Reference GitHub autional.com →

POST /communication/push-tokens

Register a device push token (iOS APNs / Android FCM / Web Push / Desktop) for a specified user under the current tenant, for subsequent push notification sending. Duplicate token registration will automatically deactivate the old record, ensuring each token is unique and up-to-date in the database. References: ePrivacy Directive 2002/58/EC, CAN-SPAM Act.

Communication Service `bearerAuth` application/json

Request Body

Schema: dto.CreatePushTokenRequest

FieldTypeRequiredExampleConstraintsDescription
platform string Yes ios enum: `ios`, `android`, `web`, `desktop`
token string Yes device_token_xxx
user_id string Yes usr_abc123
device_id string No iPhone15-001

Responses

StatusDescriptionSchema
201Registration successful, returns token detailsdto.PushTokenDataResponse
400Invalid request parametersdto.SimpleResponse
401Unauthenticated or invalid tokendto.SimpleResponse
403Insufficient permissions to access this resourcedto.SimpleResponse
500Internal server errordto.SimpleResponse

Referenced Schemas

dto.PushTokenDataResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.PushTokenResponse No
message string No
timestamp string No

dto.PushTokenResponse

Push token information

FieldTypeRequiredExampleConstraintsDescription
created_at string No 2026-04-15T10:00:00Z
device_id string No iPhone15-001
id string No pt_abc123
is_active boolean No True
platform string No ios
user_id string No usr_abc123

dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No