Skip to content

Propose a webhook endpoint; it receives nothing until approved

The OpenAPI spec (JSON)Licence, versions and sign-in

POST
/api/v1/hooks
curl --request POST \
--url https://deck.example.com/api/v1/hooks \
--header 'Content-Type: application/json' \
--cookie qd_auth=<qd_auth> \
--data '{ "kind": "generic", "label": "example", "to": "example" }'

quietdeck hooks create: an agent proposes an endpoint; it receives nothing until the person approves it.

Media typeapplication/json

quietdeck hooks create: an agent proposes an endpoint; it receives nothing until the person approves it.

object
kind
required

How the deck reads what arrives.

One of:

Any JSON (or text): a title is taken from the usual fields. Lenient, for Gatus, which doesn’t escape its JSON.

string
Allowed value: generic
label
required

What it’s for, as the person reads it (“Ops alerts”).

string
to
required

The session its events go to, as <tab>@<node> (“alerts@server”).

string

What hooks create answers: the endpoint and its URL, shown this once.

Media typeapplication/json

What hooks create answers: the endpoint and its URL, shown this once.

object
endpoint
required

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

How the deck reads what arrives.

One of:

Any JSON (or text): a title is taken from the usual fields. Lenient, for Gatus, which doesn’t escape its JSON.

string
Allowed value: generic
label
required
string
last_event_at
string | null
last_failure

The latest time its owner couldn’t be reached (the events went to the triage agent instead).

Any of:
object
at
required
string
reason
required
string
proposed_by

Who proposed it (<tab>@<node>), when an agent did.

string | null
to
required

<tab>@<node>.

string
url
required
string

Example

{
"endpoint": {
"kind": "generic",
"last_failure": null
}
}

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"
}