Get a deletion
GET/deletions/{task_id}
The SDKs do not wrap this method yet; call it over HTTP.
Poll a generation deletion task returned by DELETE /generations/{generation_id}. Poll until state is completed or cancelled; only completed means the content was removed. See the Generation deletion guide for the states, phases and blocked reasons.
Errors: 404 "Deletion not found" when the id is not a UUID, does not exist, is not yours, or is not a generation deletion. 404 "Not Found" when generation deletion is not enabled for your API client.
Get a deletion
curl https://agents.lumalabs.ai/v1/deletions/$TASK_ID \ -H "Authorization: Bearer $LUMA_AGENTS_API_KEY"200 example
{ "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", "blocked_reason": "fk_dependency", "completed_at": "2019-12-27T18:11:19.117Z", "delete_deadline": "2019-12-27T18:11:19.117Z", "overdue": true, "phase": "stopping", "requested_at": "2019-12-27T18:11:19.117Z", "resource_id": "resource_id", "resource_type": "generation", "scheduled_at": "2019-12-27T18:11:19.117Z", "state": "waiting", "updated_at": "2019-12-27T18:11:19.117Z"}Returns Examples
200 example
{ "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", "blocked_reason": "fk_dependency", "completed_at": "2019-12-27T18:11:19.117Z", "delete_deadline": "2019-12-27T18:11:19.117Z", "overdue": true, "phase": "stopping", "requested_at": "2019-12-27T18:11:19.117Z", "resource_id": "resource_id", "resource_type": "generation", "scheduled_at": "2019-12-27T18:11:19.117Z", "state": "waiting", "updated_at": "2019-12-27T18:11:19.117Z"}