Admin account-deletion queue
const url = 'https://api.deploybase.eu/api/v1/api/v1/admin/deletions';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.deploybase.eu/api/v1/api/v1/admin/deletions \ --header 'Authorization: <Authorization>'Returns every outstanding deletion request with days-to-deadline and an overdue flag, plus every non-completed purge job (running, pending, failed, blocked). Closes the DEP-197 class of failure: a statutory clock nobody can see.
Authorizations
Section titled “ Authorizations ”Responses
Section titled “ Responses ”OK
object
object
object
Counts summarises the two lists so the dashboard can badge without recounting.
object
Jobs are every non-completed purge job: running, pending, failed and blocked. A failed erasure silently blows a statutory deadline, which is the whole reason this endpoint exists (spec §12).
object
object
object
RequestedBy is copied from teams.deletion_requested_by at claim time, so the job still names the requester after the teams row is anonymised.
PendingRequests are teams in pending_deletion, soonest deadline first.
object
DaysToDeadline is whole days until purge_after, negative once it has passed. Computed here rather than in SQL so the operator sees the same clock the worker uses, and nil when the deadline was cleared (a blocked request waiting on a human).
Overdue means purge_after has passed and the team is still pending. Combined with LegalHold this is the invisible-statutory-clock case that DEP-197 was: a request nobody can see, held open by a control nobody remembers setting.
Example
{ "data": { "jobs": [ { "progress": [ { "status": "pending" } ], "status": "pending" } ], "pending_requests": [ { "status": "active" } ] }}Unauthorized
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Forbidden
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Internal Server Error
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Service Unavailable
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}