Skip to content

Project API

Projects and their tasks. Every endpoint below is part of the stable v1 contract. Base URL https://app.aio.opexcg.com; send your key in X-API-Key.

  • GET /api/projects: List projects
  • GET /api/projects/:id: Get a project
  • POST /api/projects: Create a project
  • PATCH /api/projects/:id: Update a project
  • POST /api/pmo/rpc/tasks/list: List tasks
  • POST /api/pmo/rpc/tasks/get: Get a task
  • POST /api/pmo/rpc/tasks/create: Create a task
  • POST /api/pmo/rpc/tasks/update: Update a task

List projects

GET /api/projects

Projects of the workspace, alphabetical by default. Client users see only their company’s projects. Consultants, consultant leads and project managers see only the projects they are assigned to unless they pass scope=all.

Sort keys: name (default, ascending), created_at, status, epicor_version.

  • Product: none (any workspace)
  • Permission: any member

Query parameters

Field Type Required Description
page string no 1-based page number. Default 1.
pageSize string no Rows per page, 1 to 100. Larger values are clamped. Default 20.
search string no Free-text filter (trimmed, first 200 characters).
sort string no Sort key. Unknown keys fall back to the endpoint’s default sort.
dir string no asc or desc (default).
companyId string no Only this company’s projects (ignored for client users, who see their own).
scope string no all lists every project, not only the ones you are assigned to.
productId string no Only projects delivering this product (helpdesk catalog id).
support "has" | "none" no has = only projects with a support contract, none = only without.
expiry "expired" | "expiring30" | "expiring90" no Support-contract expiry bucket: already expired, expiring within 30 days, or within 90 days.

Response 200

One page of projects.

Field Type Description
items object[]
items[].id string
items[].company_id string
items[].name string
items[].status string Lifecycle status: awaiting_payment, active, on_hold, completed, archived.
items[].product_id string | null Product (helpdesk catalog) the project delivers.
items[].solution_summary string | null
items[].folder_id string | null
items[].planned_start_at number | null Epoch milliseconds.
items[].planned_end_at number | null
items[].actual_start_at number | null
items[].actual_end_at number | null
items[].budget_cents number Budget in minor units of budget_currency.
items[].budget_hours number
items[].budget_currency string
items[].has_support_service number 1 when the project includes a support service.
items[].support_expiry_date number | null
items[].color string | null
items[].created_at number
total number
page number
pageSize number

Objects may carry more fields than listed; only the listed ones are part of the contract.

Example

Terminal window
curl -X GET 'https://app.aio.opexcg.com/api/projects?pageSize=2&search=API+docs' \
-H "X-API-Key: $OPEX_API_KEY"

Response 200:

{
"items": [],
"total": 0,
"page": 1,
"pageSize": 2
}

Get a project

GET /api/projects/:id

One project with its dates, budget and support settings.

  • Product: none (any workspace)
  • Permission: any member

Path parameters

Field Type Required Description
id string yes Project id.

Response 200

The project.

Field Type Description
id string
company_id string
name string
status string Lifecycle status: awaiting_payment, active, on_hold, completed, archived.
product_id string | null Product (helpdesk catalog) the project delivers.
solution_summary string | null
folder_id string | null
planned_start_at number | null Epoch milliseconds.
planned_end_at number | null
actual_start_at number | null
actual_end_at number | null
budget_cents number Budget in minor units of budget_currency.
budget_hours number
budget_currency string
has_support_service number 1 when the project includes a support service.
support_expiry_date number | null
color string | null
created_at number

Objects may carry more fields than listed; only the listed ones are part of the contract.

Errors: not_found, plus the shared ones. Meanings: error codes.

Example

Terminal window
curl -X GET 'https://app.aio.opexcg.com/api/projects/99e5d1dd-334c-4bc3-88c7-7d84558bf7c6' \
-H "X-API-Key: $OPEX_API_KEY"

Response 200:

{
"id": "99e5d1dd-334c-4bc3-88c7-7d84558bf7c6",
"company_id": "comp-xyzind",
"name": "Customer portal rollout",
"solution_summary": null,
"product_id": "prod-epicor",
"epicor_instance": null,
"epicor_version": null,
"status": "active",
"folder_id": null,
"has_support_service": 0,
"support_expiry_date": null,
"budget_cents": 0,
"budget_hours": 0,
"budget_currency": "USD",
"color": null,
"created_at": 1794052048552,
"planned_start_at": null,
"planned_end_at": null,
"actual_start_at": null,
"actual_end_at": null
}

