File Server API (Media ID)
Use the File Server API to upload media files and generate a media ID for RCS campaigns or message templates.
Overview
This API allows you to upload media files, such as images or documents, to the RML Connect RCS platform and associate the file with a specific bot. The uploaded file can then be used in RCS campaigns or message templates.
Endpoint details
| Field | Value |
|---|---|
| Endpoint URL | https://apis.rmlconnect.net/rcs/file_server/v2/uploadfile |
| Method | POST |
| Content-Type | application/json |
| Authentication Required | Yes |
Authentication
Pass a valid access token in the Authorization header.
Request headers
| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Valid access token for authentication. |
| Content-Type | Yes | Request content type. The current API page lists application/json. |
Form data parameters
Use multipart/form-data to upload the media file and associate it with the required bot details.
The current page does not define the individual form-data field names. Use the field names provided by your Route Mobile implementation or support team.
Response
{
"file_id": "9ccf38d6-2a77-11f0-8dae-0242ac130002",
"message": "File uploaded successfully"
}Response fields
| Field | Type | Description |
|---|---|---|
| file_id | string | Media file ID generated after upload. |
| message | string | Upload result message. |
Updated 11 days ago
Did this page help you?