Skip to main content
Upload an image, GIF, or video so you can reference it by URL in a rich card standalone or carousel message, instead of hosting the file yourself.

Endpoint

string
required
Your OneXtel API key.
string
application/json — specifies the response format.
This is a multipart/form-data request, not JSON.

Request parameters

string
required
Registered RCS sender profile name (your RCS bot/sender ID).
string
required
Type of RCS message the media will be used with, e.g. transactional or promotional.
file
The media file to upload (multipart), e.g. an image, GIF, or video. Required unless you supply url instead.
string
A public URL to fetch the media from, instead of uploading a file.
Supply exactly one of file or url. Sending neither is rejected with Either file or url must be provided, and sending both with Only one file or url can be provided.

cURL

Response

Response
string
Unique identifier for the uploaded media.
string
Result status, e.g. success.
integer
HTTP status code of the upload operation.
string
Hosted URL of the uploaded media. Pass this as fileUrl in a rich card’s cardContent.media.contentInfo.fileUrl when sending a rich card standalone or carousel message.

Error codes