WhatsApp Templates

Create Media Handler

Use this endpoint to upload a media file and generate a handler ID for use in WhatsApp templates.
The media file must be provided (e.g., image, video or PDF) and its format specified.
After successful upload you receive a handler ID and URL for inclusion in the template header or body.

post/v3/metainfo/template/create_media_handler

Request

  • Base URL
    https://cpaaswa.netcorecloud.net/api
  • URL
    https://cpaaswa.netcorecloud.net/api/v3/metainfo/template/create_media_handler
  • Auth
    HTTP bearer

Request body multipart/form-data

filestring binary required

The media file to upload (image, video or document) for template usage.

formatstring required

The media type (e.g., image, video, document) to indicate how the file will be used.

Example request

{
  "format": "image"
}

Response

Media handler created successfully.

request_idstring
statusstring

Example response

{
  "request_id": "1760597071246044275-8060edd01cee09dc",
  "status": "success",
  "data": {
    "sample_id": "4::aW1hZ2UvanBlZw==:ARZ8UMUw5EtEthwrZVgIQKjA1hHlDNQXOnKvf5pNsmCyCwfuFdrcFoFE2EyYHVA8ZVZFmyqpt0A9WIC-bmbTVuMxReGbF7TB3NyELP0RXqCjpA:e:1760942672:878254782770621:100057778901584:ARaPLZmw78G7J9IKRFs",
    "url": "https://cpaas-media-us.s3.us-east-1.amazonaws.com/whatsapp-media-stage/Web%201920%20%E2%80%93%203_20251016064431_1760597071249.jpeg"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.