Skip to content

Delete Inboxes

POST
/v0/inboxes/delete
curl -s -X POST "https://api.yoagent.dev/v0/inboxes/delete" \
-H "Authorization: Bearer $YOAGENT_KEY" \
-H "Content-Type: application/json" \
-d '{"inbox_ids":["inb_01je56wqswfmn9pgbc1wq8tjgq"]}'

Delete inboxes with all their mail (up to 200): all of them or none — one the caller does not see is 404, one it may not delete (no inbox_delete on it, a catch-all) refuses them all.

Media typeapplication/json
InboxesDelete

Delete inboxes with all their mail: all of them or none.

object
inbox_ids
required
Inbox Ids

The inboxes to delete.

Array<string>
>= 1 items <= 200 items

Successful Response

An error (400, 401, 403, 404, 405, 409, 413, 429, 500, 503), in the one shape every call answers: Errors.