/accounts/{accountId}/drafts
Get drafts for an account
Get a paginated list of email drafts for a specific account
Parameters
accountId
string Unique account identifier assigned by Riposte. You may also provide the custom user ID set during authentication; the API resolves it to the canonical account.
acct_123456789
Additional parameters
page
string
page
string 1-indexed page number to return when using offset pagination.
1
limit
string
limit
string Maximum number of items to include per page.
50
pageToken
string
pageToken
string Opaque token returned from a previous request for page-based pagination.
WyJjdXJzb3IiLCIxMjM0Il0=
cursor
string
cursor
string Cursor identifier returned from a previous response when using cursor-based pagination.
cursor_2024-02-15T10:00:00Z
Returns
Paginated list of drafts stored for an account.
curl -X GET "http://localhost:8080/accounts/{accountId}/drafts"
{
"drafts": [
{
"id": "draft_01HZVBFQ1ZPQF52TJPMM4P5N3S",
"subject": "Product launch follow-up"
}
],
"pagination": {
"page": 1,
"limit": 50,
"total": 5,
"totalPages": 1,
"hasNext": false,
"hasPrev": false
}
}