Create Document

⚠️

Important Header Notice

Due to platform restrictions, we are unable to modify certain headers in the autogenerated code, please follow specifications provided below.


📤 Request

This endpoint expects a multipart/form-data request with two parts: file and metadata.


📁 File Part

  • Purpose: Carries the binary content of the document.
  • Headers within part:
    • Content-Disposition: form-data; name="file"; filename="your_document_name.pdf"
    • Content-Type: Must be one of the supported file types:
      • application/pdf
      • image/jpeg
      • image/png
      • application/json
  • Body: Binary content of your document.

📝 Metadata Part

  • Purpose: Provides structured information about the document.
  • Headers within part:
    • Content-Disposition: form-data; name="metadata"
    • Content-Type: application/json
  • Body: JSON object describing the document.
{
  "type": "DOCUMENT_TYPE",
  "description": "Optional description of the document",
  "relatedEntityIds": ["entityId1", "entityId2"]
}

 
Language
Credentials
OAuth2
Click Try It! to start a request and see the response here!