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
/v1/webhooks
Lists the webhooks of a project.
Parameters
-
projectuuid 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'
const response = await fetch("https://api.stellards.io/v1/webhooks?project=PROJECT_ID", {
headers: {
Authorization: "Bearer ACCESS_TOKEN",
},
});
const result = await response.json();
console.log(result);
import requests
response = requests.get(
"https://api.stellards.io/v1/webhooks?project=PROJECT_ID",
headers={"Authorization": "Bearer ACCESS_TOKEN"},
)
print(response.json())
using System.Net.Http.Headers;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "ACCESS_TOKEN");
var response = await client.GetAsync("https://api.stellards.io/v1/webhooks?project=PROJECT_ID");
Console.WriteLine(await response.Content.ReadAsStringAsync());
uses
System.Classes, System.SysUtils, System.Net.HttpClient, System.Net.URLClient;
var
Client: THTTPClient;
Response: IHTTPResponse;
begin
Client := THTTPClient.Create;
try
Client.CustomHeaders['Authorization'] := 'Bearer ACCESS_TOKEN';
Response := Client.Get('https://api.stellards.io/v1/webhooks?project=PROJECT_ID');
Writeln(Response.ContentAsString);
finally
Client.Free;
end;
end;
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
/v1/webhooks
Creates a webhook and returns its signing secret. Store it: it is shown only now.
Parameters
-
projectuuid 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.
-
urlstring required The HTTPS URL that receives the events.
-
eventsstring[] The event types to send, such as record.created. Leave it empty for every record event.
-
tableIdsinteger (int64)[] The tables to send events for. Leave it empty for every table.
-
isActiveboolean 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
]
}'
const response = await fetch("https://api.stellards.io/v1/webhooks?project=PROJECT_ID", {
method: "POST",
headers: {
Authorization: "Bearer ACCESS_TOKEN",
"Content-Type": "application/json",
},
body: JSON.stringify({
"url": "https://example.com/stellards/webhook",
"events": [
"record.created",
"record.updated"
],
"tableIds": [
412
]
}),
});
const result = await response.json();
console.log(result);
import requests
response = requests.post(
"https://api.stellards.io/v1/webhooks?project=PROJECT_ID",
headers={"Authorization": "Bearer ACCESS_TOKEN"},
json={
"url": "https://example.com/stellards/webhook",
"events": ["record.created", "record.updated"],
"tableIds": [412],
},
)
print(response.json())
using System.Net.Http.Headers;
using System.Text;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "ACCESS_TOKEN");
var body = new StringContent("""
{
"url": "https://example.com/stellards/webhook",
"events": [
"record.created",
"record.updated"
],
"tableIds": [
412
]
}
""", Encoding.UTF8, "application/json");
var response = await client.PostAsync("https://api.stellards.io/v1/webhooks?project=PROJECT_ID", body);
Console.WriteLine(await response.Content.ReadAsStringAsync());
uses
System.Classes, System.SysUtils, System.Net.HttpClient, System.Net.URLClient;
var
Client: THTTPClient;
Response: IHTTPResponse;
Body: TStringStream;
begin
Client := THTTPClient.Create;
Body := TStringStream.Create(
'{' +
' "url": "https://example.com/stellards/webhook",' +
' "events": [' +
' "record.created",' +
' "record.updated"' +
' ],' +
' "tableIds": [' +
' 412' +
' ]' +
'}',
TEncoding.UTF8);
try
Client.CustomHeaders['Authorization'] := 'Bearer ACCESS_TOKEN';
Client.ContentType := 'application/json';
Response := Client.Post('https://api.stellards.io/v1/webhooks?project=PROJECT_ID', Body);
Writeln(Response.ContentAsString);
finally
Body.Free;
Client.Free;
end;
end;
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
/v1/webhooks/{id}
Gets one webhook. Its secret is never returned.
Parameters
-
projectuuid query required The GUID of the project.
-
idinteger (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'
const response = await fetch("https://api.stellards.io/v1/webhooks/WEBHOOK_ID?project=PROJECT_ID", {
headers: {
Authorization: "Bearer ACCESS_TOKEN",
},
});
const result = await response.json();
console.log(result);
import requests
response = requests.get(
"https://api.stellards.io/v1/webhooks/WEBHOOK_ID?project=PROJECT_ID",
headers={"Authorization": "Bearer ACCESS_TOKEN"},
)
print(response.json())
using System.Net.Http.Headers;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "ACCESS_TOKEN");
var response = await client.GetAsync("https://api.stellards.io/v1/webhooks/WEBHOOK_ID?project=PROJECT_ID");
Console.WriteLine(await response.Content.ReadAsStringAsync());
uses
System.Classes, System.SysUtils, System.Net.HttpClient, System.Net.URLClient;
var
Client: THTTPClient;
Response: IHTTPResponse;
begin
Client := THTTPClient.Create;
try
Client.CustomHeaders['Authorization'] := 'Bearer ACCESS_TOKEN';
Response := Client.Get('https://api.stellards.io/v1/webhooks/WEBHOOK_ID?project=PROJECT_ID');
Writeln(Response.ContentAsString);
finally
Client.Free;
end;
end;
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
/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
-
projectuuid query required The GUID of the project.
-
idinteger (int64) path required The id of the webhook.
Request body application/json
The whole webhook, as for creating one.
-
urlstring required The HTTPS URL that receives the events.
-
eventsstring[] The event types to send, such as record.created. Leave it empty for every record event.
-
tableIdsinteger (int64)[] The tables to send events for. Leave it empty for every table.
-
isActiveboolean 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
}'
const response = await fetch("https://api.stellards.io/v1/webhooks/WEBHOOK_ID?project=PROJECT_ID", {
method: "PUT",
headers: {
Authorization: "Bearer ACCESS_TOKEN",
"Content-Type": "application/json",
},
body: JSON.stringify({
"url": "https://example.com/stellards/webhook",
"events": [
"record.created",
"record.updated",
"record.deleted"
],
"tableIds": [
412
],
"isActive": true
}),
});
const result = await response.json();
console.log(result);
import requests
response = requests.put(
"https://api.stellards.io/v1/webhooks/WEBHOOK_ID?project=PROJECT_ID",
headers={"Authorization": "Bearer ACCESS_TOKEN"},
json={
"url": "https://example.com/stellards/webhook",
"events": ["record.created", "record.updated", "record.deleted"],
"tableIds": [412],
"isActive": True,
},
)
print(response.json())
using System.Net.Http.Headers;
using System.Text;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "ACCESS_TOKEN");
var body = new StringContent("""
{
"url": "https://example.com/stellards/webhook",
"events": [
"record.created",
"record.updated",
"record.deleted"
],
"tableIds": [
412
],
"isActive": true
}
""", Encoding.UTF8, "application/json");
var response = await client.PutAsync("https://api.stellards.io/v1/webhooks/WEBHOOK_ID?project=PROJECT_ID", body);
Console.WriteLine(await response.Content.ReadAsStringAsync());
uses
System.Classes, System.SysUtils, System.Net.HttpClient, System.Net.URLClient;
var
Client: THTTPClient;
Response: IHTTPResponse;
Body: TStringStream;
begin
Client := THTTPClient.Create;
Body := TStringStream.Create(
'{' +
' "url": "https://example.com/stellards/webhook",' +
' "events": [' +
' "record.created",' +
' "record.updated",' +
' "record.deleted"' +
' ],' +
' "tableIds": [' +
' 412' +
' ],' +
' "isActive": true' +
'}',
TEncoding.UTF8);
try
Client.CustomHeaders['Authorization'] := 'Bearer ACCESS_TOKEN';
Client.ContentType := 'application/json';
Response := Client.Put('https://api.stellards.io/v1/webhooks/WEBHOOK_ID?project=PROJECT_ID', Body);
Writeln(Response.ContentAsString);
finally
Body.Free;
Client.Free;
end;
end;
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
/v1/webhooks/{id}
Deletes a webhook and its delivery log.
Parameters
-
projectuuid query required The GUID of the project.
-
idinteger (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'
const response = await fetch("https://api.stellards.io/v1/webhooks/WEBHOOK_ID?project=PROJECT_ID", {
method: "DELETE",
headers: {
Authorization: "Bearer ACCESS_TOKEN",
},
});
const result = await response.json();
console.log(result);
import requests
response = requests.delete(
"https://api.stellards.io/v1/webhooks/WEBHOOK_ID?project=PROJECT_ID",
headers={"Authorization": "Bearer ACCESS_TOKEN"},
)
print(response.json())
using System.Net.Http.Headers;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "ACCESS_TOKEN");
var response = await client.DeleteAsync("https://api.stellards.io/v1/webhooks/WEBHOOK_ID?project=PROJECT_ID");
Console.WriteLine(await response.Content.ReadAsStringAsync());
uses
System.Classes, System.SysUtils, System.Net.HttpClient, System.Net.URLClient;
var
Client: THTTPClient;
Response: IHTTPResponse;
begin
Client := THTTPClient.Create;
try
Client.CustomHeaders['Authorization'] := 'Bearer ACCESS_TOKEN';
Response := Client.Delete('https://api.stellards.io/v1/webhooks/WEBHOOK_ID?project=PROJECT_ID');
Writeln(Response.ContentAsString);
finally
Client.Free;
end;
end;
Response 200
{
"messages": [],
"isSuccess": true
}
Send a test event
/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
-
projectuuid query required The GUID of the project.
-
idinteger (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'
const response = await fetch("https://api.stellards.io/v1/webhooks/WEBHOOK_ID/test?project=PROJECT_ID", {
method: "POST",
headers: {
Authorization: "Bearer ACCESS_TOKEN",
},
});
const result = await response.json();
console.log(result);
import requests
response = requests.post(
"https://api.stellards.io/v1/webhooks/WEBHOOK_ID/test?project=PROJECT_ID",
headers={"Authorization": "Bearer ACCESS_TOKEN"},
)
print(response.json())
using System.Net.Http.Headers;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "ACCESS_TOKEN");
var response = await client.PostAsync("https://api.stellards.io/v1/webhooks/WEBHOOK_ID/test?project=PROJECT_ID", null);
Console.WriteLine(await response.Content.ReadAsStringAsync());
uses
System.Classes, System.SysUtils, System.Net.HttpClient, System.Net.URLClient;
var
Client: THTTPClient;
Response: IHTTPResponse;
begin
Client := THTTPClient.Create;
try
Client.CustomHeaders['Authorization'] := 'Bearer ACCESS_TOKEN';
Response := Client.Post('https://api.stellards.io/v1/webhooks/WEBHOOK_ID/test?project=PROJECT_ID', TStream(nil));
Writeln(Response.ContentAsString);
finally
Client.Free;
end;
end;
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
/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
-
projectuuid query required The GUID of the project.
-
idinteger (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'
const response = await fetch("https://api.stellards.io/v1/webhooks/WEBHOOK_ID/rotate-secret?project=PROJECT_ID", {
method: "POST",
headers: {
Authorization: "Bearer ACCESS_TOKEN",
},
});
const result = await response.json();
console.log(result);
import requests
response = requests.post(
"https://api.stellards.io/v1/webhooks/WEBHOOK_ID/rotate-secret?project=PROJECT_ID",
headers={"Authorization": "Bearer ACCESS_TOKEN"},
)
print(response.json())
using System.Net.Http.Headers;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "ACCESS_TOKEN");
var response = await client.PostAsync("https://api.stellards.io/v1/webhooks/WEBHOOK_ID/rotate-secret?project=PROJECT_ID", null);
Console.WriteLine(await response.Content.ReadAsStringAsync());
uses
System.Classes, System.SysUtils, System.Net.HttpClient, System.Net.URLClient;
var
Client: THTTPClient;
Response: IHTTPResponse;
begin
Client := THTTPClient.Create;
try
Client.CustomHeaders['Authorization'] := 'Bearer ACCESS_TOKEN';
Response := Client.Post('https://api.stellards.io/v1/webhooks/WEBHOOK_ID/rotate-secret?project=PROJECT_ID', TStream(nil));
Writeln(Response.ContentAsString);
finally
Client.Free;
end;
end;
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
/v1/webhooks/{id}/deliveries
The webhook's delivery log, newest first, with each request body and the last response.
Parameters
-
projectuuid query required The GUID of the project.
-
idinteger (int64) path required The id of the webhook.
-
offsetinteger query How many deliveries to skip.
-
takeinteger 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'
const response = await fetch("https://api.stellards.io/v1/webhooks/WEBHOOK_ID/deliveries?project=PROJECT_ID", {
headers: {
Authorization: "Bearer ACCESS_TOKEN",
},
});
const result = await response.json();
console.log(result);
import requests
response = requests.get(
"https://api.stellards.io/v1/webhooks/WEBHOOK_ID/deliveries?project=PROJECT_ID",
headers={"Authorization": "Bearer ACCESS_TOKEN"},
)
print(response.json())
using System.Net.Http.Headers;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "ACCESS_TOKEN");
var response = await client.GetAsync("https://api.stellards.io/v1/webhooks/WEBHOOK_ID/deliveries?project=PROJECT_ID");
Console.WriteLine(await response.Content.ReadAsStringAsync());
uses
System.Classes, System.SysUtils, System.Net.HttpClient, System.Net.URLClient;
var
Client: THTTPClient;
Response: IHTTPResponse;
begin
Client := THTTPClient.Create;
try
Client.CustomHeaders['Authorization'] := 'Bearer ACCESS_TOKEN';
Response := Client.Get('https://api.stellards.io/v1/webhooks/WEBHOOK_ID/deliveries?project=PROJECT_ID');
Writeln(Response.ContentAsString);
finally
Client.Free;
end;
end;
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
/v1/webhooks/{id}/deliveries/{deliveryId}/redeliver
Sends a delivered or failed delivery again, with a fresh set of attempts.
Parameters
-
projectuuid query required The GUID of the project.
-
idinteger (int64) path required The id of the webhook.
-
deliveryIdinteger (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'
const response = await fetch("https://api.stellards.io/v1/webhooks/WEBHOOK_ID/deliveries/DELIVERY_ID/redeliver?project=PROJECT_ID", {
method: "POST",
headers: {
Authorization: "Bearer ACCESS_TOKEN",
},
});
const result = await response.json();
console.log(result);
import requests
response = requests.post(
"https://api.stellards.io/v1/webhooks/WEBHOOK_ID/deliveries/DELIVERY_ID/redeliver?project=PROJECT_ID",
headers={"Authorization": "Bearer ACCESS_TOKEN"},
)
print(response.json())
using System.Net.Http.Headers;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "ACCESS_TOKEN");
var response = await client.PostAsync("https://api.stellards.io/v1/webhooks/WEBHOOK_ID/deliveries/DELIVERY_ID/redeliver?project=PROJECT_ID", null);
Console.WriteLine(await response.Content.ReadAsStringAsync());
uses
System.Classes, System.SysUtils, System.Net.HttpClient, System.Net.URLClient;
var
Client: THTTPClient;
Response: IHTTPResponse;
begin
Client := THTTPClient.Create;
try
Client.CustomHeaders['Authorization'] := 'Bearer ACCESS_TOKEN';
Response := Client.Post('https://api.stellards.io/v1/webhooks/WEBHOOK_ID/deliveries/DELIVERY_ID/redeliver?project=PROJECT_ID', TStream(nil));
Writeln(Response.ContentAsString);
finally
Client.Free;
end;
end;
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\"}}"
}
}