background image

Webhooks

Register URLs that receive a signed POST when something changes in a project. See the Webhooks guide for the payloads and signatures.

Background and examples: Webhooks

List webhooks

GET /v1/webhooks

Lists the webhooks of a project.

Parameters

project uuid query required

The GUID of the project.

Responses

  • 200 Success

Request

curl -X GET 'https://api.stellards.io/v1/webhooks?project=PROJECT_ID' \
  -H 'Authorization: Bearer ACCESS_TOKEN'

Response 200

{
  "messages": [],
  "isSuccess": true,
  "data": [
    {
      "id": 412,
      "url": "https://example.com/stellards/webhook",
      "events": [
        "record.created"
      ],
      "tableIds": [
        412
      ],
      "isActive": true,
      "disabledAt": null,
      "failingSince": null,
      "previousSecretExpiresAt": null,
      "createdAt": "2026-11-02T09:30:00Z",
      "updatedAt": "2026-11-02T09:30:00Z"
    }
  ]
}

Create a webhook

POST /v1/webhooks

Creates a webhook and returns its signing secret. Store it: it is shown only now.

Parameters

project uuid query required

The GUID of the project.

Request body application/json

The webhook. Leave events empty for every record event, and tableIds empty for every table.

url string required

The HTTPS URL that receives the events.

events string[]

The event types to send, such as record.created. Leave it empty for every record event.

tableIds integer (int64)[]

The tables to send events for. Leave it empty for every table.

isActive boolean

Whether events are sent. Switching it on again clears a switch-off after failures.

Responses

  • 201 The webhook was created; the response holds its secret.
  • 400 The url, an event type or a table isn't valid, or the tier's limit is reached.
  • 403 The caller can't manage webhooks, or the tier doesn't include them.

Request

curl -X POST 'https://api.stellards.io/v1/webhooks?project=PROJECT_ID' \
  -H 'Authorization: Bearer ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "url": "https://example.com/stellards/webhook",
    "events": [
      "record.created",
      "record.updated"
    ],
    "tableIds": [
      412
    ]
  }'

Response 201

{
  "messages": [],
  "isSuccess": true,
  "data": {
    "id": 412,
    "url": "https://example.com/stellards/webhook",
    "events": [
      "record.created"
    ],
    "tableIds": [
      412
    ],
    "isActive": true,
    "disabledAt": null,
    "failingSince": null,
    "previousSecretExpiresAt": null,
    "createdAt": "2026-11-02T09:30:00Z",
    "updatedAt": "2026-11-02T09:30:00Z",
    "secret": "whsec_9b1f…"
  }
}

Get a webhook

GET /v1/webhooks/{id}

Gets one webhook. Its secret is never returned.

Parameters

project uuid query required

The GUID of the project.

id integer (int64) path required

The id of the webhook.

Responses

  • 200 Success
  • 404 Not Found

Request

curl -X GET 'https://api.stellards.io/v1/webhooks/WEBHOOK_ID?project=PROJECT_ID' \
  -H 'Authorization: Bearer ACCESS_TOKEN'

Response 200

{
  "messages": [],
  "isSuccess": true,
  "data": {
    "id": 412,
    "url": "https://example.com/stellards/webhook",
    "events": [
      "record.created"
    ],
    "tableIds": [
      412
    ],
    "isActive": true,
    "disabledAt": null,
    "failingSince": null,
    "previousSecretExpiresAt": null,
    "createdAt": "2026-11-02T09:30:00Z",
    "updatedAt": "2026-11-02T09:30:00Z"
  }
}

Update a webhook

PUT /v1/webhooks/{id}

Changes a webhook's url, events, tables or whether it is on. Switching it on again clears "switched off after failures".

Parameters

project uuid query required

The GUID of the project.

id integer (int64) path required

The id of the webhook.

Request body application/json

The whole webhook, as for creating one.

url string required

The HTTPS URL that receives the events.

events string[]

The event types to send, such as record.created. Leave it empty for every record event.

tableIds integer (int64)[]

The tables to send events for. Leave it empty for every table.

isActive boolean

Whether events are sent. Switching it on again clears a switch-off after failures.

Responses

  • 200 Success
  • 400 Bad Request
  • 404 Not Found

Request

curl -X PUT 'https://api.stellards.io/v1/webhooks/WEBHOOK_ID?project=PROJECT_ID' \
  -H 'Authorization: Bearer ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "url": "https://example.com/stellards/webhook",
    "events": [
      "record.created",
      "record.updated",
      "record.deleted"
    ],
    "tableIds": [
      412
    ],
    "isActive": true
  }'

Response 200

{
  "messages": [],
  "isSuccess": true,
  "data": {
    "id": 412,
    "url": "https://example.com/stellards/webhook",
    "events": [
      "record.created"
    ],
    "tableIds": [
      412
    ],
    "isActive": true,
    "disabledAt": null,
    "failingSince": null,
    "previousSecretExpiresAt": null,
    "createdAt": "2026-11-02T09:30:00Z",
    "updatedAt": "2026-11-02T09:30:00Z"
  }
}

Delete a webhook

DELETE /v1/webhooks/{id}

Deletes a webhook and its delivery log.

Parameters

project uuid query required

The GUID of the project.

id integer (int64) path required

The id of the webhook.

Responses

  • 200 Success
  • 404 Not Found

Request

