Documents

Upload a document

Uploads a document up to 6MB via multipart/form-data. For files over 6MB, first request a pre-signed URL from GET /v1/documents/upload_url, PUT the file there, then confirm the upload by calling this same endpoint with application/json and the document_id from that step.

post/v1/documents

Request

  • Base URL: https://api.documentpro.ai
  • URL: https://api.documentpro.ai/v1/documents
  • Auth: API key in header x-api-key

Request body

document_idstring uuid required
file_namestring required

Response

Document uploaded (or confirmed).

document_idstring uuid
user_idstring uuid
source_namestring
s3_keystring

Temporary S3 URL for the source file.

file_namestring
file_extensionstring
num_pagesinteger
meta_tagsobject
created_atstring date-time
updated_atstring date-time

Example response

{
  "source_name": "api"
}

Changes

No recorded changes to this operation across all 1 revision of this API.