post
https://sandbox.fiatrepublic.com/api/v1/documents
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
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/pdfimage/jpegimage/pngapplication/jsonaudio/mpeg(MP3 files)audio/mp4(M4A files)
- Body: Binary content of your document.
File size limits
- Documents and images (
PDF,JPEG,PNG,JSON): up to 30 MB - Audio files (
MP3,M4A): up to 70 MB
File name requirements
- Max length: 250 characters
- Allowed characters: Letters, numbers, spaces, and the following symbols:
_().'- - Note: Plus signs (
+) are strictly prohibited and will result in anINVALID_REQUEST_DATAerror. If you are downloading files from external portals, ensure URL-encoded spaces (+) are renamed back to standard spaces before uploading.
- Documents and images (
📝 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"]
}