Create a project

POST /api/projects

Creates a project for a company and product. Without name, the project is named <Company> <Product>. Setting a budget also needs pmo:budget:manage. Dates are epoch milliseconds.

  • Product: none (any workspace)
  • Permission (any of): pmo:project:create

Request body (JSON)

Field Type Required Description
companyId string yes min length 1
productId string yes min length 1
name string no
status "awaiting_payment" | "active" | "on_hold" | "completed" | "archived" no default "active"
solutionSummary string no
epicorInstance string no
epicorVersion string no
hasSupportService boolean no default false
supportExpiryDate integer | null no
plannedStartAt integer | null no
plannedEndAt integer | null no
actualStartAt integer | null no
actualEndAt integer | null no
budgetCents integer no min 0
budgetHours number no min 0
budgetCurrency "IDR" | "SGD" | "MYR" | "USD" | "MVR" no
color string | null no

Response 201

The new project id.

Field Type Description
id string The new project’s id.

Objects may carry more fields than listed; only the listed ones are part of the contract.

Errors: org_not_found, product_not_found, name_taken, plus the shared ones. Meanings: error codes.

Example

Terminal window
curl -X POST 'https://app.aio.opexcg.com/api/projects' \
-H "X-API-Key: $OPEX_API_KEY" \
-H "content-type: application/json" \
-d '{"companyId":"comp-xyzind","productId":"prod-epicor","name":"Customer portal rollout","status":"active"}'

Response 201:

{
"id": "99e5d1dd-334c-4bc3-88c7-7d84558bf7c6"
}

Update a project

PATCH /api/projects/:id

Changes any of the given fields; omitted fields stay as they are.

  • Product: none (any workspace)
  • Permission (any of): pmo:project:update

Path parameters

Field Type Required Description
id string yes Project id.

Request body (JSON)

Field Type Required Description
name string no
productId string | null no
epicorInstance string no
epicorVersion string no
solutionSummary string no
status "awaiting_payment" | "active" | "on_hold" | "completed" | "archived" no
folderId string | null no
hasSupportService boolean no
supportExpiryDate integer | null no
plannedStartAt integer | null no
plannedEndAt integer | null no
actualStartAt integer | null no
actualEndAt integer | null no
color string | null no

Response 200

Done.

Field Type Description
ok boolean

Objects may carry more fields than listed; only the listed ones are part of the contract.

Errors: not_found, product_not_found, folder_not_found, no_fields, plus the shared ones. Meanings: error codes.

Example

Terminal window
curl -X PATCH 'https://app.aio.opexcg.com/api/projects/99e5d1dd-334c-4bc3-88c7-7d84558bf7c6' \
-H "X-API-Key: $OPEX_API_KEY" \
-H "content-type: application/json" \
-d '{"solutionSummary":"Roll out the public API to the integration team"}'

Response 200:

{
"ok": true
}

List tasks

POST /api/pmo/rpc/tasks/list

Tasks of one project, paged. pageSize above 100 is clamped to 100. This is an RPC procedure: send the input as { "json": { … } } with content-type: application/json, and read the result from the json field of the answer. Errors come back as { "json": { "code": "NOT_FOUND", "status": 404, "message": "not_found" } }.

  • Product: Project (pmo)
  • Permission: any member

Request body (JSON)

Field Type Required Description
json object yes
json.projectId string yes min length 1
json.state string no
json.priority "none" | "urgent" | "high" | "medium" | "low" no
json.search string no
json.page integer no min 1, max 1000000, default 1
json.pageSize integer no min 1, default 20
json.sort "created" | "name" | "priority" | "sequence" | "target_date" no default "created"
json.dir "asc" | "desc" no default "desc"

Response 200

One page of tasks.

Field Type Description
json object
json.items object[]
json.items[].id string
json.items[].project_id string
json.items[].sequence_id number Number of the task within its project.
json.items[].name string
json.items[].priority "none" | "urgent" | "high" | "medium" | "low"
json.items[].description_html string | null
json.items[].state_id string | null
json.items[].parent_id string | null
json.items[].milestone_id string | null
json.items[].start_date number | null Epoch milliseconds.
json.items[].target_date number | null Epoch milliseconds.
json.items[].completed_at number | null
json.items[].archived_at number | null
json.items[].estimate_points number | null
json.items[].created_at number
json.items[].state object | null The workflow state, e.g. group backlog, started, completed.
json.items[].state.id string
json.items[].state.name string
json.items[].state.color string | null
json.items[].state.group_name string
json.items[].assignees object[]
json.items[].assignees[].id string
json.items[].assignees[].display_name string | null
json.items[].assignees[].email string | null
json.items[].labels object[]
json.items[].labels[].id string
json.items[].labels[].name string
json.items[].labels[].color string | null
json.items[].milestone object | null
json.items[].milestone.id string
json.items[].milestone.name string
json.items[].checklist_total number
json.items[].checklist_done number
json.total number
json.page number
json.pageSize number

