# getTermsDocument

Source: /openapi/thomas-federated.openapi.json

## Operation

| Method | URL |
|---|---|
| GET | https://dev-cxi-api.thomas.co/v1/terms-documents/{version} |

| Field | Value |
|---|---|
| operationId | getTermsDocument |
| method | GET |
| server | https://dev-cxi-api.thomas.co/v1 |
| path | /terms-documents/{version} |
| tags | `Legal Documents` |
| summary | Get an archived terms/privacy document by version (public) |
| badges | None |

## Request Parameters

| Name | In | Required | Schema | Description |
|---|---|---|---|---|
| version | path | true | string |  |

## Request Body

None.

## Responses

| Status | Description | Schema refs |
|---|---|---|
| 200 | Archived document envelope `{ data, meta }` (camelCase) | #/components/schemas/TermsDocumentEnvelopeResponseDto |
| 304 | ETag matched If-None-Match |  |
| 404 | No terms document exists for the given version | #/components/schemas/ApiErrorResponseDto |
| 429 | Rate limit exceeded. | #/components/schemas/ApiErrorResponseDto |

### Response 429 headers

| Name | Description | Schema |
|---|---|---|
| Retry-After | Seconds until the rate-limit block expires before retrying. | {"type":"integer","minimum":0} |
| RateLimit-Limit | Configured request limit for the active rate-limit window. | {"type":"integer"} |
| RateLimit-Remaining | Requests remaining in the active rate-limit window; zero when blocked. | {"type":"integer"} |
| RateLimit-Reset | Seconds until the rate-limit block expires. | {"type":"integer","minimum":0} |

## Artifact Examples

### Response 404 example

```json
{
  "statusCode": 404,
  "message": "Terms document not found",
  "error": "TERMS_DOCUMENT_NOT_FOUND"
}
```

### Response 429 example

```json
{
  "statusCode": 429,
  "message": "ThrottlerException: Too Many Requests",
  "error": "HTTP_TOO_MANY_REQUESTS"
}
```