curl -X DELETE 'https://api.stellards.io/v1/webhooks/WEBHOOK_ID?project=PROJECT_ID' \
  -H 'Authorization: Bearer ACCESS_TOKEN'

Response 200

{
  "messages": [],
  "isSuccess": true
}

Send a test event

POST /v1/webhooks/{id}/test

Sends a "ping" event to this webhook now, once, also when it is switched off. Its outcome shows in the delivery log within seconds.

Parameters

project uuid query required

The GUID of the project.

id integer (int64) path required

The id of the webhook.

Responses

  • 200 Success
  • 404 Not Found

Request

curl -X POST 'https://api.stellards.io/v1/webhooks/WEBHOOK_ID/test?project=PROJECT_ID' \
  -H 'Authorization: Bearer ACCESS_TOKEN'

Response 200

{
  "messages": [],
  "isSuccess": true,
  "data": {
    "id": 412,
    "eventId": "evt_0192f3c4a1b27c3e9d5f6a7b8c9d0e1f",
    "eventType": "record.updated",
    "status": "Delivered",
    "attempts": 1,
    "createdAt": "2026-11-02T09:30:00Z",
    "nextAttemptAt": null,
    "deliveredAt": "2026-11-02T09:30:02Z",
    "lastStatusCode": 200,
    "lastResponse": "OK",
    "payload": "{\"id\":\"evt_0192f3c4a1b27c3e9d5f6a7b8c9d0e1f\",\"type\":\"record.updated\",\"table\":{\"id\":412,\"name\":\"Orders\"}}"
  }
}

Rotate the secret

POST /v1/webhooks/{id}/rotate-secret

Gives the webhook a new secret and returns it once. For 24 hours deliveries carry a signature with the old secret too, so the receiver can switch over without missing any.

Parameters

project uuid query required

The GUID of the project.

id integer (int64) path required

The id of the webhook.

Responses

  • 200 Success
  • 404 Not Found

Request

curl -X POST 'https://api.stellards.io/v1/webhooks/WEBHOOK_ID/rotate-secret?project=PROJECT_ID' \
  -H 'Authorization: Bearer ACCESS_TOKEN'

Response 200

{
  "messages": [],
  "isSuccess": true,
  "data": {
    "id": 412,
    "url": "https://example.com/stellards/webhook",
    "events": [
      "record.created"
    ],
    "tableIds": [
      412
    ],
    "isActive": true,
    "disabledAt": null,
    "failingSince": null,
    "previousSecretExpiresAt": null,
    "createdAt": "2026-11-02T09:30:00Z",
    "updatedAt": "2026-11-02T09:30:00Z",
    "secret": "whsec_9b1f…"
  }
}

List deliveries

GET /v1/webhooks/{id}/deliveries

The webhook's delivery log, newest first, with each request body and the last response.

Parameters

project uuid query required

The GUID of the project.

id integer (int64) path required

The id of the webhook.

offset integer query

How many deliveries to skip.

take integer query

How many deliveries to return, at most 200 (default 50).

Responses

  • 200 Success
  • 404 Not Found

Request

curl -X GET 'https://api.stellards.io/v1/webhooks/WEBHOOK_ID/deliveries?project=PROJECT_ID' \
  -H 'Authorization: Bearer ACCESS_TOKEN'

Response 200

{
  "messages": [],
  "isSuccess": true,
  "data": [
    {
      "id": 412,
      "eventId": "evt_0192f3c4a1b27c3e9d5f6a7b8c9d0e1f",
      "eventType": "record.updated",
      "status": "Delivered",
      "attempts": 1,
      "createdAt": "2026-11-02T09:30:00Z",
      "nextAttemptAt": null,
      "deliveredAt": "2026-11-02T09:30:02Z",
      "lastStatusCode": 200,
      "lastResponse": "OK",
      "payload": "{\"id\":\"evt_0192f3c4a1b27c3e9d5f6a7b8c9d0e1f\",\"type\":\"record.updated\",\"table\":{\"id\":412,\"name\":\"Orders\"}}"
    }
  ]
}

Redeliver

POST /v1/webhooks/{id}/deliveries/{deliveryId}/redeliver

Sends a delivered or failed delivery again, with a fresh set of attempts.

Parameters

project uuid query required

The GUID of the project.

id integer (int64) path required

The id of the webhook.

deliveryId integer (int64) path required

The id of the delivery.

Responses

  • 200 Success
  • 400 The delivery is still queued.
  • 404 Not Found

Request

curl -X POST 'https://api.stellards.io/v1/webhooks/WEBHOOK_ID/deliveries/DELIVERY_ID/redeliver?project=PROJECT_ID' \
  -H 'Authorization: Bearer ACCESS_TOKEN'

Response 200

{
  "messages": [],
  "isSuccess": true,
  "data": {
    "id": 412,
    "eventId": "evt_0192f3c4a1b27c3e9d5f6a7b8c9d0e1f",
    "eventType": "record.updated",
    "status": "Delivered",
    "attempts": 1,
    "createdAt": "2026-11-02T09:30:00Z",
    "nextAttemptAt": null,
    "deliveredAt": "2026-11-02T09:30:02Z",
    "lastStatusCode": 200,
    "lastResponse": "OK",
    "payload": "{\"id\":\"evt_0192f3c4a1b27c3e9d5f6a7b8c9d0e1f\",\"type\":\"record.updated\",\"table\":{\"id\":412,\"name\":\"Orders\"}}"
  }
}