---
title: "Unsubscribe a webhook"
method: DELETE
path: "/hooks"
tags: ["Webhooks"]
---

# Unsubscribe a webhook

`DELETE /hooks`

## Request

- Base URL: `https://api.dynapictures.com`
- URL: `https://api.dynapictures.com/hooks`
- Auth: HTTP bearer

Removes a webhook. Send the values used to subscribe it.

## Request body

- HookRequest
  - `targetUrl` string, uri, required: The URL that receives the notifications.
  - `eventType` 'NEW_IMAGE', required: The event to subscribe to.
  - `templateId` string, required: The template to watch.

## Response `200`

The webhook was removed.

- Success
  - `error` boolean, required: Always `false`.
  - `message` string: Empty on success.

## Other responses

- `400`: The request is invalid. `message` says why.
- `401`: The API key is missing or wrong.
- `403`: The plan limit is reached, the trial has expired, or the key has no access to this resource.

---

[API](https://skmtc.dev/dynapictures/apis/dynapictures-api.md) - [All operations](https://skmtc.dev/dynapictures/apis/dynapictures-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dynapictures/apis/dynapictures-api/revisions/a9820777cfb3?raw)
