An agent takes the feedback on its pings
POST
/api/v1/pings/feedback/take
const url = 'https://deck.example.com/api/v1/pings/feedback/take';const options = {method: 'POST', 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 POST \ --url https://deck.example.com/api/v1/pings/feedback/take \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Media typeapplication/json
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
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"}