Objects may carry more fields than listed; only the listed ones are part of the contract.

Example

Terminal window
curl -X POST 'https://app.aio.opexcg.com/api/pmo/rpc/tasks/list' \
-H "X-API-Key: $OPEX_API_KEY" \
-H "content-type: application/json" \
-d '{"json":{"projectId":"99e5d1dd-334c-4bc3-88c7-7d84558bf7c6","pageSize":2}}'

Response 200:

{
"json": {
"items": [
{
"id": "28a5a651-5baa-4a8b-b9c8-76b9f1a2fc24",
"tenant_id": "opexcg-tenant",
"project_id": "99e5d1dd-334c-4bc3-88c7-7d84558bf7c6",
"sequence_id": 1,
"name": "Write the integration guide",
"sort_order": 65535,
"priority": "high",
"start_date": null,
"target_date": null,
"completed_at": null,
"archived_at": null,
"is_draft": 0,
"is_decision": 0,
"description_json": null,
"description_html": null,
"description_stripped": null,
"parent_id": null,
"milestone_id": null,
"state_id": "07a4b6e4-d64d-47d6-8c65-5e5a5e9fca57",
"estimate_point_id": null,
"estimate_points": null,
"created_by_id": "usr-fitri-handayani",
"external_source": null,
"external_id": null,
"recurrence_json": null,
"recurrence_source_id": null,
"recurrence_seq": null,
"subject_type": null,
"subject_id": null,
"created_at": 1794052048728,
"created_by": "usr-fitri-handayani",
"modified_at": 1794052048728,
"modified_by": "usr-fitri-handayani",
"deleted_at": null,
"deleted_by": null,
"labels": [],
"assignees": [],
"state": {
"id": "07a4b6e4-d64d-47d6-8c65-5e5a5e9fca57",
"name": "Todo",
"color": "#3B82F6",
"group_name": "started"
},
"milestone": null,
"checklist_total": 0,
"checklist_done": 0
}
],
"total": 1,
"page": 1,
"pageSize": 2
}
}

Get a task

POST /api/pmo/rpc/tasks/get

One task with its assignees and labels. This is an RPC procedure: send the input as { "json": { … } } with content-type: application/json, and read the result from the json field of the answer. Errors come back as { "json": { "code": "NOT_FOUND", "status": 404, "message": "not_found" } }.

  • Product: Project (pmo)
  • Permission: any member

Request body (JSON)

Field Type Required Description
json object yes
json.projectId string yes min length 1
json.taskId string yes min length 1

Response 200

The task.

Field Type Description
json object
json.id string
json.project_id string
json.sequence_id number Number of the task within its project.
json.name string
json.priority "none" | "urgent" | "high" | "medium" | "low"
json.description_html string | null
json.state_id string | null
json.parent_id string | null
json.milestone_id string | null
json.start_date number | null Epoch milliseconds.
json.target_date number | null Epoch milliseconds.
json.completed_at number | null
json.archived_at number | null
json.estimate_points number | null
json.created_at number
json.state object | null The workflow state, e.g. group backlog, started, completed.
json.state.id string
json.state.name string
json.state.color string | null
json.state.group_name string
json.assignees object[]
json.assignees[].id string
json.assignees[].display_name string | null
json.assignees[].email string | null
json.labels object[]
json.labels[].id string
json.labels[].name string
json.labels[].color string | null
json.milestone object | null
json.milestone.id string
json.milestone.name string
json.checklist_total number
json.checklist_done number

Objects may carry more fields than listed; only the listed ones are part of the contract.

Errors: not_found, plus the shared ones. Meanings: error codes.

Example

Terminal window
curl -X POST 'https://app.aio.opexcg.com/api/pmo/rpc/tasks/get' \
-H "X-API-Key: $OPEX_API_KEY" \
-H "content-type: application/json" \
-d '{"json":{"projectId":"99e5d1dd-334c-4bc3-88c7-7d84558bf7c6","taskId":"28a5a651-5baa-4a8b-b9c8-76b9f1a2fc24"}}'

