myMailLedger
query · in the family Your own session
What it does
Every email the platform sent to your account, newest first — what it was, when, where the request came from, and the reference printed on its last line.
Every email the platform sent to your account: newest-first born-paginated; self by construction, no subject argument exists; visible from every workspace of the account. limit defaults 100, clamps at 200 (the shared list-page law). Requires authentication.
Before you call
A signed-in user’s session — the call refuses an API key (AUTHZ/FORBIDDEN).
Capability area: Your own session — What every signed-in person may do for themselves — their session, their profile and their own work.
Roles that may call it:
- Owner
- System Administrator
- Manager
- Associate Manager
- Warehouse Associate
- Sales Associate
- Cashier
Arguments
| Name | Type | Required | Notes |
|---|---|---|---|
limit | Int | no | How many records to answer at most; a page may hold fewer. |
nextToken | String | no | The cursor from the previous page, passed back exactly as received. |
Returns
MailLedgerPage MailLedgerPage! — One page of your mail-ledger walk (newest-first across your account's month buckets; walk until nextToken is null).
This is a page: items holds the records and nextToken the cursor for the next page — pass it back verbatim until it is null. See paging.
Example request
query ExampleMyMailLedger($limit: Int) {
myMailLedger(limit: $limit) {
items {
ref
kind
kindWords
origin
originWords
footerSentence
subjectId
eventId
eventAt
sentAt
providerMessageId
recipientHash
}
nextToken
}
}Variables:
{
"limit": 1
}Example response
{
"data": {
"myMailLedger": {
"items": [
{
"ref": "01900000-0000-7000-8000-42f484020000",
"kind": "verification",
"kindWords": "<kind words>",
"origin": "office",
"originWords": "<origin words>",
"footerSentence": "<footer sentence>",
"subjectId": "01900000-0000-7000-8000-a07924ef0000",
"eventId": "<event id>",
"eventAt": "2027-01-31T00:00:00.000Z",
"sentAt": "2027-01-31T00:00:00.000Z",
"providerMessageId": "<provider message id>",
"recipientHash": "<recipient hash>"
}
],
"nextToken": "<the cursor from the previous page>"
}
},
"extensions": {
"at": {
"callId": "01EXAMPLE-CALL-ID",
"version": {
"requested": null,
"serviced": {
"name": "genesis",
"number": 0
}
}
}
}
}Errors this call can answer
VALIDATION/INVALID— Something in the request is not valid. Retry: no. (VALIDATION)AUTHN/REQUIRED— Sign in to do this. Retry: no. (AUTHN)AUTHZ/FORBIDDEN— Your role does not allow this action. Retry: no. (AUTHZ)RATE_LIMIT/THROTTLED— Too many requests in a short time. Retry: yes. (RATE_LIMIT)