Recycle bin API

Recycle bin endpoints in the Brix REST API: 2 operations (GET, POST). Each lists its path, auth, required permission and a curl example.

View as Markdown · For AI agents: the full docs index is at /llms.txt

Base URL https://api.brixsignage.com. Send Authorization: Bearer $BRIX_API_KEY unless an operation says Auth: none or Auth: no API key. The Permission line names what the key must hold. See Authentication and scopes, Errors and rate limits and Pagination.

Every 4xx and 5xx response below returns this body:

FieldTypeDescription
errorstringMachine-readable code: unauthorized, forbidden, not_found, validation_error, conflict, rate_limited, internal_error, …
messagestringHuman-readable explanation. Safe to show an operator.
requestIdstringPresent on 5xx: quote it to support.

GET /v1/recycle-bin

Auth: Bearer token. Permission: screen.view.

List every deleted item across your workspace, including media, playlists, schedules, layouts, creatives, apps, and data sources. Each entry includes the deletion time and size, so items can be restored or permanently erased within the 30-day recovery window. Deleted screens are not included; screens have their own recovery endpoints. Notes. - Items deleted in the last 30 days, newest first. Each kind is listed only if the caller holds its view permission (playlist.view, media.view, …) where the item lives; a screen.view-only key sees only screens.

curl "https://api.brixsignage.com/v1/recycle-bin" \
  -H "Authorization: Bearer $BRIX_API_KEY"

Response 200: Success.

FieldTypeDescription
dataarray of object
data[].kindstring
data[].idstring
data[].namestring
data[].deletedAtstringISO-8601 timestamp (UTC).
data[].nodeIdstring | null
data[].sizeBytesintegerStored bytes (media); 0 for other kinds.
data[].usageBeforeDeleteintegerHow many places used it when it was deleted.
data[].thumbnailUrlstring | nullFor media: its stored address (may be an internal r2:// reference, not a public URL).

Response 401: Missing, expired or revoked bearer token.

Response 403: The token lacks the permission this operation needs (see x-brix-permission).

Response 5XX: Server error. The body carries a requestId to quote to support.

POST /v1/recycle-bin/{kind}/{id}/purge

Auth: Bearer token. Permission: screen.view.

Permanently erase one deleted item before the 30-day recovery window would otherwise remove it. For media, this also deletes the stored file. This action cannot be undone. Notes. - Irreversible. Besides the screen.view gate, the caller needs the kind's delete permission (media.delete, integration.delete for a banner, …).

ParameterInTypeRequiredDescription
kindpathstringyesscreen, playlist, schedule, layout, creative, app, media, signage, data-source, banner or media-folder.
idpathstringyesThe deleted item's id.
curl -X POST "https://api.brixsignage.com/v1/recycle-bin/{kind}/{id}/purge" \
  -H "Authorization: Bearer $BRIX_API_KEY"

Response 200: Success.

FieldTypeDescription
dataobject
data.idstring
data.kindstring
data.purgedtrue

Response 401: Missing, expired or revoked bearer token.

Response 403: You lack the kind's delete permission (playlist.delete, …) where the item lives.

Response 404: No such item in the recycle bin.

Response 422: Unknown kind.

Response 502: A stored file could not be removed; nothing was deleted.

Response 5XX: Server error. The body carries a requestId to quote to support.