Response 200:

{
"json": {
"id": "28a5a651-5baa-4a8b-b9c8-76b9f1a2fc24",
"tenant_id": "opexcg-tenant",
"project_id": "99e5d1dd-334c-4bc3-88c7-7d84558bf7c6",
"sequence_id": 1,
"name": "Write the integration guide",
"sort_order": 65535,
"priority": "high",
"start_date": null,
"target_date": null,
"completed_at": null,
"archived_at": null,
"is_draft": 0,
"is_decision": 0,
"description_json": null,
"description_html": null,
"description_stripped": null,
"parent_id": null,
"milestone_id": null,
"state_id": "07a4b6e4-d64d-47d6-8c65-5e5a5e9fca57",
"estimate_point_id": null,
"estimate_points": null,
"created_by_id": "usr-fitri-handayani",
"external_source": null,
"external_id": null,
"recurrence_json": null,
"recurrence_source_id": null,
"recurrence_seq": null,
"subject_type": null,
"subject_id": null,
"created_at": 1794052048728,
"created_by": "usr-fitri-handayani",
"modified_at": 1794052048728,
"modified_by": "usr-fitri-handayani",
"deleted_at": null,
"deleted_by": null,
"labels": [],
"assignees": [],
"state": {
"id": "07a4b6e4-d64d-47d6-8c65-5e5a5e9fca57",
"name": "Todo",
"color": "#3B82F6",
"group_name": "started"
},
"milestone": null,
"checklist_total": 0,
"checklist_done": 0
}
}

Create a task

POST /api/pmo/rpc/tasks/create

Creates a task in a project. Without state_id it starts in the project’s default state. Answers 200 (not 201). Dates are epoch milliseconds. This is an RPC procedure: send the input as { "json": { … } } with content-type: application/json, and read the result from the json field of the answer. Errors come back as { "json": { "code": "NOT_FOUND", "status": 404, "message": "not_found" } }.

  • Product: Project (pmo)
  • Permission (any of): pmo:task:create

Request body (JSON)

Field Type Required Description
json object yes
json.name string yes min length 1, max length 300
json.description_html string no
json.priority "none" | "urgent" | "high" | "medium" | "low" no default "none"
json.state_id string no
json.start_date integer | null no
json.target_date integer | null no
json.estimate_points integer | null no
json.parent_id string | null no
json.milestone_id string | null no
json.label_ids string[] no
json.assignee_ids string[] no
json.projectId string yes min length 1

Response 200

The new task.

Field Type Description
json object
json.id string
json.project_id string
json.sequence_id number Number of the task within its project.
json.name string
json.priority "none" | "urgent" | "high" | "medium" | "low"
json.description_html string | null
json.state_id string | null
json.parent_id string | null
json.milestone_id string | null
json.start_date number | null Epoch milliseconds.
json.target_date number | null Epoch milliseconds.
json.completed_at number | null
json.archived_at number | null
json.estimate_points number | null
json.created_at number
json.state object | null The workflow state, e.g. group backlog, started, completed.
json.state.id string
json.state.name string
json.state.color string | null
json.state.group_name string
json.assignees object[]
json.assignees[].id string
json.assignees[].display_name string | null
json.assignees[].email string | null
json.labels object[]
json.labels[].id string
json.labels[].name string
json.labels[].color string | null
json.milestone object | null
json.milestone.id string
json.milestone.name string
json.checklist_total number
json.checklist_done number

Objects may carry more fields than listed; only the listed ones are part of the contract.

Errors: not_found, forbidden, plus the shared ones. Meanings: error codes.

Example

Terminal window
curl -X POST 'https://app.aio.opexcg.com/api/pmo/rpc/tasks/create' \
-H "X-API-Key: $OPEX_API_KEY" \
-H "content-type: application/json" \
-d '{"json":{"projectId":"99e5d1dd-334c-4bc3-88c7-7d84558bf7c6","name":"Write the integration guide","priority":"high"}}'

Response 200:

