Skip to content

Webhooks API

The webhooks endpoints, each in TypeScript, Python, the CLI and curl.

Terminal window
npm install @reminix/sdk
export REMINIX_API_KEY="<your API key>"

To pass the key yourself, use createClient({ apiKey: key }) in TypeScript or Reminix(api_key=key) in Python.

GET /v1/workspace/webhook-endpoints Try it in the API playground (opens in a new tab)

Scope: workspace.webhooks:read.

Lists the workspace’s outgoing webhook endpoints, newest first.

import { createClient } from "@reminix/sdk";
// Uses the REMINIX_API_KEY environment variable.
const reminix = createClient();
const webhookEndpoints = await reminix.workspace.webhookEndpoints.list();
console.log(webhookEndpoints);

Returns:

{
"items": [
{
"id": "we_3f0c1a2e-4b5d-4c6e-8f70-1a2b3c4d5e6f",
"url": "https://example.com/hooks",
"description": "Order sync",
"enabled": true,
"eventTypes": [
"workspace.member.joined"
],
"environment": "live",
"consecutiveFailures": 0,
"lastHttpStatus": 200,
"lastAttemptAt": "2026-08-19T12:05:00.000Z",
"createdAt": "2026-08-19T12:00:00.000Z",
"secret": "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw"
}
],
"nextCursor": null
}
More about this endpoint

The list leaves out their signing secrets. A workspace has at most 10 endpoints, so the list is a single page. Its nextCursor is null. With a personal access token, the workspace’s owners and admins can call this, and members on the test side. A workspace API key with this scope can.

POST /v1/workspace/webhook-endpoints Try it in the API playground (opens in a new tab)

Scope: workspace.webhooks:write.

Registers an HTTPS URL to receive the workspace’s events.

import { createClient } from "@reminix/sdk";
// Uses the REMINIX_API_KEY environment variable.
const reminix = createClient();
const webhookEndpoint = await reminix.workspace.webhookEndpoints.create({
url: "https://example.com/hooks",
eventTypes: [
"workspace.member.joined",
],
});
console.log(webhookEndpoint);

Returns:

{
"id": "we_3f0c1a2e-4b5d-4c6e-8f70-1a2b3c4d5e6f",
"url": "https://example.com/hooks",
"description": "Order sync",
"enabled": true,
"eventTypes": [
"workspace.member.joined"
],
"environment": "live",
"consecutiveFailures": 0,
"lastHttpStatus": 200,
"lastAttemptAt": "2026-08-19T12:05:00.000Z",
"createdAt": "2026-08-19T12:00:00.000Z",
"secret": "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw"
}
Field Description
url string, required The HTTPS URL that receives the events.
description string A note for people managing the endpoint.
eventTypes array Send only these event types, from event-types. Leave it out for every event.
More about this endpoint

Deliveries use the same signature format as Svix. The response is the new endpoint with its signing secret (whsec_…) in secret. You see it only once, so store it to verify deliveries. The API refuses private hosts and hosts without HTTPS. A workspace can have at most 10 endpoints. With a personal access token, the workspace’s owners and admins can call this, and members on the test side. A workspace API key with this scope can.

GET /v1/workspace/webhook-endpoints/{endpointId} Try it in the API playground (opens in a new tab)

Scope: workspace.webhooks:read.

Returns one endpoint without its signing secret.

import { createClient } from "@reminix/sdk";
// Uses the REMINIX_API_KEY environment variable.
const reminix = createClient();
const webhookEndpoint = await reminix.workspace.webhookEndpoints.get("we_3f0c1a2e-4b5d-4c6e-8f70-1a2b3c4d5e6f");
console.log(webhookEndpoint);

Returns:

{
"id": "we_3f0c1a2e-4b5d-4c6e-8f70-1a2b3c4d5e6f",
"url": "https://example.com/hooks",
"description": "Order sync",
"enabled": true,
"eventTypes": [
"workspace.member.joined"
],
"environment": "live",
"consecutiveFailures": 0,
"lastHttpStatus": 200,
"lastAttemptAt": "2026-08-19T12:05:00.000Z",
"createdAt": "2026-08-19T12:00:00.000Z",
"secret": "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw"
}
Field Description
endpointId string, path, required The endpoint's ID.
More about this endpoint

