API reference
Overview
Base URL, authentication, errors and paging, plus every control-plane endpoint at a glance.
The control-plane API configures BreezeIQ and reads its profiles, segments and members.
Conventions#
| Base URL | https://api.breeze.in/cdp/control-plane |
| Format | JSON in and out (Content-Type: application/json) |
| Auth | Authorization: Bearer <token>, with a cpt_... or cpw_... token. See Authentication. |
| Errors | {"error": "human-readable message"} with an HTTP status. See Errors. |
| Paging | List endpoints return next_cursor. Pass it back as ?cursor=. null means the last page. |
Scopes#
Each endpoint shows the token it needs.
| Scope | Accepts |
|---|---|
| tenant | A tenant token (cpt_...) |
| workspace | A tenant token, or that workspace's own token (cpw_...) |
Endpoints#
Workspaces#
| Endpoint | Request | Scope |
|---|---|---|
| Create a workspace | POST / | tenant |
| List workspaces | GET / | workspace |
| Add an alias | PUT / | tenant |
| Remove an alias | DELETE / | tenant |
Tokens#
| Endpoint | Request | Scope |
|---|---|---|
| Check a token | GET / | any |
| Create a workspace token | POST / | tenant |
| List tokens | GET / | tenant |
| Revoke a token | DELETE / | tenant |
Event types#
| Endpoint | Request | Scope |
|---|---|---|
| Register an event type | PUT / | tenant |
| List event types | GET / | workspace |
| Delete an event type | DELETE / | tenant |
Metric definitions#
| Endpoint | Request | Scope |
|---|---|---|
| Create a metric definition | PUT / | tenant |
| List metric definitions | GET / | workspace |
| Delete a metric definition | DELETE / | tenant |
Segments#
| Endpoint | Request | Scope |
|---|---|---|
| Preview a segment | POST / | tenant |
| Create a segment | PUT / | tenant |
| List segments | GET / | workspace |
| Get a segment | GET / | workspace |
| Update segment status | PUT / | tenant |
| Delete a segment | DELETE / | tenant |
Profiles#
| Endpoint | Request | Scope |
|---|---|---|
| Look up a profile | GET / | workspace |
| Get a profile | GET / | workspace |
| List profile summaries | GET / | workspace |
| List profiles | GET / | workspace |
| Get profile segments | GET / | workspace |
| Erase a profile | DELETE / | tenant |
Segment members#
| Endpoint | Request | Scope |
|---|---|---|
| Check membership | GET / | workspace |
| List segment members | GET / | workspace |
| Export segment members | GET / | workspace |