Skip to navigation

Delete Inbox

Deletion is asynchronous. A 202 means it has started. While it runs, requests for this inbox return 409 resource_deleting. Poll GET /v0/pods/{pod_id}/inboxes/{inbox_id} until it returns 404, then the address is free. If the inbox still has its own API keys, delete returns 409 cannot_delete: revoke those keys first.

CLI:

agentmail pods inboxes delete --pod-id <pod_id> --inbox-id <inbox_id>

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

pod_idstringRequired
ID of pod.
inbox_idstringRequired
The ID of the inbox.

Response

Deletion started. The inbox is removed in the background.

Errors

404
Not Found Error
409
Conflict Error