# Register a device token

URL: https://notifly.io/docs/api-reference/subscribers/SubscribersV1Controller_registerSubscriberDeviceToken

> POST /v1/subscribers/{subscriberId}/credentials/{providerId}/token. Idempotently register ONE deviceToken on the subscriber's providerId channel (e.g. fcm, apns). Re-registering the same token is a no-op (no duplicate). Pass previousToken to atomically swap a…

`POST /v1/subscribers/{subscriberId}/credentials/{providerId}/token`

Idempotently register ONE **deviceToken** on the subscriber's **providerId** channel
      (e.g. **fcm**, **apns**). Re-registering the same token is a no-op (no duplicate). Pass
      **previousToken** to atomically swap a rotated token. On overflow the OLDEST tokens are dropped.
      Never wipes the channel — unlike a whole-array credentials update. The token travels in the body
      because it may contain URL-hostile characters.
