Skip to content

API reference

Change the steps a webhook hears

Other routes API

PATCH/v1/webhooks/{id}

Replaces the history codes this webhook hears. null hears every step. Steps already queued are posted as they were.

Path parameters

  • idstring (uuid)Required

Request body

application/json, required

  • eventsarray of string or nullRequired

Response

A 200 answer carries these fields.

  • idstring (uuid)Required
  • urlstring (uri)Required
  • createdAtstring (date-time)Required
  • eventsarray of string or nullRequired

    The history codes this webhook hears, or null for every step.

Status codes

Status Meaning
200 The webhook as it now is.
400 events is missing, names a code that is not in the history’s list, is empty or names one twice (invalid_webhook_events).
401 No usable credential was sent (invalid_credentials).
404 This company has no live webhook with this id (unknown_webhook). The same answer is given for a stopped one, another company’s, or an invalid id.
PATCH/v1/webhooks/{id}
Example
curl -X PATCH https://api.certinvo.com/v1/webhooks/$WEBHOOK_ID \
  -H "Authorization: Bearer $CERTINVO_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @body.json
import { readFile } from 'node:fs/promises'

const webhookId = '3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a'

const response = await fetch(`https://api.certinvo.com/v1/webhooks/${webhookId}`, {
  method: 'PATCH',
  headers: {
    Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: await readFile('body.json'),
})
console.log(response.status, await response.json())
import os

import requests

webhook_id = "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a"

response = requests.patch(
    f"https://api.certinvo.com/v1/webhooks/{webhook_id}",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}", "Content-Type": "application/json"},
    data=open("body.json", "rb"),
)
print(response.status_code, response.text)
200
application/json
{
  "id": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
  "url": "string",
  "createdAt": "2026-09-17T09:30:00Z",
  "events": [
    "string"
  ]
}
Success response
PATCH
/v1/webhooks/{id}
Change the steps a webhook hears
All
›AuthenticationRequiredBearerAuth

Provide your API key in the Authorization: Bearer <key> header. Keys are stored locally in your browser.

›Variables1
›Headers2
›Bodyapplication/json
›Code Snippet
curl -X PATCH "https://api.certinvo.com/v1/webhooks/{id}" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "events": [
    "string"
  ]
}...'
Response

No request sent yet

Configure parameters and click Send to view the response.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close