Endpoints API

Manage your webhook endpoints programmatically. Create, update, delete, and list endpoints.

Base URL

https://api.hookwatch.dev/v1/endpoints

The Endpoint Object

Json

Properties

FieldTypeDescription
idstringUnique identifier for the endpoint
slugstringURL slug used in the webhook URL (/wh/:slug)
namestringHuman-readable name for the endpoint
destination_urlstringURL where webhooks are forwarded
retry_configobjectRetry configuration (max_retries and intervals in seconds)
is_activebooleanWhether the endpoint is accepting webhooks
created_atstringISO 8601 timestamp of creation
updated_atstringISO 8601 timestamp of last update

Create Endpoint

Create a new webhook endpoint.

POST /v1/endpoints

Request Body

FieldTypeRequiredDescription
namestringYesName for the endpoint
destination_urlstringYesURL to forward webhooks to

Example

curl

List Endpoints

Retrieve all endpoints for the authenticated user.

GET /v1/endpoints

Response

Json

Get Endpoint

Retrieve a specific endpoint by ID.

GET /v1/endpoints/:id

Path Parameters

FieldTypeDescription
idstringThe endpoint ID (e.g., ep_abc123)

Update Endpoint

Update an existing endpoint's configuration.

PUT /v1/endpoints/:id

All fields are optional. Only include fields you want to update.

Request Body

FieldTypeDescription
namestringNew name for the endpoint
destination_urlstringNew destination URL
is_activebooleanEnable or disable the endpoint
retry_configobjectCustom retry configuration (Pro/Business plans)

Example

curl

Delete Endpoint

Permanently delete an endpoint and all associated events.

DELETE /v1/endpoints/:id

Warning

This action is irreversible. All events for this endpoint will be permanently deleted.

Error Codes

StatusErrorDescription
400Bad RequestInvalid request body or parameters
401UnauthorizedInvalid or missing access token
403ForbiddenEndpoint limit reached (upgrade plan)
404Not FoundEndpoint not found

Related