GET /documents/{documentId}

Headers

  • Authorization string Required

    Authorization header

Path parameters

  • documentId integer Required

    The ID of the document to retrieve.

Responses

  • 200 application/json

    Document retrieved successfully

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string
    • Access-Control-Allow-Credentials string
    • X-Trace-Id string
    Hide response attributes Show response attributes object
    • documentId integer Required

      Identifier for the document

    • contentType string Required

      MIME type of the document. Currently only 'application/pdf' is returned.

    • downloadUrl string(uri) Required

      URL to download the document, typically a presigned URL with limited validity

GET /documents/{documentId}
curl \
 --request GET 'https://rest.api.24sevenoffice.com/v1/documents/{documentId}' \
 --header "Authorization: string"
Response examples (200)
# Headers
Access-Control-Allow-Origin: string
Access-Control-Allow-Credentials: string
X-Trace-Id: string

# Payload
{
  "documentId": 12345,
  "contentType": "application/pdf",
  "downloadUrl": "https://attachment.api.24sevenoffice.com/download/abc123?signature=xyz"
}