Skip to main content
DELETE
/
{media_id}
Delete media
curl --request DELETE \
  --url https://api.kapso.ai/meta/whatsapp/{media_id} \
  --header 'X-API-Key: <api-key>'
{
  "success": true
}

Authorizations

X-API-Key
string
header
required

Project API key for authentication. This is the recommended authentication method.

Get your API key from the Kapso dashboard under Project Settings > API Keys.

Path Parameters

media_id
string
required

Media ID returned from upload

Query Parameters

phone_number_id
string

Optional - verify media belongs to this phone number

Response

Media deleted successfully

success
boolean
Example:

true