Reference / Hooks

Update a hook.

PATCH /v1/hooks/{id}
Secret API key operationId: update

Authorization

Server-to-server. Send a secret key as a Bearer token plus the x-application-id header.

Path parameters

  • id string<uuid> required

    Hook id

Request body · required

  • description string
  • enabled boolean
  • fail_open boolean
  • timeout_ms integer<int32> int32
  • url string

Responses

200 Hook updated
{
  "data": {
    "created_at": "2026-01-15T09:30:00Z",
    "description": "string",
    "enabled": false,
    "fail_open": false,
    "id": "018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f",
    "point": "pre_sign_up",
    "timeout_ms": 0,
    "url": "string"
  },
  "error": {
    "code": "string",
    "message": "string"
  },
  "meta": {
    "timestamp": "string"
  },
  "success": false
}
404 No such hook

Request

curl -X PATCH "http://localhost:8080/v1/hooks/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f" \
  -H "Content-Type: application/json" \
  -d '{
  "description": "string",
  "enabled": false,
  "fail_open": false,
  "timeout_ms": 0,
  "url": "string"
}'

Try it

live request
PATCH http://localhost:8080/v1/hooks/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f

Path parameters

Request body

application/json