Skip to main content
POST
/
uploadB64Document
Upload base64 document
curl --request POST \
  --url https://api.parcha.ai/api/v1/uploadB64Document \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "b64_document": "<string>",
  "document_name": "<string>"
}
'
{
  "url": "<string>",
  "expiration": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.parcha.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key obtained from your Parcha account settings. Include as Bearer token in the Authorization header.

Body

application/json
b64_document
string
required

Base64 encoded document

document_name
string
required

Name of the document

Response

Document uploaded successfully

url
string

Presigned URL for the document

expiration
string<date-time>

The expiration date and time (in UTC)