---
title: "[Deprecated: use POST /webhooks] Subscribe to a webhook for a Taskade event (unsigned)"
method: POST
path: "/subscribeWebhook"
tags: ["Webhook"]
---

# \[Deprecated: use POST /webhooks\] Subscribe to a webhook for a Taskade event (unsigned)

`POST /subscribeWebhook`

## Request

- Base URL: `https://www.taskade.com/api/v2`
- URL: `https://www.taskade.com/api/v2/subscribeWebhook`
- Auth: OAuth 2 and HTTP bearer
  - Authorization code: `https://www.taskade.com/oauth2/authorize`
  - Token URL: `https://www.taskade.com/oauth2/token`

## Request body

- object
  - `targetUrl` string, uri, required
  - `triggerType` 'task.due' | 'comment.created' | 'task.assigned' | 'project.created' | 'project.assigned' | 'project.joined', required

## Response `200`

Default response

- object
  - `ok` true, required
  - `hookId` string, required

---

[API](https://skmtc.dev/taskade/apis/taskade-public-api-v2.md) - [All operations](https://skmtc.dev/taskade/apis/taskade-public-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/taskade/apis/taskade-public-api-v2/revisions/45f0e74ec083?raw)
