---
title: "App API overview"
description: "Use the v1 App API to start sessions, follow events, and work with your organization’s resources."
url: "https://www.thecompany.company/docs/api"
---

# App API overview

> Use the v1 App API to start sessions, follow events, and work with your organization’s resources.

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 [#base-url]

```text
https://api.thecompany.company/v1
```

Send an organization-scoped [access token](/docs/api/authentication) as a Bearer credential. For example, list one session visible to a token with `sessions:read`:

```bash
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 [#start-with-a-session]

[Create a session](/docs/api/sessions/create) in an environment, then [submit a prompt](/docs/api/sessions/push-events) to its root thread. [List events](/docs/api/sessions/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](/docs/api/common-flows).

- [Quickstart](https://www.thecompany.company/docs/api/quickstart.md): Create a session, submit your first prompt, and read its events with curl.

- [Stream events](https://www.thecompany.company/docs/api/streaming.md): Follow a session over server-sent events and resume after a disconnect.

## Errors [#errors]

Use the HTTP status and typed error body to decide whether to change the request or wait and retry.

- [Error handling](https://www.thecompany.company/docs/api/errors.md): Read typed error responses and decide when it’s safe to try again.

- [Rate limits](https://www.thecompany.company/docs/api/rate-limits.md): Understand shared request limits, response headers, and what to do on a 429.

## Endpoint reference [#endpoint-reference]

Browse request schemas and code examples for the operations below. The [OpenAPI download](/docs/openapi.json) includes the broader v1 contract for SDK generation.

| Resource | Use it to |
| --- | --- |
| [Sessions](/docs/api/sessions) | Start work, send messages, read or stream events, and manage threads in a session. |
| [Environments](/docs/api/environments) | Find the environment ID to use for a coding session. |
