Upload Media

posthttps://api.telnyx.com/v2/whatsapp_media

Upload media. Accepted media types include image/jpeg, image/png, video/mp4, video/3gpp, audio/aac, audio/ogg.

curl -X POST \ --header "Content-Type: application/json" \ --header "Accept: application/json" \ --header "Authorization: Bearer YOUR_API_KEY" \ --form '[email protected]"/path/to/mediafile/my-image.jpg"' --form 'media_content_type="image/jpeg"' --form 'whatsapp_user_id="15125551212"' \ https://api.telnyx.com/v2/whatsapp_media

Parameters

Responses

200
Successful response
default
Unexpected error

Success Response

{
  "data": {
    "id": "f043afd0-f0ae-4b9c-ab3d-696fb4c8cd68",
    "record_type": "whatsapp_media_id"
  }
}

...

gethttps://api.telnyx.com/v2/whatsapp_media/{whatsapp_user_id}/{media_id}

...

...

Parameters

Responses

Success Response

...

deletehttps://api.telnyx.com/v2/whatsapp_media/{whatsapp_user_id}/{media_id}

...

...

Parameters

Responses

Success Response

Was this page helpful?