Download an output file
const url = 'https://api.sonicdocs.ai/v1/documents/example/artifacts/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.sonicdocs.ai/v1/documents/example/artifacts/example \ --header 'Authorization: Bearer <token>'Status: planned. Contract v1.0.0; this endpoint is not deployed. Required scope: documents:read.
Download a file listed in this document’s published manifest.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”File bytes with the listed media type. All text formats use UTF-8.
object
object
object
object
object
object
Example
{ "schema_version": "1.0", "pages": [ { "unit": "pt", "blocks": [ { "type": "text" } ] } ]}Headers
Section titled “Headers”Example
attachment; filename="document.txt"The caller must supply a valid bearer API key.
object
Included in service-generated upload errors to locate intake diagnostics.
Example generated
{ "title": "example", "status": 1, "code": "example", "detail": "example", "trace_id": "example"}Headers
Section titled “Headers”Example
BearerSee service-interfaces.md for the per-operation status and code mapping.
object
Included in service-generated upload errors to locate intake diagnostics.
Example generated
{ "title": "example", "status": 1, "code": "example", "detail": "example", "trace_id": "example"}See service-interfaces.md for the per-operation status and code mapping.
object
Included in service-generated upload errors to locate intake diagnostics.
Example generated
{ "title": "example", "status": 1, "code": "example", "detail": "example", "trace_id": "example"}See service-interfaces.md for the per-operation status and code mapping.
object
Included in service-generated upload errors to locate intake diagnostics.
Example generated
{ "title": "example", "status": 1, "code": "example", "detail": "example", "trace_id": "example"}See service-interfaces.md for the per-operation status and code mapping.
object
Included in service-generated upload errors to locate intake diagnostics.
Example generated
{ "title": "example", "status": 1, "code": "example", "detail": "example", "trace_id": "example"}See service-interfaces.md for the per-operation status and code mapping.
object
Included in service-generated upload errors to locate intake diagnostics.
Example generated
{ "title": "example", "status": 1, "code": "example", "detail": "example", "trace_id": "example"}default
Section titled “default”See service-interfaces.md for the per-operation status and code mapping.
object
Included in service-generated upload errors to locate intake diagnostics.
Example generated
{ "title": "example", "status": 1, "code": "example", "detail": "example", "trace_id": "example"}