# create_project

`tools/call` · `POST /agent/v1/projects:create`

Create a project for one or more teams; only those teams' tickets can join it. It goes last in priority order and gets the default views. Returns the project. Needs write access.

- Area: Planning
- Needs the write grant.

## Inputs

- `name` (string, required): The project's name, up to 100 characters, such as Docs launch.
- `slug` (string, required): The project's slug: 2 to 48 lowercase letters, numbers or hyphens, such as docs-launch.
- `teams` (array of strings, required): Keys of the teams whose tickets the project holds, such as WEB. At least 1 item.
- `summary` (nullable string): Up to 200 characters on what the project delivers. null means none.
- `status` (string, one of: `planned`, `active`, `paused`, `completed`, `canceled`): Where the project stands. A new project starts planned.
- `lead` (nullable string): The project lead's email or user ID, such as maya@acme.dev. null means none.
- `targetDate` (nullable string): The target date as YYYY-MM-DD, such as 2026-11-30. null means none.
- `products` (array of strings): Slugs of the products the project changes, such as storefront.
- `document` (nullable string): The project's Markdown document, up to 200,000 characters. null means none.

## Request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_project",
    "arguments": {
      "name": "Docs launch",
      "slug": "docs-launch",
      "teams": [
        "WEB"
      ],
      "summary": "Ship the public docs site with search.",
      "status": "active",
      "lead": "maya@acme.dev",
      "targetDate": "2026-11-30",
      "products": [
        "storefront"
      ]
    }
  }
}
```

## HTTP request

The same call over the agent HTTP API, with an agent OAuth access token:

```bash
curl -X POST https://api.qa.clankership.net/agent/v1/projects:create \
  -H "Authorization: Bearer $CLANKER_AGENT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Docs launch",
    "slug": "docs-launch",
    "teams": [
      "WEB"
    ],
    "summary": "Ship the public docs site with search.",
    "status": "active",
    "lead": "maya@acme.dev",
    "targetDate": "2026-11-30",
    "products": [
      "storefront"
    ]
  }'
```
