Signatures

Envelope Attachment Download

Markdown for LLMs
GET
/signatures/envelope/{envelopeId}/attachment/{attachmentId}/download

Downloads one attachment of an envelope, as the bytes that were uploaded. attachmentId is the id signatures-envelope-attachment-upload returned for the file, and envelopeId the envelope it was uploaded to.

A recipient downloads with the tid from their link and no bearer token. Without a tid, a bearer token is required, and the caller must be the envelope's creator or a signer on it; a call with neither is rejected with 401 AUTHORIZATION_ERROR.

No bearer token is required when tid is sent. A recipient acting from the link in their email is identified by that tid instead of a token. The API key is still required, as on every operation: send it in the X-Api-Key header or the x-api-key query parameter. When the call carries no bearer token, the response carries no userId.

Authorization

AuthorizationBearer <token>

JWT token to authenticate the request.

In: header

X-Api-Key<token>

API key, sent as a request header.

In: header

Path Parameters

envelopeId*string

Id of the envelope the attachment was uploaded to. A value that is not a GUID matches no operation and returns a bodiless 404.

Formatuuid
attachmentId*string

Id of the attachment, as signatures-envelope-attachment-upload returned it in files[].id. A GUID that matches no attachment on the envelope is rejected with 404 NOT_FOUND_BY_ID; a value that is not a GUID matches no operation and returns a bodiless 404.

Formatuuid

Query Parameters

tid?string

Transaction token identifying one recipient position on one envelope. It reaches the recipient in the link of their notification email — or, for an inpersonsigner, reaches the host named in hostEmail — and signatures-envelope-list returns it as transactionTokenId on entries for positions the caller holds.

Send it to download without a bearer token. A GUID that matches no token is rejected with 404 ENVELOPE_NOT_FOUND_TID.

Formatuuid

Response Body

application/octet-stream

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/signatures/envelope/407a5449-8e45-48c5-bfee-9642c17a0d3d/attachment/9a9543dc-62fb-488a-a5e5-f759e0697220/download?tid=6c82c35c-ded7-4b49-83a1-e5fed49a0e69"
Empty
{  "error": {    "statusCode": 401,    "message": "Unauthorized",    "innerErrors": [      {        "code": "AUTHORIZATION_ERROR",        "message": "Authorization header is missing.",        "userMessage": "Authorization header is missing."      }    ]  },  "origin": "GET https://api.doctavian.com/v1/signatures/envelope/{envelopeId}/attachment/{attachmentId}/download",  "dateTime": "2026-10-15T09:51:05.000Z"}
{  "error": {    "statusCode": 403,    "message": "Forbidden",    "innerErrors": [      {        "code": "FILE_ACCESS_DENIED",        "message": "The requested file does not belong to the authenticated user.",        "userMessage": "You don't have access to this file."      }    ],    "externalErrors": []  },  "origin": "GET https://api.doctavian.com/v1/signatures/envelope/{envelopeId}/attachment/{attachmentId}/download",  "dateTime": "2026-10-15T09:51:05.000Z",  "operationId": "0c3f55ccb8f84748d070d964638ba069"}
{  "error": {    "statusCode": 404,    "message": "Not Found",    "innerErrors": [      {        "code": "NOT_FOUND_BY_ID",        "message": "The specified resource was not found.",        "userMessage": "The specified file was not found with the Id: 407a5449-8e45-48c5-bfee-9642c17a0d3d/ffdfff74-d8c6-4895-b5a9-63ce3a09ef26."      }    ],    "externalErrors": []  },  "origin": "GET https://api.doctavian.com/v1/signatures/envelope/{envelopeId}/attachment/{attachmentId}/download",  "dateTime": "2026-10-15T09:51:05.000Z",  "operationId": "3120e6cf62e992fcfd8793571274dc36"}
{  "error": {    "statusCode": 500,    "message": "Internal Server Error",    "innerErrors": [      {        "code": "FILE_DOWNLOAD_FAILED",        "message": "Failed to read the requested file from storage.",        "userMessage": "Something went wrong while downloading. Please try again or contact support."      }    ],    "externalErrors": []  },  "origin": "GET https://api.doctavian.com/v1/signatures/envelope/{envelopeId}/attachment/{attachmentId}/download",  "dateTime": "2026-10-15T09:51:05.000Z",  "operationId": "4772c81a48b9a2c068dccca2c6723188"}