Skip to main content
POST
/
media
/
upload
Upload Media
curl --request POST \
  --url https://api.getmaito.com/v1/media/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "items": [
    {
      "fileName": "image.png",
      "contentType": "image/png",
      "base64Data": "iVBORw0KGgo..."
    }
  ]
}
'
{
  "data": {
    "urls": [
      "<string>"
    ]
  }
}

Authorizations

Authorization
string
header
default:your-api-key
required

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

Body

application/json
items
object[]
required
Minimum array length: 1

Response

Successful response.

ok
enum<boolean>
required
Available options:
true
data
object
required