Skip to main content
POST
/
api
/
cdn-purge
Purge Image CDN cache
curl --request POST \
  --url https://convertly.sh/api/cdn-purge \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "urls": [
    "<string>"
  ],
  "tags": [
    "<string>"
  ]
}
'
{
  "ok": true,
  "purged": [
    "<string>"
  ],
  "purgedTags": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Dashboard-generated Convertly API key. Keys currently begin with cvly_.

Body

application/json
urls
string<uri>[]
required

Full CDN URLs to evict (exact match including query string).

Maximum array length: 30
tags
string[]

Cache-Tag values from CDN responses: workspace:{userId}, asset:{fileId}, or origin:{slug}.

Required array length: 1 - 30 elements
Maximum string length: 128

Response

CDN cache purged

ok
boolean
required
purged
string<uri>[]
required
purgedTags
string[]
required