Endpoints
| Method | Path | Description |
|---|---|---|
GET | /v1/purposes | List all purposes for the org |
POST | /v1/purposes | Create a new purpose (status draft) |
POST | /v1/purposes/{id}/publish | Promote a draft to active |
policy_write or
admin scope on the API key.
Purpose object
intent_class is one of reporting, export, admin, lookup,
analysis, write, other. status is draft, active, or
archived — only active purposes match traffic.
List purposes
Create a purpose
201 Created with the new purpose object. Status defaults to
draft.
Publish
active. The next matching tool call is decided
against the purpose immediately.
Errors
403 if the API key lacks policy_write. 409 if a label collides
with an existing purpose.
Read next
- Intent Events — what evaluates against the purposes you publish
- Define your purpose policies