v1

latestSwagger 2.0Apache 2.02026-07-1334102.9 MB
Tokens

List Scopes of a Personal Access Token

Retrieve the scopes associated with a specific personal access token. Scopes determine the level of access and operations permitted by the token.

Returns A JSON:API-compliant response containing an array of scopes.

Errors - 404 Not Found: Token or scopes not accessible by user.

get/tokens/{_id}/scopes/

Path parameters

_idstring required

The token's unique identifier.

Response

Successfully retrieved tokens scopes.

Example response

{
  "data": [
    {
      "id": "osf.full_write",
      "type": "scopes",
      "attributes": {
        "description": "Full write access to OSF resources."
      }
    }
  ]
}