{
"json": {
"id": "28a5a651-5baa-4a8b-b9c8-76b9f1a2fc24",
"tenant_id": "opexcg-tenant",
"project_id": "99e5d1dd-334c-4bc3-88c7-7d84558bf7c6",
"sequence_id": 1,
"name": "Write the integration guide",
"sort_order": 65535,
"priority": "high",
"start_date": null,
"target_date": null,
"completed_at": null,
"archived_at": null,
"is_draft": 0,
"is_decision": 0,
"description_json": null,
"description_html": null,
"description_stripped": null,
"parent_id": null,
"milestone_id": null,
"state_id": "07a4b6e4-d64d-47d6-8c65-5e5a5e9fca57",
"estimate_point_id": null,
"estimate_points": null,
"created_by_id": "usr-fitri-handayani",
"external_source": null,
"external_id": null,
"recurrence_json": null,
"recurrence_source_id": null,
"recurrence_seq": null,
"subject_type": null,
"subject_id": null,
"created_at": 1794052048728,
"created_by": "usr-fitri-handayani",
"modified_at": 1794052048728,
"modified_by": "usr-fitri-handayani",
"deleted_at": null,
"deleted_by": null,
"labels": [],
"assignees": [],
"state": {
"id": "07a4b6e4-d64d-47d6-8c65-5e5a5e9fca57",
"name": "Todo",
"color": "#3B82F6",
"group_name": "started"
},
"milestone": null,
"checklist_total": 0,
"checklist_done": 0
}
}

Update a task

POST /api/pmo/rpc/tasks/update

Changes any of the given fields of a task; archived: true archives it. This is an RPC procedure: send the input as { "json": { … } } with content-type: application/json, and read the result from the json field of the answer. Errors come back as { "json": { "code": "NOT_FOUND", "status": 404, "message": "not_found" } }.

  • Product: Project (pmo)
  • Permission (any of): pmo:task:update

Request body (JSON)

Field Type Required Description
json object yes
json.name string no min length 1, max length 300
json.description_html string no
json.priority "none" | "urgent" | "high" | "medium" | "low" no default "none"
json.state_id string no
json.start_date integer | null no
json.target_date integer | null no
json.estimate_points integer | null no
json.parent_id string | null no
json.milestone_id string | null no
json.label_ids string[] no
json.assignee_ids string[] no
json.archived boolean no
json.sort_order number no
json.recurrence object | null no
json.recurrence.frequency "daily" | "weekly" | "monthly" | "yearly" yes
json.recurrence.interval integer yes min 1, max 365
json.recurrence.weekdays integer[] no max 7 items
json.recurrence.anchor string no
json.recurrence.ends object yes
json.projectId string yes min length 1
json.taskId string yes min length 1

Response 200

The updated task.

Field Type Description
json object

Objects may carry more fields than listed; only the listed ones are part of the contract.

Errors: not_found, forbidden, plus the shared ones. Meanings: error codes.

Example

Terminal window
curl -X POST 'https://app.aio.opexcg.com/api/pmo/rpc/tasks/update' \
-H "X-API-Key: $OPEX_API_KEY" \
-H "content-type: application/json" \
-d '{"json":{"projectId":"99e5d1dd-334c-4bc3-88c7-7d84558bf7c6","taskId":"28a5a651-5baa-4a8b-b9c8-76b9f1a2fc24","priority":"urgent"}}'

Response 200:

{
"json": {
"id": "28a5a651-5baa-4a8b-b9c8-76b9f1a2fc24",
"tenant_id": "opexcg-tenant",
"project_id": "99e5d1dd-334c-4bc3-88c7-7d84558bf7c6",
"sequence_id": 1,
"name": "Write the integration guide",
"sort_order": 65535,
"priority": "urgent",
"start_date": null,
"target_date": null,
"completed_at": null,
"archived_at": null,
"is_draft": 0,
"is_decision": 0,
"description_json": null,
"description_html": null,
"description_stripped": null,
"parent_id": null,
"milestone_id": null,
"state_id": "07a4b6e4-d64d-47d6-8c65-5e5a5e9fca57",
"estimate_point_id": null,
"estimate_points": null,
"created_by_id": "usr-fitri-handayani",
"external_source": null,
"external_id": null,
"recurrence_json": null,
"recurrence_source_id": null,
"recurrence_seq": null,
"subject_type": null,
"subject_id": null,
"created_at": 1794052048728,
"created_by": "usr-fitri-handayani",
"modified_at": 1794052048854,
"modified_by": "usr-fitri-handayani",
"deleted_at": null,
"deleted_by": null,
"labels": [],
"assignees": [],
"state": {
"id": "07a4b6e4-d64d-47d6-8c65-5e5a5e9fca57",
"name": "Todo",
"color": "#3B82F6",
"group_name": "started"
},
"milestone": null,
"checklist_total": 0,
"checklist_done": 0
}
}