OrgX Work API
Create accountable work and complete it with evidence
Create accountable work and complete it with evidence
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/useorgx-com:useorgx-com-work-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: OrgX REST API v1 Work API
version: '1'
description: 'Build accountable work into your product with OrgX REST API v1.
Create work with one field, attach evidence when it is complete, and keep the receipt. Every authenticated request is scoped to the workspace resolved from your credential.
Start with `POST /work`. Human guide: https://docs.useorgx.com/docs/api/quickstart'
contact:
name: OrgX Support
url: https://useorgx.com/support
email: support@useorgx.com
license:
name: Proprietary
url: https://useorgx.com/terms
servers:
- url: https://useorgx.com/api/v1
description: Production
tags:
- name: Work
description: Create accountable work and complete it with evidence
paths:
/work:
get:
operationId: listWork
summary: List work
description: 'List the work items you own in a workspace, newest first.
### Paging
Pass `meta.nextCursor` back as `cursor` to continue. The cursor is opaque and belongs to the
workspace that minted it. `limit` defaults to 25 and accepts 1-100; a larger value is
rejected so a short page always means a short page.
### Concurrency
Fetch a single item with `GET /work/{taskId}` when you need the `concurrency` block that
`POST /work/{taskId}/complete` requires.'
tags:
- Work
security:
- bearerAuth: []
- cookieAuth: []
parameters:
- $ref: '#/components/parameters/WorkspaceIdQuery'
- name: initiative_id
in: query
required: false
description: Limit the page to one initiative.
schema:
type: string
format: uuid
- name: status
in: query
required: false
description: Limit the page to one lifecycle status.
schema:
type: string
enum:
- todo
- in_progress
- done
- blocked
- name: updated_since
in: query
required: false
description: Return only work updated at or after this instant.
schema:
type: string
format: date-time
- name: cursor
in: query
required: false
description: Opaque cursor returned as meta.nextCursor by the previous page.
schema:
type: string
- name: limit
in: query
required: false
description: Page size, 1-100. A larger value is rejected rather than reduced.
schema:
type: integer
minimum: 1
maximum: 100
default: 25
responses:
'200':
description: A page of work items you own in this workspace
content:
application/json:
schema:
$ref: '#/components/schemas/WorkTaskListResponse'
example:
data:
- id: 7fbb727d-17c4-4bc7-9fc7-60eb15e9314d
title: Review the launch plan
description: null
status: todo
priority: medium
due_date: null
initiative_id: 4b014796-6b1e-4a4f-9a35-2b6a4d1c8a10
workstream_id: 9c1f2e77-3c58-4a1e-9d0b-6a2f8e4b1c33
milestone_id: null
sequence: 1
metadata: {}
created_at: 2026-08-19 14:00:00+00:00
updated_at: 2026-08-19 14:02:11.442391+00:00
meta:
apiVersion: '1'
workspaceId: 5be1076d-8fd0-4c0f-847f-fd67fdb935e8
count: 1
limit: 25
hasMore: false
nextCursor: null
ordering: created_at_desc
delivery: cursor_page
duplicateTolerant: false
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'503':
$ref: '#/components/responses/ServiceUnavailable'
post:
operationId: command.createWork
summary: Create work
description: 'Create a work item and return its receipt. Send only a title to place it in the workspace Inbox, or supply a complete initiative hierarchy when you need precise placement.
### Guarantees
The Idempotency-Key makes retries safe. The response identifies the work, receipt, and accepted event.'
tags:
- Work
security:
- bearerAuth: []
- cookieAuth: []
parameters:
- $ref: '#/components/parameters/IdempotencyKey'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateWorkCommandRequest'
example:
title: Review the launch plan
responses:
'201':
description: Work item and receipt created
content:
application/json:
schema:
$ref: '#/components/schemas/WorkCommandResponse'
example:
data:
taskId: 7fbb727d-17c4-4bc7-9fc7-60eb15e9314d
receiptId: 7ab98058-f221-49cc-8aa4-d3d8040249b8
eventId: 405a3742-f821-4147-b527-91c79b676967
aggregateVersion: 1
eventHash: sha256:a000000000000000000000000000000000000000000000000000000000000000
duplicate: false
task:
id: 7fbb727d-17c4-4bc7-9fc7-60eb15e9314d
title: Review the launch plan
status: todo
updated_at: 2026-08-18 18:30:00+00:00
receipt:
id: 7ab98058-f221-49cc-8aa4-d3d8040249b8
status: completed
summary: Review the launch plan
meta:
apiVersion: '1'
workspaceId: 5be1076d-8fd0-4c0f-847f-fd67fdb935e8
duplicate: false
'200':
description: Idempotent replay of the same command
content:
application/json:
schema:
$ref: '#/components/schemas/WorkCommandResponse'
example:
data:
taskId: 7fbb727d-17c4-4bc7-9fc7-60eb15e9314d
receiptId: 7ab98058-f221-49cc-8aa4-d3d8040249b8
eventId: 405a3742-f821-4147-b527-91c79b676967
aggregateVersion: 1
eventHash: sha256:a000000000000000000000000000000000000000000000000000000000000000
duplicate: false
task:
id: 7fbb727d-17c4-4bc7-9fc7-60eb15e9314d
title: Review the launch plan
status: todo
updated_at: 2026-08-18 18:30:00+00:00
receipt:
id: 7ab98058-f221-49cc-8aa4-d3d8040249b8
status: completed
summary: Review the launch plan
meta:
apiVersion: '1'
workspaceId: 5be1076d-8fd0-4c0f-847f-fd67fdb935e8
duplicate: false
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/Conflict'
'503':
$ref: '#/components/responses/ServiceUnavailable'
/work/{taskId}/complete:
post:
operationId: command.completeWork
summary: Complete work with evidence
description: 'Complete work and record its evidence and receipt.
### Guarantees
The signed concurrency token prevents stale updates without losing timestamp precision. A successful response records the accepted completion; independently verified provider outcomes use their own evidence fields.'
tags:
- Work
security:
- bearerAuth: []
- cookieAuth: []
parameters:
- name: taskId
in: path
required: true
description: Work item to complete
schema:
type: string
format: uuid
- $ref: '#/components/parameters/IdempotencyKey'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CompleteWorkCommandRequest'
example:
version_token: v1.eyJ3IjoiNWJlMTA3NmQtOGZkMC00YzBmLTg0N2YtZmQ2N2ZkYjkzNWU4IiwidCI6IjdmYmI3MjdkLTE3YzQtNGJjNy05ZmM3LTYwZWIxNWU5MzE0ZCIsInUiOiIyMDI2LTA4LTE5VDE0OjAyOjExLjQ0MjM5MSswMDowMCIsImEiOjN9.rM2gM5aF7Dva467l_-U_LGzrOyWRJIkpXciZ1NORUH4
summary: Launch plan reviewed
evidence:
reviewed_sections: 12
broken_links: 0
responses:
'202':
description: Completion committed and queued for projections
content:
application/json:
schema:
$ref: '#/components/schemas/WorkCommandResponse'
example:
data:
taskId: 7fbb727d-17c4-4bc7-9fc7-60eb15e9314d
receiptId: 1a9f5066-24b3-4d4a-90f0-b0f75fe2fe19
eventId: 1231d7d4-c43e-4f5a-8c65-628f4122b1b9
aggregateVersion: 2
eventHash: sha256:b000000000000000000000000000000000000000000000000000000000000000
duplicate: false
task:
id: 7fbb727d-17c4-4bc7-9fc7-60eb15e9314d
title: Review the launch plan
status: completed
updated_at: 2026-08-18 18:42:00+00:00
receipt:
id: 1a9f5066-24b3-4d4a-90f0-b0f75fe2fe19
status: completed
summary: Launch plan reviewed with supporting evidence.
meta:
apiVersion: '1'
workspaceId: 5be1076d-8fd0-4c0f-847f-fd67fdb935e8
duplicate: false
'200':
description: Idempotent replay of the same command
content:
application/json:
schema:
$ref: '#/components/schemas/WorkCommandResponse'
example:
data:
taskId: 7fbb727d-17c4-4bc7-9fc7-60eb15e9314d
receiptId: 1a9f5066-24b3-4d4a-90f0-b0f75fe2fe19
eventId: 1231d7d4-c43e-4f5a-8c65-628f4122b1b9
aggregateVersion: 2
eventHash: sha256:b000000000000000000000000000000000000000000000000000000000000000
duplicate: false
task:
id: 7fbb727d-17c4-4bc7-9fc7-60eb15e9314d
title: Review the launch plan
status: completed
updated_at: 2026-08-18 18:42:00+00:00
receipt:
id: 1a9f5066-24b3-4d4a-90f0-b0f75fe2fe19
status: completed
summary: Launch plan reviewed with supporting evidence.
meta:
apiVersion: '1'
workspaceId: 5be1076d-8fd0-4c0f-847f-fd67fdb935e8
duplicate: false
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
description: The concurrency token no longer describes the current task
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
example:
error:
code: task_version_stale
message: Work task version is stale
details:
current_updated_at: 2026-08-19 14:04:03.112904+00:00
current_aggregate_version: 4
'503':
$ref: '#/components/responses/ServiceUnavailable'
/work/{taskId}:
get:
operationId: getWorkTask
summary: Get a work item with its concurrency tokens
description: 'Read one work item you own, together with the `concurrency` block that
`POST /work/{taskId}/complete` accepts.
### Echo the token unmodified
`version_token` is an opaque, workspace- and task-bound value. Send it back exactly as
received; do not parse or reformat it. Timestamp and aggregate-version fields from the
earlier response shape remain available for migrating clients.
### Scope
Work is owner-scoped inside a workspace. An id you cannot read is reported the same way an
id that was never issued is.'
tags:
- Work
security:
- bearerAuth: []
- cookieAuth: []
parameters:
- name: taskId
in: path
required: true
description: Work item to read
schema:
type: string
format: uuid
- $ref: '#/components/parameters/WorkspaceIdQuery'
responses:
'200':
description: The work item and the tokens its completion requires
content:
application/json:
schema:
$ref: '#/components/schemas/WorkTaskDetailResponse'
example:
data:
id: 7fbb727d-17c4-4bc7-9fc7-60eb15e9314d
title: Review the launch plan
description: null
status: todo
priority: medium
due_date: null
initiative_id: 4b014796-6b1e-4a4f-9a35-2b6a4d1c8a10
workstream_id: 9c1f2e77-3c58-4a1e-9d0b-6a2f8e4b1c33
milestone_id: null
sequence: 1
metadata: {}
created_at: 2026-08-19 14:00:00+00:00
updated_at: 2026-08-19 14:02:11.442391+00:00
concurrency:
version_token: v1.eyJ3IjoiNWJlMTA3NmQtOGZkMC00YzBmLTg0N2YtZmQ2N2ZkYjkzNWU4IiwidCI6IjdmYmI3MjdkLTE3YzQtNGJjNy05ZmM3LTYwZWIxNWU5MzE0ZCIsInUiOiIyMDI2LTA4LTE5VDE0OjAyOjExLjQ0MjM5MSswMDowMCIsImEiOjN9.rM2gM5aF7Dva467l_-U_LGzrOyWRJIkpXciZ1NORUH4
expected_updated_at: 2026-08-19 14:02:11.442391+00:00
expected_aggregate_version: 3
meta:
apiVersion: '1'
workspaceId: 5be1076d-8fd0-4c0f-847f-fd67fdb935e8
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'503':
$ref: '#/components/responses/ServiceUnavailable'
components:
responses:
Forbidden:
description: The caller is authenticated but cannot command this workspace
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
Unauthorized:
description: Authentication required
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
NotFound:
description: Resource is unavailable to the caller
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
BadRequest:
description: Request validation failed
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
Conflict:
description: Idempotency or expected-version conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
ServiceUnavailable:
description: Ledger or workspace authorization is unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
schemas:
WorkTaskDetailResponse:
type: object
required:
- data
- meta
properties:
data:
$ref: '#/components/schemas/WorkTaskDetail'
meta:
type: object
properties:
apiVersion:
type: string
workspaceId:
type: string
format: uuid
WorkTaskDetail:
allOf:
- $ref: '#/components/schemas/WorkTask'
- type: object
required:
- concurrency
properties:
concurrency:
$ref: '#/components/schemas/WorkTaskConcurrency'
WorkTaskListResponse:
type: object
required:
- data
- meta
properties:
data:
type: array
items:
$ref: '#/components/schemas/WorkTask'
meta:
type: object
properties:
apiVersion:
type: string
workspaceId:
type: string
format: uuid
count:
type: integer
limit:
type: integer
hasMore:
type: boolean
nextCursor:
type:
- string
- 'null'
description: Opaque cursor for the next page, or null on the last page.
ordering:
type: string
delivery:
type: string
duplicateTolerant:
type: boolean
ApiError:
type: object
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
details:
type: object
requestId:
type: string
timestamp:
type: string
format: date-time
docsUrl:
type: string
format: uri
retryAfter:
type: integer
description: Seconds until rate limit resets
WorkCommandResponse:
type: object
required:
- data
- meta
properties:
data:
type: object
required:
- taskId
- receiptId
- eventId
- aggregateVersion
- eventHash
- duplicate
- task
- receipt
properties:
taskId:
type: string
format: uuid
receiptId:
type: string
format: uuid
eventId:
type: string
format: uuid
aggregateVersion:
type: integer
minimum: 1
eventHash:
type: string
duplicate:
type: boolean
task:
type: object
additionalProperties: true
receipt:
type: object
additionalProperties: true
meta:
type: object
required:
- apiVersion
- workspaceId
- duplicate
properties:
apiVersion:
type: string
const: '1'
workspaceId:
type: string
format: uuid
duplicate:
type: boolean
WorkTask:
type: object
description: A work item you own inside a workspace.
required:
- id
- title
- status
- initiative_id
- workstream_id
- created_at
- updated_at
properties:
id:
type: string
format: uuid
title:
type: string
description:
type:
- string
- 'null'
status:
type:
- string
- 'null'
enum:
- todo
- in_progress
- done
- blocked
- null
priority:
type:
- string
- 'null'
due_date:
type:
- string
- 'null'
format: date
initiative_id:
type: string
format: uuid
workstream_id:
type: string
format: uuid
milestone_id:
type:
- string
- 'null'
format: uuid
sequence:
type:
- integer
- 'null'
metadata:
type: object
additionalProperties: true
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
description: Microsecond-precision instant of the last change. Compared for exact equality on completion, so echo it unchanged.
WorkTaskConcurrency:
type: object
description: The signed value POST /work/{taskId}/complete accepts. Echo version_token exactly as returned; the legacy fields remain available during the v1 compatibility window.
required:
- version_token
- expected_updated_at
- expected_aggregate_version
properties:
version_token:
type: string
description: Opaque, workspace- and task-bound concurrency proof. Do not parse, reformat, or combine it with a token from another task.
expected_updated_at:
type: string
format: date-time
description: Send as the request's expected_updated_at. Preserve every digit; reformatting the string makes completion conflict permanently.
expected_aggregate_version:
type: integer
minimum: 0
description: Send as the request's expected_aggregate_version. Zero when the work has no accepted events yet.
CompleteWorkCommandRequest:
type: object
additionalProperties: false
anyOf:
- required:
- version_token
- required:
- expected_updated_at
- expected_aggregate_version
properties:
version_token:
type: string
minLength: 1
description: Preferred concurrency input. Copy data.concurrency.version_token from GET /work/{taskId} without changing it.
expected_updated_at:
type: string
format: date-time
expected_aggregate_version:
type: integer
minimum: 0
summary:
type:
- string
- 'null'
maxLength: 4000
evidence:
type: object
additionalProperties: true
actual_hours:
type:
- number
- 'null'
minimum: 0
maximum: 100000
description: Measured duration in hours. Omit or send null when unknown; zero is a measured duration. The server records this claim without verifying it.
cost_cents:
type: integer
minimum: 0
maximum: 100000000
default: 0
causation_id:
type:
- string
- 'null'
format: uuid
correlation_id:
type:
- string
- 'null'
format: uuid
description: Send version_token, or send both expected_updated_at and expected_aggregate_version during the compatibility window. If both forms are present they must describe the same version.
CreateWorkCommandRequest:
type: object
additionalProperties: false
dependentRequired:
initiative_id:
- workstream_id
- milestone_id
workstream_id:
- initiative_id
- milestone_id
milestone_id:
- initiative_id
- workstream_id
required:
- title
properties:
workspace_id:
type: string
format: uuid
command_id:
type: string
format: uuid
expected_aggregate_version:
type: integer
const: 0
title:
type: string
minLength: 1
maxLength: 240
description:
type:
- string
- 'null'
maxLength: 4000
initiative_id:
type: string
format: uuid
workstream_id:
type: string
format: uuid
milestone_id:
type: string
format: uuid
priority:
type: string
enum:
- low
- medium
- high
- urgent
default: medium
due_date:
type:
- string
- 'null'
format: date
metadata:
type: object
additionalProperties: true
estimated_cost_cents:
type: integer
minimum: 0
maximum: 100000000
default: 0
causation_id:
type:
- string
- 'null'
format: uuid
correlation_id:
type:
- string
- 'null'
format: uuid
description: Send a title to use the workspace Inbox. Supply all three hierarchy IDs together only when you need explicit placement.
parameters:
IdempotencyKey:
name: Idempotency-Key
in: header
required: true
schema:
type: string
minLength: 1
maxLength: 200
pattern: ^[A-Za-z0-9][A-Za-z0-9._:/-]{0,199}$
description: Workspace-scoped retry key for safe mutation replay.
WorkspaceIdQuery:
name: workspace_id
in: query
required: true
schema:
type: string
format: uuid
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'OrgX API key, sent as `Authorization: Bearer oxk_...`'
cookieAuth:
type: apiKey
in: cookie
name: __session
description: Session cookie from web authentication
stripeSignature:
type: apiKey
in: header
name: stripe-signature
description: Stripe webhook signature
externalDocs:
description: Human-readable OrgX REST API v1 reference
url: https://docs.useorgx.com/docs/api/public-api