Skip to content
GET/api/{version}/objects/documents/{doc_id}
NameDescription
Acceptapplication/json (default) or application/xml
NameDescription
{doc_id}The document id field value.
curl -X GET -H "Authorization: {SESSION_ID}" \ https://myvault.veevavault.com/api/v26.1/objects/documents/565
{ "responseStatus": "SUCCESS", "document": { "id": 128, "version_id": "128_5_0", }, "attachments": [ { "id": 1901, "url": "https://myvault.veevavault.com/api/v26.1/objects/documents/128/attachments/1901" } ] }

This endpoint does not retrieve the number of versions of each attachment or the attachment metadata. The attachments attribute is displayed in the response for documents where attachments have been enabled on the document type (even if the document has no attachments).