Generated from the live OpenAPI document (
/api/v1/openapi.json, API version 1.0.0). The OpenAPI document and the live reference are the source of truth; if this page and they ever disagree, they win.
Needs the webhooks:manage scope. You can also manage endpoints in the dashboard: Settings → Developers. See Webhooks for delivery, retries, conditions, headers and test sends, and Events for every event name.
Limits: at most 10 endpoints per business; the URL must be https:// on a public host (no IP addresses, no private or local hosts, no user name or password in the URL, up to 2048 characters); the description is up to 200 characters; up to 10 conditions; up to 5 custom headers; a timeout of 1 to 15 seconds (default 10).
Every option beyond url and events is optional. Left out, an endpoint receives every subscribed event with the default fields, no custom headers and a 10-second timeout.
GET /api/v1/webhook-endpoints
Scope: webhooks:manage
Example request
curl -X GET "https://connect.rylixfleet.com/api/v1/webhook-endpoints" \
-H "Authorization: Bearer $RYLIX_API_KEY"
Example answer (200)
{
"object": "list",
"data": [
{
"id": "cm4w5s7ab0002s8z0w3bh00k1",
"object": "webhook_endpoint",
"url": "https://example.com/rylix/webhooks",
"description": "Order status to our ERP",
"events": [
"order.delivered",
"order.failed"
],
"enabled": true,
"disabledReason": null,
"consecutiveFailures": 0,
"lastSuccessAt": null,
"lastFailureAt": null,
"createdAt": "2026-11-29T09:00:00.000Z",
"conditions": [
{
"field": "order.payment",
"op": "eq",
"value": "cod"
}
],
"fields": {},
"headers": [
{
"name": "X-Api-Key",
"preview": "••••9f3a"
}
],
"timeoutMs": 10000,
"filteredToday": 0
}
]
}
Answers
| HTTP | Meaning |
|---|---|
| 200 | The business's webhook endpoints (never their secrets). |
| 401 | Missing, malformed, unknown or revoked API key. |
| 403 | insufficient_scope, feature_off, or (writes) suspended or read_only. |
| 429 | Rate limit reached for this key. |
POST /api/v1/webhook-endpoints
Scope: webhooks:manage
HTTPS on a public host only. The signing secret is in this answer only: store it. Options (conditions, fields, headers, timeoutMs) are optional; left out, the endpoint receives every subscribed event with the default fields, no custom headers and a 10-second timeout.
Parameters
| Name | In | Required | About |
|---|---|---|---|
Idempotency-Key |
header | no | Any unique string (a UUID). Replaying the same request with the same key returns the first answer without doing anything again. Kept 24 hours. (max length 255) |
Request body
| Field | Type | Required | About |
|---|---|---|---|
url |
string | yes | |
description |
string | no | max length 200 |
events |
array of event names (see Events) | yes | min items 1 |
conditions |
array of object | no | max items 10 |
conditions[].field |
string (one of: order.payment, order.cod_amount, order.branch, order.pickup_location, order.client, order.account, order.service, order.kind, order.source, order.urgent, order.failure_category, order.status, driver.group, money.currency) |
yes | |
conditions[].op |
string (one of: eq, neq, in, not_in, gt, gte, lt, lte, between, is) |
yes | |
conditions[].value |
string or boolean or array of string or object | yes | |
fields |
object | no | Field selection per event family. A family left out sends every approved field (the default). An empty list sends only the ids. The subject's id and object, and the envelope, are always sent; no customer field can be chosen. |
fields.order_status |
array of: order.reference, order.orderName, order.trackingNumber, order.status, order.kind, order.source, order.pickupLocationId, order.cashOnDelivery, order.pieces, order.failureCategory, order.etaMinutes, order.createdAt, order.updatedAt, order.terminalAt, failureCategory |
no | |
fields.order_summary |
array of: order.reference, order.orderName, order.trackingNumber, order.status, order.kind, order.updatedAt |
no | |
fields.settlement |
array of: settlement.driverId, settlement.status, settlement.period, settlement.day, settlement.submitted, settlement.expected, settlement.confirmed, settlement.difference, settlement.submittedAt, settlement.decidedAt |
no | |
fields.location |
array of: location.name, location.address, location.lat, location.lng, location.isDefault, location.kind, location.active, location.phone, location.hours, location.parentBranchId, location.createdAt |
no | |
fields.driver |
array of: shift.driverId, shift.startedAt, shift.endedAt |
no | |
fields.remittance |
array of: remittance.clientId, remittance.number, remittance.status, remittance.currency, remittance.cutoffAt, remittance.grossCod, remittance.adjustments, remittance.feesNetted, remittance.remittanceFee, remittance.net, remittance.amountHanded, remittance.receiptMethod, remittance.readyAt, remittance.confirmedAt |
no | |
headers |
array of object | no | max items 5 |
headers[].name |
string | yes | max length 64 |
headers[].value |
string | yes | max length 1024 |
timeoutMs |
integer | no | How long Rylix waits for your answer's status, in milliseconds: one deadline for the whole request (connecting included). The response body is never read. (min 1000, max 15000, default 10000) |
Example request
curl -X POST "https://connect.rylixfleet.com/api/v1/webhook-endpoints" \
-H "Authorization: Bearer $RYLIX_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"url": "https://example.com/rylix/webhooks", "description": "Order status to our ERP", "events": ["order.delivered", "order.failed"]}'
Example answer (201)
{
"id": "cm4w5s7ab0002s8z0w3bh00k1",
"object": "webhook_endpoint",
"url": "https://example.com/rylix/webhooks",
"description": "Order status to our ERP",
"events": [
"order.delivered",
"order.failed"
],
"enabled": true,
"disabledReason": null,
"consecutiveFailures": 0,
"lastSuccessAt": null,
"lastFailureAt": null,
"createdAt": "2026-11-29T09:00:00.000Z",
"conditions": [
{
"field": "order.payment",
"op": "eq",
"value": "cod"
}
],
"fields": {},
"headers": [
{
"name": "X-Api-Key",
"preview": "••••9f3a"
}
],
"timeoutMs": 10000,
"filteredToday": 0,
"secret": "whsec_…"
}
Answers
| HTTP | Meaning |
|---|---|
| 201 | The endpoint, with its signing secret (shown once). |
| 400 | The URL or the events are not valid. |
| 401 | Missing, malformed, unknown or revoked API key. |
| 403 | insufficient_scope, feature_off, or (writes) suspended or read_only. |
| 409 | The business has the most endpoints allowed. |
| 422 | invalid_condition, invalid_fields, invalid_header or invalid_timeout (see fields). |
| 429 | Rate limit reached for this key. |
GET /api/v1/webhook-endpoints/{id}
Scope: webhooks:manage
Parameters
| Name | In | Required | About |
|---|---|---|---|
id |
path | yes | The endpoint id. |
Example request
curl -X GET "https://connect.rylixfleet.com/api/v1/webhook-endpoints/cm4w5r2xk0001s8z0a1b2c3d4" \
-H "Authorization: Bearer $RYLIX_API_KEY"
Example answer (200)
{
"id": "cm4w5s7ab0002s8z0w3bh00k1",
"object": "webhook_endpoint",
"url": "https://example.com/rylix/webhooks",
"description": "Order status to our ERP",
"events": [
"order.delivered",
"order.failed"
],
"enabled": true,
"disabledReason": null,
"consecutiveFailures": 0,
"lastSuccessAt": null,
"lastFailureAt": null,
"createdAt": "2026-11-29T09:00:00.000Z",
"conditions": [
{
"field": "order.payment",
"op": "eq",
"value": "cod"
}
],
"fields": {},
"headers": [
{
"name": "X-Api-Key",
"preview": "••••9f3a"
}
],
"timeoutMs": 10000,
"filteredToday": 0,
"warnings": []
}
Answers
| HTTP | Meaning |
|---|---|
| 200 | The endpoint with its options and never-match warnings (never its secret or a header value). |
| 401 | Missing, malformed, unknown or revoked API key. |
| 403 | insufficient_scope, feature_off, or (writes) suspended or read_only. |
| 404 | No such endpoint in this business. |
| 429 | Rate limit reached for this key. |
PATCH /api/v1/webhook-endpoints/{id}
Scope: webhooks:manage
Only the keys you send change. A new url is checked like a new endpoint and keeps the signing secret. Headers: set adds or replaces values, remove drops names; values are never returned.
Parameters
| Name | In | Required | About |
|---|---|---|---|
id |
path | yes | The endpoint id. |
Request body
| Field | Type | Required | About |
|---|---|---|---|
url |
string | no | |
description |
string or null | no | max length 200 |
events |
array of event names (see Events) | no | min items 1 |
conditions |
array of object | no | max items 10 |
conditions[].field |
string (one of: order.payment, order.cod_amount, order.branch, order.pickup_location, order.client, order.account, order.service, order.kind, order.source, order.urgent, order.failure_category, order.status, driver.group, money.currency) |
yes | |
conditions[].op |
string (one of: eq, neq, in, not_in, gt, gte, lt, lte, between, is) |
yes | |
conditions[].value |
string or boolean or array of string or object | yes | |
fields |
object | no | Field selection per event family. A family left out sends every approved field (the default). An empty list sends only the ids. The subject's id and object, and the envelope, are always sent; no customer field can be chosen. |
fields.order_status |
array of: order.reference, order.orderName, order.trackingNumber, order.status, order.kind, order.source, order.pickupLocationId, order.cashOnDelivery, order.pieces, order.failureCategory, order.etaMinutes, order.createdAt, order.updatedAt, order.terminalAt, failureCategory |
no | |
fields.order_summary |
array of: order.reference, order.orderName, order.trackingNumber, order.status, order.kind, order.updatedAt |
no | |
fields.settlement |
array of: settlement.driverId, settlement.status, settlement.period, settlement.day, settlement.submitted, settlement.expected, settlement.confirmed, settlement.difference, settlement.submittedAt, settlement.decidedAt |
no | |
fields.location |
array of: location.name, location.address, location.lat, location.lng, location.isDefault, location.kind, location.active, location.phone, location.hours, location.parentBranchId, location.createdAt |
no | |
fields.driver |
array of: shift.driverId, shift.startedAt, shift.endedAt |
no | |
fields.remittance |
array of: remittance.clientId, remittance.number, remittance.status, remittance.currency, remittance.cutoffAt, remittance.grossCod, remittance.adjustments, remittance.feesNetted, remittance.remittanceFee, remittance.net, remittance.amountHanded, remittance.receiptMethod, remittance.readyAt, remittance.confirmedAt |
no | |
headers |
object | no | |
headers.set |
array of object | no | max items 5 |
headers.set[].name |
string | yes | max length 64 |
headers.set[].value |
string | yes | max length 1024 |
headers.remove |
array of string | no | |
timeoutMs |
integer | no | How long Rylix waits for your answer's status, in milliseconds: one deadline for the whole request (connecting included). The response body is never read. (min 1000, max 15000, default 10000) |
Example request
curl -X PATCH "https://connect.rylixfleet.com/api/v1/webhook-endpoints/cm4w5r2xk0001s8z0a1b2c3d4" \
-H "Authorization: Bearer $RYLIX_API_KEY" \
-H "Content-Type: application/json" \
-d '{"conditions": [{"field": "order.payment", "op": "eq", "value": "cod"}, {"field": "order.branch", "op": "in", "value": ["cm4w5r2xk0009s8z0loc00001"]}], "fields": {"order_status": ["order.status", "order.trackingNumber", "order.cashOnDelivery"]}, "headers": {"set": [{"name": "X-Api-Key", "value": "your-receiver-key"}], "remove": []}, "timeoutMs": 15000}'
Example answer (200)
{
"id": "cm4w5s7ab0002s8z0w3bh00k1",
"object": "webhook_endpoint",
"url": "https://example.com/rylix/webhooks",
"description": "Order status to our ERP",
"events": [
"order.delivered",
"order.failed"
],
"enabled": true,
"disabledReason": null,
"consecutiveFailures": 0,
"lastSuccessAt": null,
"lastFailureAt": null,
"createdAt": "2026-11-29T09:00:00.000Z",
"conditions": [
{
"field": "order.payment",
"op": "eq",
"value": "cod"
}
],
"fields": {},
"headers": [
{
"name": "X-Api-Key",
"preview": "••••9f3a"
}
],
"timeoutMs": 15000,
"filteredToday": 0,
"warnings": []
}
Answers
| HTTP | Meaning |
|---|---|
| 200 | The endpoint after the change, with never-match warnings. |
| 400 | The URL, events or description are not valid. |
| 401 | Missing, malformed, unknown or revoked API key. |
| 403 | insufficient_scope, feature_off, or (writes) suspended or read_only. |
| 404 | No such endpoint in this business. |
| 409 | The stored header values can no longer be read: set every header again. |
| 422 | invalid_condition, invalid_fields, invalid_header or invalid_timeout (see fields). |
| 429 | Rate limit reached for this key. |
DELETE /api/v1/webhook-endpoints/{id}
Scope: webhooks:manage
Parameters
| Name | In | Required | About |
|---|---|---|---|
id |
path | yes | The endpoint id. |
Example request
curl -X DELETE "https://connect.rylixfleet.com/api/v1/webhook-endpoints/cm4w5r2xk0001s8z0a1b2c3d4" \
-H "Authorization: Bearer $RYLIX_API_KEY"
Answers
| HTTP | Meaning |
|---|---|
| 204 | Deleted, with its pending deliveries. |
| 401 | Missing, malformed, unknown or revoked API key. |
| 403 | insufficient_scope, feature_off, or (writes) suspended or read_only. |
| 404 | No such endpoint in this business. |
| 429 | Rate limit reached for this key. |
POST /api/v1/webhook-endpoints/{id}/test
Scope: webhooks:manage
Sends the fixture event of type (never your real data) to the endpoint now, signed with its secret, with its custom headers and timeout, marked "test": true and Rylix-Test: 1. One attempt, never retried, never counted toward auto-disable. 10 per endpoint and 30 per business per rolling hour.
Parameters
| Name | In | Required | About |
|---|---|---|---|
id |
path | yes | The endpoint id. |
Request body
| Field | Type | Required | About |
|---|---|---|---|
type |
string (one of: order.created, order.assigned, order.picked_up, order.on_the_way, order.arrived, order.delivered, order.failed, order.returned, order.cancelled, order.rescheduled, order.address_changed, order.unassigned, order.reassigned, order.attempt_failed, order.redelivery_scheduled, order.pieces_scanned, order.proof_added, order.change_requested, order.change_declined, order.phone_updated, order.rated, order.cash_collected, settlement.submitted, settlement.confirmed, settlement.rejected, return.started, return.received, order.exchange_created, order.linked_created, remittance.ready, remittance.confirmed, remittance.disputed, location.created, location.updated, driver.shift_started, driver.shift_ended) |
yes |
Example request
curl -X POST "https://connect.rylixfleet.com/api/v1/webhook-endpoints/cm4w5r2xk0001s8z0a1b2c3d4/test" \
-H "Authorization: Bearer $RYLIX_API_KEY" \
-H "Content-Type: application/json" \
-d '{"type": "order.delivered"}'
Example answer (200)
{
"object": "webhook_test",
"id": "cm4w5u9ef0004s8z0t3s7x8y9",
"eventId": "evt_test_4fJk2LmN8pQr5sTu7vWx9yZa",
"type": "order.delivered",
"statusCode": 200,
"durationMs": 184,
"errorCode": null
}
Answers
| HTTP | Meaning |
|---|---|
| 200 | What your endpoint answered (the test is logged as a test delivery). |
| 401 | Missing, malformed, unknown or revoked API key. |
| 403 | insufficient_scope, feature_off, or (writes) suspended or read_only. |
| 404 | No such endpoint in this business. |
| 409 | The endpoint is disabled. |
| 422 | The endpoint is not subscribed to this type. |
| 429 | Too many test sends in the last hour (Retry-After), or the key's rate limit. |
GET /api/v1/webhook-endpoints/{id}/preview
Scope: webhooks:manage
The exact JSON body a test send of type would carry for this endpoint (fixture data, after its field selection). No network call, no signature.
Parameters
| Name | In | Required | About |
|---|---|---|---|
id |
path | yes | The endpoint id. |
type |
query | yes | The event type to preview. |
Example request
curl -X GET "https://connect.rylixfleet.com/api/v1/webhook-endpoints/cm4w5r2xk0001s8z0a1b2c3d4/preview?type=order.delivered" \
-H "Authorization: Bearer $RYLIX_API_KEY"
Example answer (200)
{
"object": "webhook_preview",
"body": {
"id": "evt_test_4fJk2LmN8pQr5sTu7vWx9yZa",
"type": "order.delivered",
"createdAt": "2026-11-30T09:00:00.000Z",
"test": true,
"data": {
"order": {
"id": "ord_test_000000000000000000",
"object": "order",
"status": "delivered"
}
}
},
"warnings": []
}
Answers
| HTTP | Meaning |
|---|---|
| 200 | The body, and conditions that can never match this type. |
| 401 | Missing, malformed, unknown or revoked API key. |
| 403 | insufficient_scope, feature_off, or (writes) suspended or read_only. |
| 404 | No such endpoint in this business. |
| 422 | Not a webhook event type. |
| 429 | Rate limit reached for this key. |
GET /api/v1/webhook-catalog
Scope: webhooks:manage
Event groups, event families and their approved fields, condition fields and operators, header rules, timeout bounds and test limits: everything needed to build an endpoint editor.
Example request
curl -X GET "https://connect.rylixfleet.com/api/v1/webhook-catalog" \
-H "Authorization: Bearer $RYLIX_API_KEY"
Answers
| HTTP | Meaning |
|---|---|
| 200 | The catalog. |
| 401 | Missing, malformed, unknown or revoked API key. |
| 403 | insufficient_scope, feature_off, or (writes) suspended or read_only. |
| 429 | Rate limit reached for this key. |
| Field | Type | Required | About |
|---|---|---|---|
id |
string | yes | |
object |
string (one of: webhook_endpoint) |
yes | |
url |
string | yes | |
description |
string or null | yes | |
events |
array of event names (see Events) | yes | |
enabled |
boolean | yes | |
disabledReason |
string or null | yes | |
consecutiveFailures |
integer | yes | |
lastSuccessAt |
string or null | yes | |
lastFailureAt |
string or null | yes | |
createdAt |
string | yes | |
conditions |
array of object | yes | All must hold; empty: every subscribed event. (max items 10) |
conditions[].field |
string (one of: order.payment, order.cod_amount, order.branch, order.pickup_location, order.client, order.account, order.service, order.kind, order.source, order.urgent, order.failure_category, order.status, driver.group, money.currency) |
yes | |
conditions[].op |
string (one of: eq, neq, in, not_in, gt, gte, lt, lte, between, is) |
yes | |
conditions[].value |
string or boolean or array of string or object | yes | |
fields |
object | yes | Field selection per event family. A family left out sends every approved field (the default). An empty list sends only the ids. The subject's id and object, and the envelope, are always sent; no customer field can be chosen. |
fields.order_status |
array of: order.reference, order.orderName, order.trackingNumber, order.status, order.kind, order.source, order.pickupLocationId, order.cashOnDelivery, order.pieces, order.failureCategory, order.etaMinutes, order.createdAt, order.updatedAt, order.terminalAt, failureCategory |
no | |
fields.order_summary |
array of: order.reference, order.orderName, order.trackingNumber, order.status, order.kind, order.updatedAt |
no | |
fields.settlement |
array of: settlement.driverId, settlement.status, settlement.period, settlement.day, settlement.submitted, settlement.expected, settlement.confirmed, settlement.difference, settlement.submittedAt, settlement.decidedAt |
no | |
fields.location |
array of: location.name, location.address, location.lat, location.lng, location.isDefault, location.kind, location.active, location.phone, location.hours, location.parentBranchId, location.createdAt |
no | |
fields.driver |
array of: shift.driverId, shift.startedAt, shift.endedAt |
no | |
fields.remittance |
array of: remittance.clientId, remittance.number, remittance.status, remittance.currency, remittance.cutoffAt, remittance.grossCod, remittance.adjustments, remittance.feesNetted, remittance.remittanceFee, remittance.net, remittance.amountHanded, remittance.receiptMethod, remittance.readyAt, remittance.confirmedAt |
no | |
headers |
array of object | yes | Custom header names with a masked tail. Values are never returned. (max items 5) |
headers[].name |
string | yes | |
headers[].preview |
string | yes | |
timeoutMs |
integer | yes | How long Rylix waits for your answer's status, in milliseconds: one deadline for the whole request (connecting included). The response body is never read. (min 1000, max 15000, default 10000) |
filteredToday |
integer | yes | Events the conditions filtered out today (since local midnight in the business's time zone). (min 0) |
warnings |
array of object | no | Subscribed events a condition can never match (for example an order condition on a settlement event). |
warnings[].event |
string | yes | |
warnings[].index |
integer | yes | min 0 |
warnings[].field |
string | yes | |
secret |
string or null | no | Only in the answer that creates the endpoint (null on an Idempotency-Key replay). |
| Field | Type | Required | About |
|---|---|---|---|
field |
string (one of: order.payment, order.cod_amount, order.branch, order.pickup_location, order.client, order.account, order.service, order.kind, order.source, order.urgent, order.failure_category, order.status, driver.group, money.currency) |
yes | |
op |
string (one of: eq, neq, in, not_in, gt, gte, lt, lte, between, is) |
yes | |
value |
string or boolean or array of string or object | yes |
| Field | Type | Required | About |
|---|---|---|---|
order_status |
array of: order.reference, order.orderName, order.trackingNumber, order.status, order.kind, order.source, order.pickupLocationId, order.cashOnDelivery, order.pieces, order.failureCategory, order.etaMinutes, order.createdAt, order.updatedAt, order.terminalAt, failureCategory |
no | |
order_summary |
array of: order.reference, order.orderName, order.trackingNumber, order.status, order.kind, order.updatedAt |
no | |
settlement |
array of: settlement.driverId, settlement.status, settlement.period, settlement.day, settlement.submitted, settlement.expected, settlement.confirmed, settlement.difference, settlement.submittedAt, settlement.decidedAt |
no | |
location |
array of: location.name, location.address, location.lat, location.lng, location.isDefault, location.kind, location.active, location.phone, location.hours, location.parentBranchId, location.createdAt |
no | |
driver |
array of: shift.driverId, shift.startedAt, shift.endedAt |
no | |
remittance |
array of: remittance.clientId, remittance.number, remittance.status, remittance.currency, remittance.cutoffAt, remittance.grossCod, remittance.adjustments, remittance.feesNetted, remittance.remittanceFee, remittance.net, remittance.amountHanded, remittance.receiptMethod, remittance.readyAt, remittance.confirmedAt |
no |
| Field | Type | Required | About |
|---|---|---|---|
object |
string (one of: webhook_test) |
yes | |
id |
string | yes | The logged test delivery. |
eventId |
string | yes | |
type |
string | yes | |
statusCode |
integer or null | yes | |
durationMs |
integer | yes | min 0 |
errorCode |
string or null | yes | Null on 2xx; else http_, timeout, network, blocked_address, secret_unavailable or headers_unavailable. |
| Field | Type | Required | About |
|---|---|---|---|
object |
string (one of: webhook_preview) |
yes | |
body |
object | yes | One event. No event carries customer personal data (name, phone, address, coordinates, note). The order status events carry the webhook order; every other event carries its own fields and, when it is about an order, the order summary. Fetch GET /api/v1/orders/{id} for the full order. |
warnings |
array of object | yes | Subscribed events a condition can never match (for example an order condition on a settlement event). |
warnings[].event |
string | yes | |
warnings[].index |
integer | yes | min 0 |
warnings[].field |
string | yes |