Noma

Delete a Webhook

Delete a Webhook

Removes a webhook and its collection links. Delivery logs for that webhook are not described by this route; historical rows may remain subject to server retention.

Request

DELETE /api/webhooks/{webhook} HTTP/1.1
Host: app.nomacms.com
project-id: <project-uuid>
Authorization: Bearer <api-token>
Path segmentDescription
{webhook}Webhook UUID

No request body is required.

Requires the admin ability on the token.

Response (204)

No response body.

Errors

StatusWhen
400Missing project-id or project cannot be resolved
401Missing or invalid bearer token
403Token does not have admin (or *)
404Unknown UUID or webhook belongs to another project (Webhook not found.)
429Rate limited

Example

import { createClient } from "@nomacms/js-sdk"
 
const client = createClient({
  projectId: process.env.NOMA_PROJECT_ID!,
  apiKey: process.env.NOMA_API_KEY!,
})
 
await client.webhooks.delete(process.env.NOMA_WEBHOOK_UUID!)
import axios from "axios"
 
async function main() {
  const uuid = process.env.NOMA_WEBHOOK_UUID!
  await axios.delete(`https://app.nomacms.com/api/webhooks/${uuid}`, {
    headers: {
      "project-id": process.env.NOMA_PROJECT_ID!,
      Authorization: `Bearer ${process.env.NOMA_API_KEY}`,
    },
  })
}
 
void main()
curl -sS -o /dev/null -w "%{http_code}\n" -X DELETE \
  -H "project-id: $NOMA_PROJECT_ID" \
  -H "Authorization: Bearer $NOMA_API_KEY" \
  "https://app.nomacms.com/api/webhooks/$NOMA_WEBHOOK_UUID"
  • List Webhooks — Remaining hooks
  • JavaScript SDK — Webhookswebhooks.delete

Search documentation

Find guides and reference pages