Account

Register or refresh a native APNs device

post/api/v1/me/apns-devices

Request

  • Base URL: https://spoonjoy.app
  • URL: https://spoonjoy.app/api/v1/me/apns-devices
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __session
    • OAuth 2 (authorization code, authorization URL https://spoonjoy.app/oauth/authorize, token URL https://spoonjoy.app/oauth/token, scopes: account:write)

Headers

X-Request-Idstring

Optional client-generated request id. Spoonjoy echoes it in X-Request-Id and the REST envelope for logs, retries, and support.

Request body

clientMutationIdstring required
deviceIdstring required
platform'ios' | 'ipados' | 'macos' required
environment'development' | 'production' required
tokenstring required

Raw APNs token. Spoonjoy stores only a hash and returns only tokenPrefix.

deviceNamestring nullable
appVersionstring nullable

Response

Success

okunknown required
requestIdstring required

Changes

No recorded changes to this operation across all 1 revision of this API.