API referenceWhatsApp
POST /whatsapp/accounts/{id}/media
Upload a Postgale media (mediaId) or a public https URL (≤100 MB) to WhatsApp; send the returned id as whatsappMediaId (Meta keeps it 30 days)
POST
BearerAuthheader
AuthorizationBearer <token>API key sk_...
id*stringWhatsApp account id
application/json- body
Exactly one of mediaId or url
mediaId?stringPostgale media id
url?stringPublic https URL
mimeType?stringurl: overrides the response Content-Type
fileName?string{accountId, media}
application/json- response
accountId?stringmedia?curl -X POST 'https://example.com/api/v1/whatsapp/accounts/string/media' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "accountId": "string", "media": { "id": "string", "mimeType": "string", "size": 0, "fileName": "string" }}DELETE /whatsapp/accounts/{id}/templates/{templateId} DELETE
Delete this template (this language); allLanguages=true deletes every language of its name. name skips looking the name up
GET /whatsapp/accounts/{id}/media/{waMediaId} GET
Media info; download=1 streams the bytes instead (Content-Type, Content-Length, Content-Disposition: attachment). Works for inbound attachment ids