Endpoints
Roles API
CRUD endpoints for agent roles (system prompts)
Roles define custom system prompts that shape how Claude agents behave when working on tasks. A role can be assigned to individual tasks to customize agent behavior.
Returns all roles for a project.
Returns all roles not tied to a specific project. Global roles are available across all projects.
Accepts the same fields as Create. All fields are required on update.