The last seven days' pings, against the weekly budget
GET
/api/v1/pings
const url = 'https://deck.example.com/api/v1/pings';const options = {method: 'GET', headers: {cookie: 'qd_auth=<qd_auth>'}};
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://deck.example.com/api/v1/pings \ --cookie qd_auth=<qd_auth>Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The Rules screen’s pings: the last seven days’ against the weekly budget, which suppresses nothing.
Media typeapplication/json
The Rules screen’s pings: the last seven days’ against the weekly budget, which suppresses nothing.
object
last_week
required
Pings sent in the last seven days.
integer format: uint32
pings
required
The newest first, up to 100.
Array<object>
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
weekly_budget
required
integer format: uint32
Example generated
{ "last_week": 1, "pings": [ { "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" } ], "weekly_budget": 1}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"}