Skip to main content
GET

Overview

Projects are the top-level organizational unit in Forge. Each project contains tasks, attempts, and configuration. Base URL: http://localhost:8887/api/projects

List Projects


Get Project

Retrieve a specific project by ID.

Example Request

Example Response


Create Project

Create a new Forge project.
string
required
Project name
string
Project description
object
required
Repository configuration
  • url (string, required): GitHub repository URL
  • branch (string): Branch name (default: “main”)
string
Default AI agent (claude, gemini, gpt-4, etc.)

Response

201 Created
400 Bad Request
409 Conflict

Update Project

Update project properties.

Request Body

Example Request

Example Response


Delete Project

Delete a project and all associated data.
This permanently deletes the project, all tasks, attempts, and associated data. This action cannot be undone.

Example Request

Example Response


Get Project Tasks

Get all tasks for a specific project.

Query Parameters

Same as Tasks API list parameters.

Example Request


Get Project Stats

Get detailed statistics for a project.

Example Response


SDK Examples

JavaScript/TypeScript

Python


Get Project Branches

List all git branches for a project.

Example Response

Response Fields

Use Cases

  • List available target branches for merging
  • Identify Forge worktree branches
  • Check current repository state
  • Find branches associated with specific tasks

Error Responses

Project Not Found

Validation Error

Conflict Error


Next Steps

Tasks API

Manage tasks within projects

Attempts API

Execute tasks with AI agents

REST Overview

API fundamentals and authentication

Authorizations

Authorization
string
header
required

GitHub OAuth token obtained via device flow

Response

200 - application/json

List of projects

The response is of type any.