Messages

Upload media file

Changed on

Upload a media file using API key authentication and get back a publicly accessible URL. The URL can be used as attachmentUrl when sending inbox messages.

Files are stored in temporary storage and auto-delete after 7 days. The effective maximum is about 4.5 MB: the multipart body goes through the hosting platform's request body limit, which answers 413 before the endpoint's own 25 MB check is reached. For larger files use POST /v1/media/presign and upload straight to storage.

Unlike /v1/media/upload (which uses upload tokens for end-user flows), this endpoint takes your API key in the Authorization header, for programmatic use.

post/v1/media/upload-direct

Request

  • Base URL: https://zernio.com/api
  • URL: https://zernio.com/api/v1/media/upload-direct
  • Auth: HTTP bearer

Response

File uploaded successfully

urlstring

Publicly accessible URL for the uploaded file

filenamestring

Generated unique filename

contentTypestring

MIME type of the file

sizeinteger

File size in bytes

Changes

    • warning

      added the new account enum value to the / response property for the response status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status