---
title: "Subscribe a URL to request-created or request-updated events"
method: POST
path: "/webhooks"
tags: ["Webhooks"]
---

# Subscribe a URL to request-created or request-updated events

`POST /webhooks`

## Request

- Base URL: `https://helpspot.example.com/api/v2`
- URL: `https://helpspot.example.com/api/v2/webhooks`
- Auth: one of:
  - HTTP bearer
  - HTTP basic

## Request body

- StoreWebhookRequest
  - `url` string, uri, required
  - `event` 'request_created' | 'request_updated', required

## Response `201`

Operation result.

- object
  - `data` object, required
    - `id` integer, required

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: An error
- `404`: Not Found
- `405`: Method Not Allowed
- `406`: Not Acceptable
- `413`: Content Too Large
- `422`: Validation error
- `429`: Too Many Requests
- `500`: Internal Server Error
- `503`: Service Unavailable

---

[API](https://skmtc.dev/helpspot/apis/helpspot-api-v2.md) · [All operations](https://skmtc.dev/helpspot/apis/helpspot-api-v2/llms.txt) · [OpenAPI document](https://skmtc.dev/helpspot/apis/helpspot-api-v2/revisions/794dac0002c0?raw)
