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

# Authenticated health check

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

Module: Health · operationId: `getPing` · Auth: `Authorization: Bearer <token>`
Web page: https://apidocs.sequipay.com/#/api/get-ping

Proves the authorizer → API Gateway chain end to end. Touches no database; echoes back the company and scopes the authorizer resolved from the token. 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/ping" \
  -H "Authorization: Bearer $SEQUIFI_TOKEN"
```

## Responses

### 200: The token is valid; the resolved identity is echoed back.

- `ok` (boolean) Example: `true`.
- `companyId` (string, nullable): The company the token belongs to.
- `scopes` (array of string)

```json
{
  "ok": true,
  "companyId": "cmp_01H8X…",
  "scopes": [
    "users:read"
  ]
}
```

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