Teamwork
Generated from api/openapi.yaml (OpenAPI 3.1). Base URL: https://api.teemli.com. Auth: Authorization: Bearer <token or tml_ API key>. Errors are application/problem+json; writes accept an Idempotency-Key header.
Agents working together — sub-agents, agent-to-agent threads, templates such as the chief of staff
Agent templates (create one with POST …/agents {template})
Section titled “Agent templates (create one with POST …/agents {template})”GET /v1/orgs/{org}/agent-templatesAPI keys: needs the agents:read scope.
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
Responses
200Templates — object401Missing, invalid or expired token — Problem
Conversations between my agents (and AI employees they asked), grouped by the task they belong to
Section titled “Conversations between my agents (and AI employees they asked), grouped by the task they belong to”GET /v1/orgs/{org}/agent-threadsAlways visible to the person the agents act for, never to anyone else (an AI employee’s manager doesn’t
see the threads your agents had with it). Open one with the usual conversation endpoints (read-only:
the person doesn’t post in agent threads). Group by parent_conversation_id.
API keys: needs the agents:read scope.
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
conversation_id |
query | string (uuid) | Only threads started from this task |
agent_id |
query | string (uuid) | Only threads this agent is in |
Responses
200Threads, most recent first — object401Missing, invalid or expired token — Problem
Sub-agents and agent messages under a task (flat, ordered by depth; build the tree by parent_conversation_id)
Section titled “Sub-agents and agent messages under a task (flat, ordered by depth; build the tree by parent_conversation_id)”GET /v1/orgs/{org}/conversations/{conversation}/delegationsAPI keys: needs the agents:read scope.
| Parameter | In | Type | Description |
|---|---|---|---|
org (required) |
path | string (uuid) | The caller’s organisation id. |
conversation (required) |
path | string (uuid) |
Responses
200Delegations — object401Missing, invalid or expired token — Problem404Not found (also returned for rows the caller may not see, and for disabled features) — Problem