Drafts

List drafts

Requires scope: read or draft.

get/v1/drafts

Request

  • Base URL: https://api.mails.ai
  • URL: https://api.mails.ai/v1/drafts
  • Auth: HTTP bearer

Query parameters

limitinteger

Page size (1–100).

cursorstring

Opaque cursor from a previous page's next_cursor.

agent_idstring

Filter by agent id or name. A key tied to one agent always reads that agent's mail, and naming another agent is a 403.

statusstring

Filter by draft status.

Response

A page of drafts.

has_moreboolean required

True when more items follow this page: pass next_cursor as cursor to get them.

next_cursorstring

Pass as cursor to fetch the next page. Absent on the last page.

Changes

No recorded changes to this operation across all 1 revision of this API.