---
title: "Register a new project from a git repository path"
method: POST
path: "/api/v1/projects"
tags: ["projects"]
---

# Register a new project from a git repository path

`POST /api/v1/projects`

## Request body

- AddProjectInput
  - `asWorkspace` boolean
  - `config` ProjectConfig
    - `agentConfig` AgentConfig
      - `mode` string
      - `model` string
      - `permissions` string
    - `agentRules` string
    - `agentRulesFile` string
    - `containerReap` ContainerReapConfig
      - `disabled` boolean
    - `defaultBranch` string
    - `env` object
    - `orchestrator` RoleOverride
      - `agent` string
      - `agentConfig` AgentConfig
        - `mode` string
        - `model` string
        - `permissions` string
    - `orchestratorRules` string
    - `postCreate` string[]
    - `reviewers` DomainReviewerConfig[]
      - `harness` string, required
    - `sessionPrefix` string
    - `symlinks` string[]
    - `trackerIntake` TrackerIntakeConfig
      - `assignee` string
      - `enabled` boolean
      - `provider` 'github'
      - `repo` string
    - `worker` RoleOverride
      - `agent` string
      - `agentConfig` AgentConfig
        - `mode` string
        - `model` string
        - `permissions` string
  - `name` string, nullable
  - `path` string, required
  - `projectId` string, nullable

## Response `201`

Created

- ProjectResponse
  - `project` Project, required
    - `agent` string
    - `config` ProjectConfig
      - `agentConfig` AgentConfig
        - `mode` string
        - `model` string
        - `permissions` string
      - `agentRules` string
      - `agentRulesFile` string
      - `containerReap` ContainerReapConfig
        - `disabled` boolean
      - `defaultBranch` string
      - `env` object
      - `orchestrator` RoleOverride
        - `agent` string
        - `agentConfig` AgentConfig
          - `mode` string
          - `model` string
          - `permissions` string
      - `orchestratorRules` string
      - `postCreate` string[]
      - `reviewers` DomainReviewerConfig[]
        - `harness` string, required
      - `sessionPrefix` string
      - `symlinks` string[]
      - `trackerIntake` TrackerIntakeConfig
        - `assignee` string
        - `enabled` boolean
        - `provider` 'github'
        - `repo` string
      - `worker` RoleOverride
        - `agent` string
        - `agentConfig` AgentConfig
          - `mode` string
          - `model` string
          - `permissions` string
    - `defaultBranch` string, required
    - `id` string, required
    - `kind` 'single_repo' | 'workspace' | 'scratch', required
    - `name` string, required
    - `path` string, required
    - `repo` string, required
    - `workspaceRepos` WorkspaceRepo[]
      - `name` string, required
      - `relativePath` string, required
      - `repo` string, required

## Other responses

- `400` — Bad Request
- `409` — Conflict
- `500` — Internal Server Error

---

[API](https://skmtc.net/composiohq/apis/agent-orchestrator-http-daemon.md) · [All operations](https://skmtc.net/composiohq/apis/agent-orchestrator-http-daemon/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/composiohq/agent-orchestrator-http-daemon/versions/6ffec0ec12f0/schema)
