Skip to main content
POST
/
projects
Create a project
curl --request POST \
  --url https://api.corebill.io/v1/projects \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "Website Redesign",
  "description": "Complete redesign of the marketing website",
  "customer_id": "cus_a1b2c3d4e5f6",
  "assigned_to": [
    "usr_abc123"
  ],
  "status": "draft",
  "priority": "high",
  "start_date": "2025-03-01",
  "due_date": "2025-05-01",
  "billing_type": "time_based",
  "budget_hours": 200,
  "budget_amount": 15000,
  "hourly_rate": 75,
  "metadata": {}
}
'
{
  "data": {
    "id": "pro_a1b2c3d4e5f6",
    "public_id": "PRO-2025-000001",
    "company_id": "com_a1b2c3d4e5f6",
    "customer_id": "cus_a1b2c3d4e5f6",
    "title": "Website Redesign",
    "description": "Complete redesign of the marketing website",
    "status": "in_progress",
    "priority": "high",
    "start_date": "2025-03-01",
    "due_date": "2025-05-01",
    "billing_type": "time_based",
    "budget_hours": 200,
    "budget_amount": 15000,
    "hourly_rate": 75,
    "progress_percentage": 45,
    "is_archived": false,
    "customer_name": "Acme Corp",
    "total_hours": 90.5,
    "total_revenue": 6787.5,
    "total_cost": 3393.75,
    "profit": 3393.75,
    "tasks_count": 12,
    "completed_tasks": 5,
    "created_at": "2025-03-01T10:00:00Z",
    "updated_at": "2025-04-15T14:30:00Z",
    "assigned_to": [
      "usr_abc123",
      "usr_def456"
    ],
    "created_by": "usr_abc123",
    "completed_at": "2023-11-07T05:31:56Z",
    "metadata": {},
    "public_token": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API key authentication. Generate keys from the Corebill dashboard under the Developers section.

Example: Authorization: Bearer sk_live_abc123def456

Query Parameters

company_id
string
required

The company ID to scope the request to

Body

application/json
title
string
required

Project title

Example:

"Website Redesign"

description
string

Project description

Example:

"Complete redesign of the marketing website"

customer_id
string

Customer ID to associate with this project

Example:

"cus_a1b2c3d4e5f6"

assigned_to
string[]

Array of user IDs to assign

Example:
["usr_abc123"]
status
enum<string>

Project status (defaults to draft)

Available options:
draft,
in_progress,
on_hold,
review,
completed,
cancelled
Example:

"draft"

priority
enum<string>

Project priority (defaults to medium)

Available options:
low,
medium,
high,
urgent
Example:

"high"

start_date
string<date>
Example:

"2025-03-01"

due_date
string<date>
Example:

"2025-05-01"

billing_type
enum<string>

Billing type (defaults to time_based)

Available options:
time_based,
fixed_price,
mixed
Example:

"time_based"

budget_hours
number

Budget in hours

Example:

200

budget_amount
number<double>

Budget in currency

Example:

15000

hourly_rate
number<double>

Default hourly rate for this project

Example:

75

metadata
object

Custom metadata

Response

Project created

data
object
required

Project object returned in list endpoints