Skip to Content
Hooks

Trigger an incoming hook associated action

POST
/hooks/{hook_id}/trigger

Path Parameters

hook_id*string

The ID of the hook.

Header Parameters

Accept*string

application/json

Content-Type*string

application/json

Request Body

A free-form JSON object.

application/json
  1. body

Free-form JSON payload sent to trigger an incoming hook.

[key: string]?any

Response Body

Ok

application/json
  1. response
message*string

Message containing information about the hook being triggered

errors*|

Optional error object containing details of the server error

Example Request
curl -X POST 'https://api.devopness.com/hooks/2ab973e1-9528-4d67-aff0-209d74975830/trigger' \  -H 'Accept: application/json' \  -H 'Content-Type: application/json' \  -H 'Content-Type: application/json' \  -d '{  "event_id": 9001,  "id": 123,  "title": "Fix login flow",  "open": true,  "labels": [    "bug",    "urgent"  ]}'
Example Response
{  "message": "Hook successfully triggered",  "errors": null}