Check that a team can buy Pro in the iOS app
Before the iOS app offers an in-app purchase, check that the team can take it and get the RevenueCat app user id to buy under. The caller must administer the team. Refused with 409 when the team already has a live subscription (a team has exactly one billing source), and with 503 while in-app purchase is not switched on or its RevenueCat key is not configured. Writes nothing, so it is safe to repeat. A personal access token or the Snapvisor iOS app's own OAuth session may call it; other OAuth clients are refused.
Before the iOS app offers an in-app purchase, check that the team can take it and get the RevenueCat app user id to buy under. The caller must administer the team. Refused with 409 when the team already has a live subscription (a team has exactly one billing source), and with 503 while in-app purchase is not switched on or its RevenueCat key is not configured. Writes nothing, so it is safe to repeat. A personal access token or the Snapvisor iOS app's own OAuth session may call it; other OAuth clients are refused.
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
Path Parameters
Slug of the team that would be upgraded.
1 <= lengthResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/accounts/string/app-store-purchase"{ "appUserId": "string", "entitlement": "pro", "publicApiKey": "string"}Request deletion of your account POST
Email a confirmation link for deleting the authenticated user's personal account. Nothing is deleted until the person opens the link and confirms, so this call is safe to retry. A personal access token or the Snapvisor iOS app's own OAuth session may call it; other OAuth clients are refused. Agents use delete_account instead, which confirms with a confirmToken.
Register a push device POST
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.