An agent pings the owner
POST
/api/v1/pings
const url = 'https://deck.example.com/api/v1/pings';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"account":null,"body":"example","link":null,"reason":"example","thread_key":null,"title":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://deck.example.com/api/v1/pings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "account": null, "body": "example", "link": null, "reason": "example", "thread_key": null, "title": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”quietdeck ping.
Media typeapplication/json
quietdeck ping.
object
account
string | null
body
required
string
link
A card or a thread.
string | null
reason
required
The agent’s one line on why this can’t wait a few hours.
string
thread_key
Repeats for the same thread collapse into one notification.
string | null
title
required
string
Responses
Section titled “Responses”Media typeapplication/json
object
account
string | null
body
required
string
feedback
“Don’t ping for this again”, with the person’s words (empty when they left no note).
string | null
feedback_at
string | null
feedback_picked_up_at
string | null
id
required
integer format: int64
link
string | null
reason
required
string
result
How many devices took it.
string | null
sent_at
required
string
sent_by
required
A session by its tab, on a node. session_id pins one conversation when the tab has been reused.
object
node
required
string
session_id
string | null
tab
required
string
title
required
string
Example generated
{ "account": "example", "body": "example", "feedback": "example", "feedback_at": "example", "feedback_picked_up_at": "example", "id": 1, "link": "example", "reason": "example", "result": "example", "sent_at": "example", "sent_by": { "node": "example", "session_id": "example", "tab": "example" }, "title": "example"}default
Section titled “default”An error, with its message.
Media typeapplication/json
Every error the REST API returns, with an HTTP status.
object
error
required
string
Example generated
{ "error": "example"}