Personal Cloud notifications
import requests
url = "https://platform.ankra.app/api/v1/org/notifications/cloud"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/notifications/cloud', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/notifications/cloud \
--header 'Authorization: Bearer <token>'{
"connected": true,
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "<string>",
"severity": "critical",
"title": "<string>",
"body": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"read_at": "2023-11-07T05:31:56Z",
"archived_at": "2023-11-07T05:31:56Z"
}
],
"has_more": true,
"unread": 1
}Notifications
Personal Cloud notifications
Read personal Cloud notification receipts through the organisation account mapping. Billing notices require billing.read. A source failure remains unavailable, never an empty result.
GET
/
api
/
v1
/
org
/
notifications
/
cloud
Personal Cloud notifications
import requests
url = "https://platform.ankra.app/api/v1/org/notifications/cloud"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/notifications/cloud', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/notifications/cloud \
--header 'Authorization: Bearer <token>'{
"connected": true,
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "<string>",
"severity": "critical",
"title": "<string>",
"body": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"read_at": "2023-11-07T05:31:56Z",
"archived_at": "2023-11-07T05:31:56Z"
}
],
"has_more": true,
"unread": 1
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Available options:
inbox, needs_you, history Maximum string length:
200Required range:
1 <= x <= 100Both before and before_id must be supplied together.
Both before and before_id must be supplied together.
Optional assertion of the authenticated organisation; mismatch returns 409. Never selects authority.
Optional assertion of the authenticated subject; mismatch returns 409. Never selects authority.