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

# Create project

> Create a project for the product domain.

`create_project`

Create a project for the product domain.

<Note>Hosted MCP registration verified. These schemas describe the development contract; confirm supported inputs with tools/list. Generic CLI/HTTP calls require a matching development server. Configure LINKTRAIL\_API\_URL; production does not expose these command routes.</Note>

| Access           | Behavior              |
| ---------------- | --------------------- |
| `projects:write` | Writes or admits work |

Reading saved data does not start a verification job. Mutations can change saved records or access; the effects below apply.

## Example request

Connect through [MCP](/guides/connect-mcp), [CLI](/guides/connect-cli), or [HTTP](/guides/connect-http). Replace example identifiers with records from your workspace.

<CodeGroup>
  ```json MCP theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "create_project",
      "arguments": {
        "name": "Example project",
        "domain": "example.com"
      }
    }
  }
  ```

  ```bash CLI theme={null}
  linktrail call create_project --args '{"name":"Example project","domain":"example.com"}'
  ```

  ```bash HTTP theme={null}
  curl "$LINKTRAIL_API_URL/v1/commands/create_project" \
    -H "Authorization: Bearer $LINKTRAIL_API_KEY" \
    -H 'Content-Type: application/json' \
    --data '{"name":"Example project","domain":"example.com"}'
  ```
</CodeGroup>

## Returned result

Illustrative data validated against the documented response schema. IDs and dates are examples, not a live account capture. MCP returns this data in `structuredContent` and in a text content block; generic HTTP and CLI return the JSON result directly.

```json theme={null}
{
  "id": "pr_example",
  "workspace_id": "ws_example",
  "name": "Example project",
  "domain": "example.com",
  "created_at": "2026-09-13T12:00:00.000Z",
  "created": true
}
```

## Input fields

Omit optional fields when you do not want to supply them. Null is accepted only where listed. Unknown input properties are rejected.

| Field            | Type   | Presence | Meaning and constraints                                                                                                          |
| ---------------- | ------ | -------- | -------------------------------------------------------------------------------------------------------------------------------- |
| `name`           | string | Required | Human-readable name for the resource being created or updated. minLength: 1; maxLength: 200                                      |
| `domain`         | string | Required | Project domain name, such as example.com. minLength: 1; maxLength: 2048                                                          |
| `idempotencyKey` | string | Optional | Caller-generated key reused only for retries of the same operation and arguments in this workspace. minLength: 1; maxLength: 200 |

### Validation and omitted values

Without idempotencyKey, project creation is an unkeyed write. Preserve a supplied value on retries; it is bound to the original name/domain request. Project-restricted grants cannot create projects.

## Output fields

Fields inside optional or nullable parents apply only when that parent exists. [Common schema conventions](/reference/schemas) explain evidence states, empty lists and extensions.

| Field          | Type    | Presence | Meaning and constraints                                                              |
| -------------- | ------- | -------- | ------------------------------------------------------------------------------------ |
| `id`           | string  | Required | Resource identifier returned by the operation.                                       |
| `workspace_id` | string  | Required | Workspace that owns this record.                                                     |
| `name`         | string  | Required | name recorded for this result.                                                       |
| `domain`       | string  | Required | domain recorded for this result.                                                     |
| `created_at`   | string  | Required | UTC timestamp when the record was created.                                           |
| `created`      | boolean | Optional | True when this request created the record; false when an existing record was reused. |

[Download input schema](/schemas/create_project.input.json) · [Download output schema](/schemas/create_project.output.json)

## Errors and retries

This command is not annotated idempotent. After a timeout, inspect existing state before repeating a write.

See [error recovery](/reference/errors) for status, scope, cooldown, cursor and retry handling. Unknown observations are result data and do not establish loss.

## HTTP resource routes

These existing resource routes share the operation’s domain behavior. Their parameter placement, status and response envelope can differ from generic invocation. See [HTTP route details](/reference/http/routes).

| Method and route    | Success | Details                                       |
| ------------------- | ------- | --------------------------------------------- |
| `POST /v1/projects` | 201     | Remaining arguments go in a JSON object body. |

## Continue

[get\_project](/reference/commands/get_project) · [monitor\_link](/reference/commands/monitor_link)

Follow the [related workflow](/guides/connect-http), inspect [capability status](/capability-status), or return to the [command index](/reference/index).
