<!-- Generated by scripts/build-docs.js. Edit docs/swagger.yaml or docs/guides/, then run `npm run docs:build`. -->

# The granted scopes

`GET https://{apiId}.execute-api.us-west-1.amazonaws.com/{stage}/v1/scopes`

Module: Identity · operationId: `getScopes` · Auth: `Authorization: Bearer <token>`
Web page: https://apidocs.sequipay.com/#/api/get-scopes

Returns just the scopes the token carries. Touches no database. Requires a valid token but **no specific scope**.

## Example request

```bash
curl -X GET "https://{apiId}.execute-api.us-west-1.amazonaws.com/{stage}/v1/scopes" \
  -H "Authorization: Bearer $SEQUIFI_TOKEN"
```

## Responses

### 200: The granted scopes.

- `status` (integer) Example: `200`.
- `message` (string) Example: `success`.
- `data` (object)
  - `scopes` (array of string)

### 401: Missing, invalid, expired, or revoked token (from the authorizer).

### 500: An infrastructure or data error. The endpoint fails closed — a 500, never a partial or empty-looking result.

```json
{
  "status": 500,
  "message": "internal error",
  "data": null
}
```
