Tenant stats
Entity counts for the tenant — workspaces, agents, catalogs, orders, users and sessions — spanning the whole tenant, or one workspace when workspaceId is given.
Access: tenant_admin · API key stats:read
api-keyAuthorizationBearer <sk_waylo_<lookup><secret><checksum>>workspaceId?stringuuidSuccess
application/json- response
workspaces*numberagents*numbercatalogs*numberorders*numberusers*numbersessions*numbercurl -X GET 'https://api.poc.app.waylovoice.ai/stats' \ -H 'Authorization: Bearer sk_waylo_...'{ "workspaces": 0, "agents": 0, "catalogs": 0, "orders": 0, "users": 0, "sessions": 0}List sessions GET
Sessions in one workspace, newest first, offset-paginated. Filters are exact matches, plus a createdAt range and `hasItems`; `search` matches the caller (end-user name, phone, external id, from-address). `configSummary` carries the agent name when the session started, and the provider, model and voice of each stage by id and current name; it is null for a key without agents:read. **Access:** workspace_viewer · API key `sessions:read`
Create connection POST
Connect a carrier account. `provider` decides the shape of `config`, and an unknown `config` key is refused. The credentials are checked against the carrier before anything is stored (422 when refused), then the Waylo trunk is provisioned in the account. Answers with the connection, `active` or `failed` with a `statusReason` — a failure is its state, not a failed request, retried with a resync. 503 when telephony is not configured. **Access:** tenant_admin · API key `telephony:write`