---
title: "Subscribe to new-record events (REST Hook)"
method: POST
path: "/v1/hooks"
---

# Subscribe to new-record events (REST Hook)

`POST /v1/hooks`

## Request

- Base URL: `https://api.buildcheap.host`
- URL: `https://api.buildcheap.host/v1/hooks`
- Auth: HTTP bearer

## Request body

- object
  - `project_id` string, required
  - `collection` string, required
  - `target_url` string, uri, required

## Response `201`

Subscribed — returns the hook id

---

[API](https://skmtc.dev/buildcheap/apis/buildcheap-instant-deploy-api.md) · [All operations](https://skmtc.dev/buildcheap/apis/buildcheap-instant-deploy-api/llms.txt) · [OpenAPI document](https://skmtc.dev/buildcheap/apis/buildcheap-instant-deploy-api/revisions/658e256c3374?raw)
