contact@agentmail.ccDiscord
DocumentationAPI ReferenceChangelog
DocumentationAPI ReferenceChangelog
  • API Reference
Logo
contact@agentmail.ccDiscord
API ReferenceInboxesDrafts

Delete Draft

DELETE
/v0/inboxes/:inbox_id/drafts/:draft_id
DELETE
/v0/inboxes/:inbox_id/drafts/:draft_id
1from agentmail import AgentMail
2
3client = AgentMail(
4 base_url="https://api.agentmail.to",
5 api_key="YOUR_TOKEN_HERE"
6)
7
8client.inboxes.drafts.delete(
9 inbox_id="inbox_id",
10 draft_id="draft_id"
11)
Try it
Was this page helpful?
Previous

List Metrics

Next
Built with
List Metrics

Path parameters

inbox_idstringRequired
ID of inbox.
draft_idstringRequired
ID of draft.

Headers

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

Errors

ID of inbox.
ID of draft.

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