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

# Create an agent

> Create a private agent with a title and prompt.

If you omit `type`, Tess creates a Chat agent. The supported types are `chat`, `text`, `image`, and `video`. Tess uses the applicable platform defaults for omitted optional settings. When a type needs an explicit model configuration, use the models category to find an eligible `model_configuration_id`.

For `connectors`, use `user_decision`, `fixed` with a list of slugs, or `disabled`. For each of `model`, `tools`, and `creativity` in `advanced_settings`, use `user_decision` or `restricted` with `allowed_values`.

Find supported values in [List agent options](https://docs.tess.im/en/list-agent-options.md).

Send a Bearer token with API and agent authoring access, and send the workspace ID in the `x-workspace-id` header.

The response is `201 Created` with the agent's ID, slug, title, type, visibility, and update time.

A `403` response means the token lacks the required workspace access or permission. A `422` response identifies invalid input or unavailable configuration values.

```bash cURL theme={null}
curl --fail-with-body --request POST \
  --url 'https://api.tess.im/agents' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'x-workspace-id: YOUR_WORKSPACE_ID' \
  --header 'Content-Type: application/json' \
  --data '{"title":"Support assistant","prompt":"Help customers track their orders."}'
```


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