Removes one or more allowed referrers from the library. The operation is asynchronous: referrers transition to status = deleting and a worker removes them from Bunny CDN before the database row is ...
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
DELETE /library/{library_id}?action=refer
{library_id}?action=referRemoves one or more allowed referrers from the library. The operation is asynchronous: referrers transition to status = deleting and a worker removes them from Bunny CDN before the database row is destroyed.
?action=referis required. Without it, the gateway returns405 Unsupported method.
AuthorizationRequires a valid API token in the
Authorizationheader (withoutBearerprefix). Thelibrary_idmust belong to the authenticated user.
HTTP Method & Path
DELETE /library/{library_id}
Base URL: https://api-v2.pandavideo.com.br
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
library_id | string (uuid v4) | yes | Library ID owned by the authenticated user |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
action | string | yes | Fixed value: refer |
Request Body
Content-Type: application/json
Accepts a single object or an array of objects. Validation is strict (additionalProperties: false in Ajv).
| Field | Type | Required | Description |
|---|---|---|---|
refer_id | string (uuid v4) | yes | ID of the referrer to remove |
[
{ "refer_id": "789e4567-e89b-12d3-a456-426614174999" }
]Side effects
- Each referrer transitions to
status = deletingin the database. - A message is pushed to SQS — the refer worker removes the entry from Bunny CDN.
- Once the CDN sync completes, the row is destroyed permanently.
- An audit log entry (
remove domain) is queued under thesecuritycategory.
Response
Success Response (200)
{ "message": "Refers is being removed" }
Asynchronous removalThe response confirms acceptance, not completion. To verify removal, poll
GET /library/{library_id}?action=referuntil the entry disappears.
Error Responses
| Status | When |
|---|---|
400 | Validation: refer_id missing, invalid UUID, or unknown property in body |
400 | Refer {id} not found — any of the supplied refer_ids does not exist |
500 | Internal error |
Example Usage
cURL — remove a single referrer
curl -X DELETE \
-H "Authorization: $PANDA_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"refer_id":"789e4567-e89b-12d3-a456-426614174999"}' \
"https://api-v2.pandavideo.com.br/library/123e4567-e89b-12d3-a456-426614174000?action=refer"cURL — bulk remove
curl -X DELETE \
-H "Authorization: $PANDA_API_TOKEN" \
-H "Content-Type: application/json" \
-d '[
{"refer_id":"789e4567-e89b-12d3-a456-426614174999"},
{"refer_id":"abc12345-e89b-12d3-a456-426614174000"}
]' \
"https://api-v2.pandavideo.com.br/library/123e4567-e89b-12d3-a456-426614174000?action=refer"Related
- List referrers:
GET /library/{library_id}?action=refer - Add referrers:
POST /library/{library_id}?action=refer - Toggle refer policy:
POST /library/{library_id}?action=referValidation
