Snapvisor Docs

Register a push device

Register the Snapvisor iOS app's APNs device token for the authenticated user, so builds that need their review reach the phone. Safe to repeat: the same token registered again moves to the caller and refreshes its environment. A user keeps at most 10 devices; registering more drops the least recently registered. A personal access token or the Snapvisor iOS app's own OAuth session may call it; other OAuth clients are refused.

POST
/me/devices

Register the Snapvisor iOS app's APNs device token for the authenticated user, so builds that need their review reach the phone. Safe to repeat: the same token registered again moves to the caller and refreshes its environment. A user keeps at most 10 devices; registering more drops the least recently registered. A personal access token or the Snapvisor iOS app's own OAuth session may call it; other OAuth clients are refused.

Authorization

AuthorizationBearer <token>

Authenticate as a user with a personal access token.

Send it as a bearer token in the Authorization header:

Authorization: Bearer <personal-access-token>

Personal access tokens act on behalf of the user that created them and are required by endpoints that perform user actions, such as reviewing builds and posting comments.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/me/devices" \  -H "Content-Type: application/json" \  -d '{    "token": "string",    "environment": "sandbox",    "bundleId": "string"  }'
{  "token": "string",  "environment": "sandbox"}