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

> ## Agent Instructions
> Call https://api.feyn.ai only; the hosts behind it are not public.
> Authenticate with a workspace API key in the Authorization header: `Authorization: Bearer fn_...`. Keep keys server-side.
> For chat completions, use the official OpenAI SDK with base_url https://api.feyn.ai/v1 and a model ID from GET /v1/models.
> On 429, wait for the Retry-After header before retrying. Failed requests are not charged.

# Projects

> A project is the namespace a workflow reports its traces and scores under.

Each trace belongs to one project, and the dashboard shows one project at a time. Create projects on the dashboard or over the API, so an agent can set up its own namespace.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl https://api.feyn.ai/v1/projects \
  -H "Authorization: Bearer $FEYN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Inbox triage"}'
```

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{ "id": "k97...", "projectKey": "inbox-triage", "displayName": "Inbox triage" }
```

## Request

**name** `string` *required*

Display name. Must contain at least one letter or number.

**projectKey** `string`

An explicit key: lowercase letters, numbers and dashes, up to 64 characters. Defaults to a slug of `name`.

## Response

`201 Created` with the stored project.

**id** `string`

The project's id.

**projectKey** `string`

The stable key. Send it as `X-Feyn-Project` on traces and scores; it also appears in dashboard URLs.

**displayName** `string`

The name as stored.

## Duplicates

Creating a project is not idempotent. A second project with the same key gets `409 Conflict`, so treat `409` as "already exists" if your code creates projects on startup.


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