Create Webhook

POST {{baseUrl}}/api/webhooks/

Create a new Webhook

Rate limits:
Burst: 1/s
Steady: 15/m

Scopes: webhooks:write

Request Body

{"data"=>{"type"=>"webhook", "attributes"=>{"name"=>"<string>", "endpoint_url"=>"<string>", "secret_key"=>"<string>", "description"=>"<string>"}, "relationships"=>{"webhook-topics"=>{"data"=>[{"type"=>"webhook-topic", "id"=>"<string>"}, {"type"=>"webhook-topic", "id"=>"<string>"}]}}}}

HEADERS

KeyDatatypeRequiredDescription
revisionstring(Required) API endpoint revision (format: YYYY-MM-DD[.suffix])
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;data&quot;:{&quot;type&quot;:&quot;webhook&quot;,&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;attributes&quot;:{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;endpoint_url&quot;:&quot;\u003cstring\u003e&quot;,&quot;enabled&quot;:&quot;\u003cboolean\u003e&quot;,&quot;created_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;updated_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;},&quot;links&quot;:{&quot;self&quot;:&quot;\u003curi\u003e&quot;},&quot;relationships&quot;:{&quot;webhook-topics&quot;:{&quot;data&quot;:[{&quot;type&quot;:&quot;webhook-topic&quot;,&quot;id&quot;:&quot;\u003cstring\u003e&quot;},{&quot;type&quot;:&quot;webhook-topic&quot;,&quot;id&quot;:&quot;\u003cstring\u003e&quot;}],&quot;links&quot;:{&quot;self&quot;:&quot;\u003curi\u003e&quot;,&quot;related&quot;:&quot;\u003curi\u003e&quot;}}}}}