curl --request POST \
--url http://localhost:8000/api/v1/media/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'files=<string>' \
--form files.items='@example-file'[
{
"id": 123,
"filename": "<string>",
"url": "<string>",
"file_size": 123,
"mime_type": "<string>",
"source_type": "upload",
"date_added": "2023-11-07T05:31:56Z",
"date_updated": "2023-11-07T05:31:56Z",
"width": 123,
"height": 123,
"external_id": "<string>",
"external_metadata": {},
"tags": [
"<string>"
],
"alt_text": "<string>"
}
]curl --request POST \
--url http://localhost:8000/api/v1/media/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'files=<string>' \
--form files.items='@example-file'[
{
"id": 123,
"filename": "<string>",
"url": "<string>",
"file_size": 123,
"mime_type": "<string>",
"source_type": "upload",
"date_added": "2023-11-07T05:31:56Z",
"date_updated": "2023-11-07T05:31:56Z",
"width": 123,
"height": 123,
"external_id": "<string>",
"external_metadata": {},
"tags": [
"<string>"
],
"alt_text": "<string>"
}
]The access token received from the authorization server in the OAuth 2.0 flow.
Company ID
Successful Response
upload, stock, ai_generated