Snapvisor Docs

Ask the user for more permissions

Get a single-use link (15 minutes) where the user approves extra permission tiers for this same connection; once approved, retry the refused call. Use it when a call is refused with SCOPE_MISSING.

POST
/me/scopes/request

Get a single-use link (15 minutes) where the user approves extra permission tiers for this same connection; once approved, retry the refused call. Use it when a call is refused with SCOPE_MISSING.

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/scopes/request" \  -H "Content-Type: application/json" \  -d '{    "tiers": [      "read"    ]  }'
{  "url": "http://example.com",  "expires_in": -9007199254740991,  "what": "string"}