Skip to main content
POST
/
upload_file
Upload file
curl --request POST \
  --url https://api.heyy.io/api/v2.0/upload_file \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'file=<string>' \
  --form 'format=<string>'
{
  "data": {
    "id": "<string>",
    "name": "<string>",
    "size": 123,
    "format": "<string>",
    "url": "<string>",
    "createdAt": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
file
string
required

File to upload

format
string
required

File format

Response

200 - application/json
data
object
required