File Retrieve
Markdown for LLMsFetches a file from a public URL and returns its bytes, converting a .docx to PDF on the way — so a client can show a document from a link as a PDF without downloading and converting it itself. Send the address as fileUrl; any publicly reachable URL is accepted.
A PDF comes back unchanged and a .docx as a PDF. Anything else is returned as fetched — an HTML page comes back as HTML. The response is the file itself, not the standard JSON envelope, with Content-Type application/octet-stream and no Content-Disposition header, so name the file yourself.
A URL that cannot be fetched — not well-formed, on a host that does not resolve, or answering with an error such as 404 — is rejected with 400 FILE_COULD_NOT_BE_RETRIEVED. A request without fileUrl matches no operation and is answered with 404 NOT_FOUND from the gateway.
Send a bearer token. A call without one is rejected at the gateway with 401 AUTHORIZATION_ERROR; a recipient's tid is not accepted.
JWT token to authenticate the request.
In: header
API key, sent as a request header.
In: header
Query Parameters
Absolute URL of the file to fetch, URL-encoded in the query string. Mandatory: leaving it out matches no operation and is answered with 404 NOT_FOUND from the gateway. Any publicly reachable URL is accepted; one that cannot be fetched is rejected with 400 FILE_COULD_NOT_BE_RETRIEVED.
uriResponse Body
application/octet-stream
application/json
application/json
application/json
curl -X GET "https://example.com/signatures/file/retrieve?fileUrl=https%3A%2F%2Fwww.w3.org%2FWAI%2FER%2Ftests%2Fxhtml%2Ftestfiles%2Fresources%2Fpdf%2Fdummy.pdf"{ "error": { "statusCode": 400, "message": "Bad Request", "innerErrors": [ { "code": "FILE_COULD_NOT_BE_RETRIEVED", "message": "Could not retrieve the file from the provided URL", "userMessage": "Could not retrieve the file from the provided URL" } ], "externalErrors": [] }, "origin": "GET https://api.doctavian.com/v1/signatures/file/retrieve", "dateTime": "2026-10-16T10:22:31.000Z", "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5", "operationId": "e7a3c1f90b2d4865a6c4e1f8d03b7a29"}{ "error": { "statusCode": 404, "message": "Not Found", "innerErrors": [ { "code": "NOT_FOUND", "message": "OperationNotFound", "userMessage": "Unable to match incoming request to an operation." } ] }, "origin": "", "dateTime": "2026-10-16T07:34:38.000Z"}{ "error": { "statusCode": 500, "message": "Internal Server Error", "innerErrors": [ { "code": "FUNCTION_EXECUTION_ERROR", "message": "An error ocurred during function execution", "userMessage": "An error ocurred during function execution", "eventId": "1d7e3b9a-5c2f-4a86-8e0b-6f4c1a9d2e53" } ], "externalErrors": [] }, "origin": "GET https://api.doctavian.com/v1/signatures/file/retrieve", "dateTime": "2026-10-16T10:41:20.000Z", "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5", "operationId": "9a4d2e6b1c8f43075e3b9a0d6c2f1e84"}