Skip to main content
POST
/
api
/
v1
/
media
Upload media
curl --request POST \
  --url https://quizquail.com/api/v1/media \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "file_name": "<string>",
    "storage_path": "<string>",
    "mime_type": "<string>",
    "size_bytes": 123,
    "url": "<string>",
    "created_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

API key authentication. Prefix your key with Bearer in the Authorization header.

Keys follow the format qq_... and can be scoped to specific permissions.

Body

multipart/form-data
file
file
required

The file to upload

Response

Uploaded media file

data
object
required