It shows whether the endpoint is on, its consecutive failures and its last delivery status. With a personal access token, the workspace’s owners and admins can call this, and members on the test side. A workspace API key with this scope can.

PATCH /v1/workspace/webhook-endpoints/{endpointId} Try it in the API playground (opens in a new tab)

Scope: workspace.webhooks:write.

Changes an endpoint’s URL, description or event types in place.

import { createClient } from "@reminix/sdk";
// Uses the REMINIX_API_KEY environment variable.
const reminix = createClient();
const webhookEndpoint = await reminix.workspace.webhookEndpoints.update("we_3f0c1a2e-4b5d-4c6e-8f70-1a2b3c4d5e6f", {
url: "https://example.com/hooks",
eventTypes: [
"workspace.member.joined",
],
});
console.log(webhookEndpoint);

Returns:

{
"id": "we_3f0c1a2e-4b5d-4c6e-8f70-1a2b3c4d5e6f",
"url": "https://example.com/hooks",
"description": "Order sync",
"enabled": true,
"eventTypes": [
"workspace.member.joined"
],
"environment": "live",
"consecutiveFailures": 0,
"lastHttpStatus": 200,
"lastAttemptAt": "2026-08-19T12:05:00.000Z",
"createdAt": "2026-08-19T12:00:00.000Z",
"secret": "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw"
}
Field Description
endpointId string, path, required The endpoint's ID.
url string The HTTPS URL that receives the events.
description string A note for people managing the endpoint. Null clears it.
eventTypes array Send only these event types, from event-types. Null or an empty list means every event.
More about this endpoint

Only the fields you send change. The endpoint keeps its signing secret, so receivers keep verifying deliveries. A new URL must pass the same checks as on create. It must use HTTPS and can’t be a private host. With a personal access token, the workspace’s owners and admins can call this, and members on the test side. A workspace API key with this scope can.

DELETE /v1/workspace/webhook-endpoints/{endpointId} Try it in the API playground (opens in a new tab)

Scope: workspace.webhooks:write.

Deletes the endpoint and its signing secret.

import { createClient } from "@reminix/sdk";
// Uses the REMINIX_API_KEY environment variable.
const reminix = createClient();
await reminix.workspace.webhookEndpoints.delete("we_3f0c1a2e-4b5d-4c6e-8f70-1a2b3c4d5e6f");

Returns nothing (204).

Field Description
endpointId string, path, required The endpoint's ID.
More about this endpoint

All deliveries to the endpoint stop. Its delivery history goes with it. With a personal access token, the workspace’s owners and admins can call this, and members on the test side. A workspace API key with this scope can.

POST /v1/workspace/webhook-endpoints/{endpointId}/enable Try it in the API playground (opens in a new tab)

Scope: workspace.webhooks:write.

Resumes deliveries to an endpoint that stopped after repeated failures.

import { createClient } from "@reminix/sdk";
// Uses the REMINIX_API_KEY environment variable.
const reminix = createClient();
const webhookEndpoint = await reminix.workspace.webhookEndpoints.enable("we_3f0c1a2e-4b5d-4c6e-8f70-1a2b3c4d5e6f");
console.log(webhookEndpoint);

Returns:

{
"id": "we_3f0c1a2e-4b5d-4c6e-8f70-1a2b3c4d5e6f",
"url": "https://example.com/hooks",
"description": "Order sync",
"enabled": true,
"eventTypes": [
"workspace.member.joined"
],
"environment": "live",
"consecutiveFailures": 0,
"lastHttpStatus": 200,
"lastAttemptAt": "2026-08-19T12:05:00.000Z",
"createdAt": "2026-08-19T12:00:00.000Z",
"secret": "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw"
}
Field Description
endpointId string, path, required The endpoint's ID.
More about this endpoint

The endpoint keeps its signing secret. Its failure count resets. With a personal access token, the workspace’s owners and admins can call this, and members on the test side. A workspace API key with this scope can.

POST /v1/workspace/webhook-endpoints/{endpointId}/test Try it in the API playground (opens in a new tab)

Scope: workspace.webhooks:write.

Sends a ping event to the endpoint, signed like every delivery.

import { createClient } from "@reminix/sdk";
// Uses the REMINIX_API_KEY environment variable.
const reminix = createClient();
const result = await reminix.workspace.webhookEndpoints.test("we_3f0c1a2e-4b5d-4c6e-8f70-1a2b3c4d5e6f");
console.log(result);

