Check a notification
const url = 'https://api.pocketbell.dev/v1/messages/msg_01jz9k6q8r3tfv0x2m4n5p7s8a';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.pocketbell.dev/v1/messages/msg_01jz9k6q8r3tfv0x2m4n5p7s8a \ --header 'Authorization: Bearer <token>'Where a notification this Source sent has got to: delivered, and for a Critical one, acknowledged (and when), canceled or expired.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
msg_01jz9k6q8r3tfv0x2m4n5p7s8aResponses
Section titled “Responses”Its status.
object
failed: no device could be reached, or the account had no device signed in to send it to; it’s still in the inbox. A Critical notification or a question with no device still waits (awaiting_acknowledgment, awaiting_answer): it’s answered from the inbox once a device signs in.
The name of the device it was acknowledged on.
Critical or a question: when it stops repeating or waiting.
A question’s answer: the label that was tapped.
The name of the device it was answered on.
How many of the account’s devices are at each state.
object
Example
{ "status": "scheduled", "priority": "silent", "acknowledged_device": "iPhone", "answer": "Approve", "answered_device": "iPhone"}Missing, malformed or revoked API key.
object
object
Which fields were wrong, for invalid_request.
object
Example
{ "error": { "code": "invalid_request" }}No such notification from this Source.
object
object
Which fields were wrong, for invalid_request.
object
Example
{ "error": { "code": "invalid_request" }}Rate_limited: too many requests with this key; retry after the Retry-After header’s seconds.
object
object
Which fields were wrong, for invalid_request.
object
Example
{ "error": { "code": "invalid_request" }}