App API overview
Use the App API to start work in a session, send follow-up messages, and read the results as they arrive. Call it from your scripts, CI jobs, or services.
Base URL
https://api.thecompany.company/v1Send an organization-scoped access token as a Bearer credential. For example, list one session visible to a token with sessions:read:
curl --fail-with-body --silent --show-error \
-H "Authorization: Bearer $TCC_ACCESS_TOKEN" \
'https://api.thecompany.company/v1/sessions?limit=1'Start with a session
Create a session in an environment, then submit a prompt to its root thread. List events or follow a stream to see what happens next. To send a message from one session to another or work in a separate thread, see common flows.
Errors
Use the HTTP status and typed error body to decide whether to change the request or wait and retry.
Endpoint reference
Browse request schemas and code examples for the operations below. The OpenAPI download includes the broader v1 contract for SDK generation.
| Resource | Use it to |
|---|---|
| Sessions | Start work, send messages, read or stream events, and manage threads in a session. |
| Environments | Find the environment ID to use for a coding session. |