# Get document Retrieve a document. Endpoint: GET /v2/documents/{documentId} Version: v2 Security: Bearer ## Path parameters: - `documentId` (string, required) Document Id Example: "f49d00fe-1eda-4304-ba79-a980f565281d" ## Response 200 fields (application/json): - `document` (object, required) Document details. - `document.url` (string, required) S3 location of the document. Example: "https://s3.amazonaws.com/bucket-name/folder-name/file-name" - `document.documentId` (string, required) Unique identifier of the document. Example: "f49d00fe-1eda-4304-ba79-a980f565281d" - `document.documentMetadata` (object, required) Metadata related to document. - `document.documentMetadata.documentType` (string, required) Document type. Enum: "BOARDING_PASS", "CONFIRMATION", "INVOICE", "VISA", "MISCELLANEOUS", "OTHERS", "TASK_PROCESSOR", "EVENT_COVER_IMAGE", "LOGO_IMAGE" - `document.documentMetadata.entityType` (string, required) Entity type against which the document is to uploaded. Enum: "PNR", "COMPANY", "AIR_ITINERARY", "EVENT", "LOCATION_IMAGE" - `document.documentMetadata.entityId` (string, required) Entity Id for the given entity type. Example: "123124" - `document.documentMetadata.entityMetadata` (any, required) - `document.documentMetadata.name` (string, required) Document name. Example: "BoardingPass.pdf" ## Response 401 fields (application/json): - `debugIdentifier` (string) Link to debug the error internally. - `errorMessages` (array) - `errorMessages.errorCode` (string) Error code to identify the specific errors. - `errorMessages.message` (string) Message containing details of error. - `errorMessages.errorParameters` (array) Error message parameters. - `errorMessages.errorParameters.name` (string) Parameter name - `errorMessages.errorParameters.value` (string) Parameter value - `errorMessages.errorDetail` (string) More details about the error. ## Response 403 fields (application/json): - `debugIdentifier` (string) Link to debug the error internally. - `errorMessages` (array) - `errorMessages.errorCode` (string) Error code to identify the specific errors. - `errorMessages.message` (string) Message containing details of error. - `errorMessages.errorParameters` (array) Error message parameters. - `errorMessages.errorParameters.name` (string) Parameter name - `errorMessages.errorParameters.value` (string) Parameter value - `errorMessages.errorDetail` (string) More details about the error. ## Response 404 fields (application/json): - `debugIdentifier` (string) Link to debug the error internally. - `errorMessages` (array) - `errorMessages.errorCode` (string) Error code to identify the specific errors. - `errorMessages.message` (string) Message containing details of error. - `errorMessages.errorParameters` (array) Error message parameters. - `errorMessages.errorParameters.name` (string) Parameter name - `errorMessages.errorParameters.value` (string) Parameter value - `errorMessages.errorDetail` (string) More details about the error.