List Inbox
The caller’s own notifications, newest first. Whose inbox this is comes from the verified token, never from the request.
GET
/api/v1/inboxAuthorization
AuthorizationBearer token · headerrequiredor
AuthorizationOAuth2 access token · headerrequiredQuery parameters
limitintegermin 1 · max 100 · default: 20
cursorstring | anyopaque keyset cursor from the previous page
unreadbooleanonly what has not been read yet
default: false
kindNotificationKind[] | anyrepeat to filter on several
Responses
200Successful Response
successbooleandefault: true
dataInboxPage | anyShow propertiesHide properties
Any of:
InboxPage
notificationsNotification[]requiredShow propertiesHide properties
Array of
Notificationidstringschema_versionintegerdefault: 1
recipient_idstringrequiredkindNotificationKindrequiredAllowed:
comment_mentioncomment_replytask_assignedtask_status_changedtask_due_soontask_overduerun_awaiting_inputrun_succeededrun_failedexport_finishedexport_failedautomation_succeededautomation_faileddrive_files_left_behindlegacy_remap_unresolveddedupe_keystringrequiredtitlestringrequiredbodystringdefault: ""
urlstringrequiredactor_idstring | anyShow propertiesHide properties
Any of:
string
stringany
anyactor_namestring | anyShow propertiesHide properties
Any of:
string
stringany
anyactor_image_urlstring | anyShow propertiesHide properties
Any of:
string
stringany
anyentity_typeNotificationEntityrequiredAllowed:
taskcommentrunexportentity_idstringrequiredentity_labelstringdefault: ""
topicstring | anyShow propertiesHide properties
Any of:
string
stringany
anyread_atstring<date-time> | anyShow propertiesHide properties
Any of:
string<date-time>
string<date-time>any
anycreated_atstring<date-time>metaCursorMetarequired`total` is served on the first page only (no cursor).
Show propertiesHide properties
next_cursorstring | anyShow propertiesHide properties
Any of:
string
stringany
anytotalinteger | anyShow propertiesHide properties
Any of:
integer
integerany
anyunread_countintegerrequiredany
anymessagestring | anyShow propertiesHide properties
Any of:
string
stringany
anyerrorsstring[] | anyShow propertiesHide properties
Any of:
string[]
Array of
stringstringany
any422Validation Error
detailValidationError[]Show propertiesHide properties
Array of
ValidationErrorlocstring | integer[]requiredShow propertiesHide properties
Array of
string | integerAny of:
string
stringinteger
integermsgstringrequiredtypestringrequiredinputanyctxobjectRequest
curl -X GET "/api/v1/inbox" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("/api/v1/inbox", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});import requests
response = requests.get(
"/api/v1/inbox",
headers={
"Authorization": "Bearer YOUR_TOKEN"
},
)Response
{
"success": true,
"data": {
"notifications": [
{
"id": "string",
"schema_version": 1,
"recipient_id": "string",
"kind": "comment_mention",
"dedupe_key": "string",
"title": "string",
"body": "",
"url": "string",
"actor_id": "string",
"actor_name": "string",
"actor_image_url": "string",
"entity_type": "task",
"entity_id": "string",
"entity_label": "",
"topic": "string",
"read_at": "2019-08-24T14:15:22Z",
"created_at": "2019-08-24T14:15:22Z"
}
],
"meta": {
"next_cursor": "string",
"total": 0
},
"unread_count": 0
},
"message": "string",
"errors": [
"string"
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}