/notifications
0.1.0Unchanged since publicationList administrator notification log entries
securityreadallReturns one page of notification entries, newest first. Each entry includes its ID, kind, subject, body, recipient email addresses, outcome and timestamp. Filter by id, kind, outcome or q. The response includes the available kinds, the total number of matching entries and counts for all outcomes combined and for each outcome before the outcome filter is applied.
The page parameter defaults to 1. Requests below 1 return the first page, and requests past the last page return the last page. An empty result has one page. The per_page parameter accepts 1 to 500 and defaults to 100 when omitted or out of range.
UrbeStack keeps the latest 500 entries. The response reports that limit in kept, the full log size in rows_total and the number of retained entries from the last 30 days in last_30_days. It includes oldest when the log has entries. The mail_installed field indicates whether the mail stack required to send notifications is installed.
Parameters
idquery ·integer, 1 or morekindquery ·string, matching ^[a-z]+\.[a-z_]+$pagequery ·integer, 1 or moreper_pagequery ·integer, 1 to 500outcomequery ·string, one of mailed, nobody, no-mail-stack, failedqquery ·string, up to 200 charactersExample
See the API overview for how to set $API and $TOKEN.curl -sS -X GET "$API/notifications?id=1&kind=profile&page=1&per_page=1&outcome=mailed&q=text" \ -H "Authorization: Bearer $TOKEN"
200 OK{
"counts": {
"all": 1,
"failed": 1,
"mailed": 1,
"no-mail-stack": 1,
"nobody": 1
},
"entries": [
{
"at": "text",
"body": "text",
"id": 1,
"kind": "profile",
"outcome": "mailed",
"recipients": [
"text"
],
"subject": "text"
}
],
"kept": 1,
"kinds": [
{
"default": 0,
"description": "text",
"enabled": true,
"kind": "profile",
"title": "text"
}
],
"last_30_days": 1,
"mail_installed": true,
"oldest": "text",
"page": 1,
"pages": 1,
"per_page": 1,
"rows_total": 1,
"total": 1
}Errors
1 error, each a status and a sentence401Authentication requiredurbestack.com/docs/api/get-notifications/