DocumentUploads

Upload a document

Changed on

Upload a document file to receive a document ID that can be referenced in other API calls (e.g. attaching a document to a clinical record). The uploaded file is stored securely and a presigned URL is returned in the response for temporary access. Accepted file types are PDF, JPEG, and PNG. Maximum file size is 50 MB.

post/api/2026-01-01/document-uploads

Request

  • Base URL
    https://jdpdocsdemo.jane.qa
  • URL
    https://jdpdocsdemo.jane.qa/api/2026-01-01/document-uploads
  • Auth
    OAuth 2
    Authorization code: https://login.id.janeapp.com/realms/jane_partner_sandbox/protocol/openid-connect/auth?response_type=code&resource=https://jdpdocsdemo.jane.qa&prompt=consent
    Token URL: https://login.id.janeapp.com/realms/jane_partner_sandbox/protocol/openid-connect/token scopes: document_uploads:create

Request body multipart/form-data

filestring binary required

The document file to upload. Accepted formats: PDF, JPEG, PNG. Maximum size: 50 MB.

Response

The document was uploaded

idstring uuid required

Identifier for the document uploaded.

file_pathstring uri required

Presigned URL providing temporary access to the uploaded document. This URL expires after 10 minutes. To retrieve a fresh URL, use the GET endpoint with the document ID.

created_atstring date-time required

ISO 8601 timestamp when the document was uploaded.

Changes