Get account deletion status
const url = 'https://api.deploybase.eu/api/v1/api/v1/team/deletion';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/team/deletion \ --header 'Authorization: <Authorization>'Returns the outstanding deletion request (status, requested_at, purge_after) and, once the purge has started or been attempted, the job’s per-step progress. 404 when the account has neither a request nor a purge job.
Authorizations
Section titled “ Authorizations ”Responses
Section titled “ Responses ”OK
object
object
object
AlreadyPending marks an idempotent re-request: the response describes the request that was already outstanding, and the clock was NOT reset.
object
Kind is copied from teams.deletion_kind at claim time and decides Progress (DEP-763). Rows from before DEP-763 default to account in the database.
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.
Kind is which erasure was requested: account (the team and the requester’s account) or team (this team only). DEP-763.
Example
{ "data": { "job": { "kind": "account", "progress": [ { "status": "pending" } ], "status": "pending" }, "kind": "account", "status": "active" }}Unauthorized
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Not Found
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" }}Live a8b7eb1d built