# getTermsDocument

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

## Operation

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

| Field | Value |
|---|---|
| operationId | getTermsDocument |
| method | GET |
| server | https://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 |

## Artifact Examples

### Response 404 example

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