Webhook endpoints
GET
/api/v1/hooks
const url = 'https://deck.example.com/api/v1/hooks';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/hooks \ --cookie qd_auth=<qd_auth>Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Media typeapplication/json
Array<object>
One endpoint, as Settings and hooks list show it. The secret is never shown again after creation.
object
approved_at
None until the person approves it: until then it receives nothing (404).
string | null
created_at
required
string
event_count
required
integer format: int64
id
required
string
kind
required
label
required
string
last_event_at
string | null
last_failure
proposed_by
Who proposed it (<tab>@<node>), when an agent did.
string | null
to
required
<tab>@<node>.
string
Example
[ { "kind": "generic", "last_failure": null }]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"}