curl --request POST \
--url https://documents.absconsulting.com/v1/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file'{
"id": "<string>",
"object": "<string>",
"filename": "<string>",
"url": "<string>",
"bytes": 123,
"created_at": 123,
"metadata": {}
}Upload a file that can be used across various endpoints. Individual files can be up to 512 MB. The supporrted file formats are: .pdf, .docx, .pptx, .xlsx, .md, .csv, .html, .xhtml, .png, .jpeg, .tiff, .bmp, .adoc, .webp.
This endpoint has a rate limit of 30 requests per user per minute.
curl --request POST \
--url https://documents.absconsulting.com/v1/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file'{
"id": "<string>",
"object": "<string>",
"filename": "<string>",
"url": "<string>",
"bytes": 123,
"created_at": 123,
"metadata": {}
}Bearer token for authentication
The File object (not file name) to be uploaded.
A set of up to 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
Successful Response
The ID of the file.
The type of object.
The name of the file, including the extension.
The URL of the file.
The size of the file in bytes.
The timestamp when the file was created.
The metadata of the file.
Show child attributes
Was this page helpful?