> ## Documentation Index
> Fetch the complete documentation index at: https://docs.personal.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Build on Composer: chat with assistants, feed them knowledge, and react to events.

The Composer API gives you the same operations the Composer Studio uses. You can chat with your assistants, manage their conversations and knowledge, read and write memory, start recipes with events, and hand out onboarding links.

## Base URL

```
https://composer.personal.ai/lab/api/v1
```

## Making a request

Almost everything in Composer is an **operation** with a name, like `agent.chat` or `knowledge.add`. Call any operation by sending its input as JSON to:

```
POST /op/{operation-name}
```

The response is the operation's output as JSON, with nothing wrapped around it.

```bash cURL theme={null}
curl --request POST 'https://composer.personal.ai/lab/api/v1/op/agent.list' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <your-api-key>' \
--data '{}'
```

A few things use their own routes: [streaming chat](https://docs.personal.ai/composer_apis/chat-streaming.md), [file upload](https://docs.personal.ai/composer_apis/file-upload.md), [inbound webhooks](https://docs.personal.ai/composer_apis/inbound-webhooks.md), the [event stream](https://docs.personal.ai/composer_apis/event-stream.md), [onboarding sessions](https://docs.personal.ai/composer_apis/onboarding-sessions.md) and the [MCP server](https://docs.personal.ai/composer_apis/mcp.md).

## Finding operations

This reference covers the operations most integrations need. To see every operation your key can use, with its input and output schemas, call [List Operations](https://docs.personal.ai/composer_apis/list-operations.md).

## Errors

Errors from `/op` come back as a plain-text message, not JSON.

| Code | Meaning |
| - | - |
| 400 | The input doesn't match the operation's schema, or the operation failed. The message says why. |
| 401 | Missing or invalid API key, or the session expired |
| 403 | Your key isn't allowed to do this. For example, a read-only key calling an operation that changes data. |
| 404 | No operation by that name |

```text Example Error Response theme={null}
operation 'knowledge.add' mutates; this key is read-only
```

## Pagination

Operations that page, such as [List Knowledge](https://docs.personal.ai/composer_apis/endpoint/knowledge-list.md), take `limit` and `before`. To get the next page, pass the oldest item's `created_at` as `before`. A page shorter than `limit` means there are no more.

## Limits

* Request bodies to `/op` can be up to 32 MB. Use [file upload](https://docs.personal.ai/composer_apis/file-upload.md) for larger files.
* Inbound webhooks are limited to 120 events per minute per device.

> [card] [Authentication](https://docs.personal.ai/composer_apis/authentication.md)
>
> API keys and what each kind can do.

> [card] [Chat](https://docs.personal.ai/composer_apis/endpoint/agent-chat.md)
>
> Send your first message to an assistant.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.