Download a legal document
Redirects to a short-lived presigned URL for the document PDF. Available for any currently published document, and for any document the user has already accepted, so a copy of what they agreed to stays reachable after the version is superseded. Session auth only.
GET
https://api.omnifence.ai/api/v1/me/terms/documents/{id}/fileRedirects to a short-lived presigned URL for the document's PDF. Follow the redirect to download the file.
Available for any currently published document, and for any document the user has already accepted, so a copy of what they agreed to stays reachable after a newer version supersedes it. Any other document id returns 404.
Session auth only. This endpoint is not usable with an API key.
Request#
Headers#
| Name | Type | Required | Description |
|---|---|---|---|
Authorization |
string | Yes | Your API key as a Bearer token: Bearer YOUR_API_KEY. |
Path parameters#
| Name | Type | Required | Description |
|---|---|---|---|
id |
string (uuid) | Yes |
Responses#
302 Found#
Redirect to the presigned PDF URL.