API reference
Every endpoint, its auth and scope.
Base URL
https://api.zahrex.com/v1Endpoints
/oauth/tokenExchange a client id and secret for a one-hour access token.
- Auth
client_credentials
/eventsSend one event, or {"events": [...]} as a batch; each event is {id, type, occurred_at?, data} and needs an id or an Idempotency-Key header. Answers per event in results[]: accepted, duplicate, or rejected with an error message. A rejected event does not fail the others.
- Auth
token_or_key- Scope
depends on event type
/catalog/servicesList the organization's active services.
- Auth
token_or_key- Scope
catalog:read
/catalog/productsList the organization's products.
- Auth
token_or_key- Scope
catalog:read
/customersLook up a customer by the phone or email query parameter.
- Auth
token_or_key- Scope
customers:read
/reference.jsonThis document.
- Auth
none
Lead stages
The stages a lead can be in, for stage fields and the lead.stage_changed webhook.
newsigned_uptrialpayingchurnedlost