Download archive link
Get a temporary download URL for the zip of a READY archive link.
Endpoint
| Property | Value |
|---|---|
| URL | POST /archive-link/download |
| Method | POST |
| Auth | R-Auth: <company-jwt> |
| Content-Type | application/json |
| Base URL | Stage Environment https://api-fr-stage.docnova.ai/ Production Environment https://api-fr.docnova.ai/ |
Example Request
curl --location '{{baseUrl}}/archive-link/download' \
--header 'Content-Type: application/json' \
--header 'R-Auth: {{companyJwt}}' \
--data-raw '{
"token": "{{token}}"
}'
Request body
{
"token": "1bb56def-1031-4fbb-bb8c-69b49691f482"
}
| Field | Type | Required | Description |
|---|---|---|---|
token | UUID | Yes | Archive link token from Create archive link or List archive links |
Response
{
"downloadUrl": "https://...",
"expiresInSeconds": 600
}
Response fields
| Field | Description |
|---|---|
downloadUrl | Temporary URL of the zip file. Open it with a plain GET, no R-Auth header is needed |
expiresInSeconds | Validity of downloadUrl in seconds. Call this endpoint again for a new URL |
Errors
| HTTP | Description |
|---|---|
401 | Missing or expired JWT |
403 | The user is not allowed to manage archive links for this company |
404 | Archive link not found |
409 | The link is not READY yet. Retry after the status changes |
410 | The link has expired. Create a new one |