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 segment | Description |
|---|---|
{webhook} | Webhook UUID |
No request body is required.
Requires the admin ability on the token.
Response (204)
No response body.
Errors
| Status | When |
|---|---|
| 400 | Missing project-id or project cannot be resolved |
| 401 | Missing or invalid bearer token |
| 403 | Token does not have admin (or *) |
| 404 | Unknown UUID or webhook belongs to another project (Webhook not found.) |
| 429 | Rate 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"Related
- List Webhooks — Remaining hooks
- JavaScript SDK — Webhooks —
webhooks.delete