API – Projects¶
Paths are under https://api.innovanet.com. Header Authorization: Bearer inv_mcp_…. The innovanet() function is in the API chapter.
The project list has no success field. A successful response is { "data", "total", "page", "per_page" }. The detail is { "data": { ... } }, also without success.
GET /api/projects¶
| Parameter | Type | Required | Description |
|---|---|---|---|
page |
integer | no | default 1 |
per_page |
integer | no | default 20 |
search |
string | no | |
status |
integer | no | 0 new, 1 active, 2 finished, 3 cancelled |
type |
string | no | older filter: active, finished, cancelled, new, all |
contractor |
string | no | |
region |
integer | no | |
owner or owner_id |
integer | no | |
sort_by |
string | no | default project_id |
sort_dir |
string | no | asc or desc |
PHP
$res = innovanet('GET', '/api/projects?page=1&per_page=20&status=1');
Response 200
{
"data": [
{
"project_id": 42,
"project_name": "Web 2026",
"project_code": "W26",
"project_status": 1
}
],
"total": 1,
"page": 1,
"per_page": 20
}
Detail: GET /api/projects/42. When you cannot see the project, the response is 403.
Financials: GET /api/projects/42/financial-detail?metric=real_revenue. Cashflow: GET /api/projects/42/cashflow (new VAT fields vat_collected, vat_paid, vat_collected_exp, vat_paid_exp, described in API – Payments). Regions: GET /api/projects/regions.
POST /api/projects¶
| Field | Type | Required | Description |
|---|---|---|---|
project_name |
string | yes | at most 255 |
project_desc |
string | no | |
project_code |
string | no | |
project_contractor_id |
integer | no | customer, company_id |
project_parent_id |
integer | no | parent project |
project_location |
string | no | |
project_region_id |
integer | no | |
project_owner_id |
integer | no | master user id |
project_start_est |
date | no | |
project_end_est |
date | no | not earlier than the start |
project_status |
integer | no | 0–3 |
planned_revenue |
number | no | planned revenue, not negative |
planned_costs |
number | no | |
planned_overhead |
number | no |
Request
{
"project_name": "Web 2026",
"project_code": "W26",
"project_contractor_id": 120,
"project_owner_id": 15,
"project_start_est": "2026-01-01",
"project_end_est": "2026-12-31",
"project_status": 1,
"planned_revenue": 50000,
"planned_costs": 30000
}
cURL
curl -sS -X POST "https://api.innovanet.com/api/projects" \
-H "Authorization: Bearer inv_mcp_…" \
-H "Content-Type: application/json" \
-d "{\"project_name\":\"Web 2026\",\"project_code\":\"W26\",\"project_status\":1,\"planned_revenue\":50000}"
PHP
$res = innovanet('POST', '/api/projects', [
'project_name' => 'Web 2026',
'project_code' => 'W26',
'project_contractor_id' => 120,
'project_owner_id' => 15,
'project_status' => 1,
'planned_revenue' => 50000,
]);
Response 201
{
"success": true,
"message": "Project created",
"data": {
"project_id": 42,
"project_name": "Web 2026",
"project_code": "W26",
"project_status": 1
}
}
Update: PUT /api/projects/42. Status change: POST /api/projects/42/status.
Other paths¶
Each path below belongs to this module. Field names are the ones the API reads. A downloaded file is not JSON.
GET /api/projects/{id}/access¶
Rights of people in the project (the Permissions tab). Only the project manager (project_owner) and a super admin may call it, otherwise 403; unknown project 404.
Response 200
{
"success": true,
"data": {
"rights": ["general", "notes", "contracts", "orders", "invoices", "invoice_approval"],
"users": [
{ "user_id": 12, "name": "John Smith", "email": "john@company.com", "rights": ["general", "invoices"] }
]
}
}
PUT /api/projects/{id}/access/{userId}¶
Sets the whole set of rights of a person (userId is the master user id, a member of the company). An empty set removes the person. invoice_approval also adds invoices and any right adds general. The project manager cannot be added (422), a user of another company is 404, an unknown right 422. Project manager and super admin only; the route is forbidden for API tokens.
| Field | Type | Required |
|---|---|---|
rights |
array of strings from general, notes, contracts, orders, invoices, invoice_approval |
yes (may be empty) |
{ "rights": ["invoices", "invoice_approval"] }
Response 200 – { "success": true, "data": { "user_id": 12, "rights": ["general", "invoices", "invoice_approval"] } }.
DELETE /api/projects/{id}/access/{userId}¶
Removes all rights of the person in the project. Same rules as PUT.
The project detail GET /api/projects/{id} also returns my_rights (the caller's rights), can_manage_access and can_edit. A person added in the Permissions tab sees no money data without the right invoices (real_financials and cost_history are left out, cashflow and financial-detail return 403).
GET /api/projects/{id}/cost-history¶
No body.
Response 200 – Envelope { "success": true, "data": ... }.
POST /api/projects/{id}/cost-history¶
Body
| Field | Type | Required |
|---|---|---|
revenue |
number | yes |
direct_costs |
number | no |
create_building_costs |
number | no |
indirect_costs |
number | no |
note |
string | no |
{
"revenue": 1,
"direct_costs": 1,
"create_building_costs": 1,
"indirect_costs": 1,
"note": "text"
}
$res = innovanet('POST', '/api/projects/1/cost-history', [
'revenue' => 1,
'direct_costs' => 1,
'create_building_costs' => 1,
'indirect_costs' => 1,
'note' => 'text',
]);
Response 200 – Envelope { "success": true, "data": ... }.
Want to try this feature? Start your innovanet trial →
Access rights (2026-11)
POST /api/projects requires the projects permission (any level), otherwise 403; 401 when not signed in.