Source of truth: the live API reference and the OpenAPI document at
https://connect.rylixfleet.com/api/v1/openapi.json. If this wiki and they ever disagree, they win.
The developer API is a plan feature. If it is not on your business's plan, Settings → Developers says so and API calls answer 403 feature_off. Contact Rylix to add it. Webhooks you already set up keep working.
The business owner creates keys in the Rylix dashboard: Settings → Developers → API keys.
A key looks like rxk_ followed by 40 letters and digits. A business can have up to 25 active keys. Each key shows when it was created, by whom, and when it was last used.
Keep keys on your server. Never put a key in a browser, a mobile app or a public repository. If a key may have leaked, click Revoke: requests with it stop working at once, and this cannot be undone.
Base URL:
https://connect.rylixfleet.com/api/v1
curl "https://connect.rylixfleet.com/api/v1/locations" \
-H "Authorization: Bearer $RYLIX_API_KEY"
Then create an order (needs orders:write):
curl -X POST "https://connect.rylixfleet.com/api/v1/orders" \
-H "Authorization: Bearer $RYLIX_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"reference":"WEB-10042","customer":{"name":"Rana Haddad","phone":"+96170123456"},"address":{"text":"Hamra St, Bldg 12, 3rd floor","lat":33.8959,"lng":35.4787},"cashOnDelivery":{"amount":"25.00","currency":"USD"}}'
The order is created exactly as the dashboard's order form creates it: the customer is saved and dispatch starts at once. The answer includes the order's trackingUrl, the page your customer follows.
"25.00".USD and LBP.Request-Id header; quote it when you contact Rylix support.