Drafts

List drafts

Messages drafted for the workspace, newest first. By default only the ones waiting for a member to review them in the Needle inbox.

GET

/api/v1/drafts

Query parameters

cursor

optional

string

limit

optional

integer

status

optional

"awaiting_review" | "sent" | "failed" | "discarded"

Defaults to the drafts waiting for review.

campaignId

optional

string · uuid

Only drafts from this campaign

leadId

optional

string · uuid

Only drafts to this lead

connectedAccountId

optional

string · uuid

Only drafts sent from this account

Response

200A page of drafts, newest first. Pass nextCursor as cursor for the next page.

drafts

object[]

nextCursor

string | null

requestId

string · uuid

Id of this request, for support and troubleshooting

Errors

  • 400: Bad request
  • 401: Unauthorized: missing or invalid API key
  • 403: Forbidden
  • 404: Not found
  • 422: Invalid request payload

Search docs

Search documentation, API reference, and MCP tools

We use cookies to enhance your experience on Needle and keep your data secure. Privacy Policy