curl --request POST \
--url https://api.open.cx/media/upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'file=<string>' \
--form 0.file='@example-file'{
"id": "<string>",
"url": "<string>"
}Upload an image to your organization storage. Useful for training content, help center, and other rich-text fields.
Request body: multipart/form-data with one part named file. Use a filename and Content-Type that match the image (PNG, JPEG, GIF, or WebP).
Limits: 5 MB maximum. Bytes are checked against the declared type (magic-byte validation).
curl --request POST \
--url https://api.open.cx/media/upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'file=<string>' \
--form 0.file='@example-file'{
"id": "<string>",
"url": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The file to upload. 5MB max.
Was this page helpful?