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.
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.
