Skip to main content
POST
Upload a media file

Authorizations

apiKey
string
header
required

API key from Settings → API keys.

apiSecret
string
header
required

Secret shown once when the API key is created.

Path Parameters

accountId
string
required

Your Gallabox account ID. Must be the API key's own account. A 24-character hexadecimal ID.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

Body

application/json
mediaBase64
string
required

The file's content, Base64-encoded.

Minimum string length: 1
mediaMimeType
string
required

The file's MIME type, for example image/jpeg.

Minimum string length: 1
mediaName
string

File name.

Response

The file was uploaded.

mediaId
string
required

Use this ID to send the file in a message.