> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer.open-controls.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer.open-controls.com/_mcp/server.

# Authentication

`GET /api/v1/stigs` is public.

`GET /api/v1/stigs/{slug}/download` requires a SAMS bearer token in the `Authorization` header.

```http
Authorization: Bearer ss_token_app_your_application_token
```

## Validation Flow

Protected requests are validated against:

```text
https://sams.opencontrols.ai/api/v1/validate
```

If the bearer token is missing, malformed, expired, invalid, or attached to an inactive subscription, Stigviewer returns `401 Unauthorized`.

## Error Shape

```json
{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Missing or invalid Authorization header"
  }
}
```