Returns:

{
"deliveryId": "del_8a1b2c3d-4e5f-4a6b-9c7d-8e9f0a1b2c3d",
"queued": false,
"ok": true,
"httpStatus": 200
}
Field Description
endpointId string, path, required The endpoint's ID.
More about this endpoint

Use it to check that an integration verifies and accepts deliveries. It answers 200 when we attempted the delivery right away, with the endpoint’s answer, and 202 when it went to the queue. With a personal access token, the workspace’s owners and admins can call this, and members on the test side. A workspace API key with this scope can.

GET /v1/workspace/webhook-endpoints/{endpointId}/deliveries Try it in the API playground (opens in a new tab)

Scope: workspace.webhooks:read.

Lists one endpoint’s delivery history, newest first.

import { createClient } from "@reminix/sdk";
// Uses the REMINIX_API_KEY environment variable.
const reminix = createClient();
const webhookDeliveries = await reminix.workspace.webhookDeliveries.list("we_3f0c1a2e-4b5d-4c6e-8f70-1a2b3c4d5e6f");
console.log(webhookDeliveries);

Returns:

{
"items": [
{
"id": "del_8a1b2c3d-4e5f-4a6b-9c7d-8e9f0a1b2c3d",
"eventId": "evt_51c2d3e4-f5a6-4b7c-8d9e-0f1a2b3c4d5e",
"eventType": "workspace.member.joined",
"status": "delivered",
"attempts": 1,
"lastHttpStatus": 200,
"lastAttemptAt": "2026-08-19T12:05:00.000Z",
"createdAt": "2026-08-19T12:05:00.000Z"
}
],
"nextCursor": null
}
Field Description
endpointId string, path, required The endpoint's ID.
limit number, query Items per page, 1–100 (default 25).
cursor string, query Opaque token from a previous page's nextCursor.
before string, query Start from this moment: items older than it, newest first. Ignored with cursor, which already says where to go on.
status string, query Only deliveries with this status.
More about this endpoint

Each entry shows the delivery’s state, its attempts and the last HTTP status code. Payloads aren’t included. We keep the history for 30 days. Paginate with the opaque nextCursor. before starts from a moment, and status keeps one kind of delivery. With a personal access token, the workspace’s owners and admins can call this, and members on the test side. A workspace API key with this scope can.

POST /v1/workspace/webhook-endpoints/{endpointId}/deliveries/{deliveryId}/redeliver Try it in the API playground (opens in a new tab)

Scope: workspace.webhooks:write.

Sends a recorded delivery’s event again, as a new delivery.

import { createClient } from "@reminix/sdk";
// Uses the REMINIX_API_KEY environment variable.
const reminix = createClient();
const delivery = await reminix.workspace.webhookDeliveries.redeliver("we_3f0c1a2e-4b5d-4c6e-8f70-1a2b3c4d5e6f", "del_8a1b2c3d-4e5f-4a6b-9c7d-8e9f0a1b2c3d");
console.log(delivery);

Returns:

{
"deliveryId": "del_8a1b2c3d-4e5f-4a6b-9c7d-8e9f0a1b2c3d",
"queued": false,
"ok": true,
"httpStatus": 200
}
Field Description
endpointId string, path, required The endpoint's ID.
deliveryId string, path, required The delivery's ID.
More about this endpoint

The new delivery gets its own history entry. The event id stays the same, so receivers can deduplicate. Redelivery only works on an enabled endpoint. It answers 200 when we attempted the delivery right away, with the endpoint’s answer, and 202 when it went to the queue. With a personal access token, the workspace’s owners and admins can call this, and members on the test side. A workspace API key with this scope can.

Scope: workspace.webhooks:read.

Lists every workspace event a webhook endpoint can subscribe to, and what each one means.

import { createClient } from "@reminix/sdk";
// Uses the REMINIX_API_KEY environment variable.
const reminix = createClient();
const eventTypes = await reminix.workspace.eventTypes.list();
console.log(eventTypes);

Returns:

{
"items": [
{
"type": "workspace.member.joined",
"description": "A person joined the workspace, by accepting an invitation or being added. `data.userId` says who."
}
],
"nextCursor": null
}
More about this endpoint

Pass some as eventTypes when you add an endpoint. An endpoint without a list receives every event. Every type fits on one page, so nextCursor is null.