---
title: "Api hook subscribe"
method: POST
path: "/v1/api/hooks"
tags: ["Owner"]
---

# Api hook subscribe

`POST /v1/api/hooks`

## Request

- Base URL: `https://api.vicem.ai`
- URL: `https://api.vicem.ai/v1/api/hooks`
- Auth: HTTP bearer

## Request body

- ApiHookSubscribeRequest
  - `url` string, required
  - `events` string[], required

## Response `200`

OK

- ApiHookSubscribeResponse
  - `id` string, required
  - `events` string[], required

## Other responses

- `400`: Invalid request (body not JSON, or schema validation failed).
- `401`: Missing, expired or invalid bearer token.
- `413`: Body over the limit (64 KB; 512 KB for contact import).
- `429`: Too many requests from this caller; wait and try again.
- `500`: Unexpected server error (reported to Sentry).

---

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