API reference
Scopes
The work graph: projects and tasks, assignees, status, dependencies and what is ready to start.
- Operations
- 25
- Base path
https://os.one.ml/api/v1/scopes- Scopes
scopes:adminscopes:readscopes:write- API keys
- 25 tested with an API key
- SDK
genesis.call('scopes_removeDependency', …)· helpers undergenesis.scopes- MCP
- 25 tools
Operations
| Operation | Endpoint | API key |
|---|---|---|
| Remove a dependency | DELETE/dependencies/{dependency} | Tested with an API key |
| List projects | GET/projects | Tested with an API key |
| Create a project | POST/projects | Tested with an API key |
| Get a project | GET/projects/{project} | Tested with an API key |
| Archive a project | DELETE/projects/{project} | Tested with an API key |
| Update a project | PATCH/projects/{project} | Tested with an API key |
| Read a project's activity | GET/projects/{project}/activity | Tested with an API key |
| Get a project's dependency graph | GET/projects/{project}/graph | Tested with an API key |
| List tasks ready to start | GET/projects/{project}/ready | Tested with an API key |
| List a project's tasks | GET/projects/{project}/tasks | Tested with an API key |
| Create a task in a project | POST/projects/{project}/tasks | Tested with an API key |
| List tasks | GET/tasks | Tested with an API key |
| Get a task | GET/tasks/{task} | Tested with an API key |
| Archive a task | DELETE/tasks/{task} | Tested with an API key |
| Update a task or move its status | PATCH/tasks/{task} | Tested with an API key |
| Read a task's activity | GET/tasks/{task}/activity | Tested with an API key |
| Assign a task to an agent or a person | PUT/tasks/{task}/assignee | Tested with an API key |
| Unassign a task | DELETE/tasks/{task}/assignee | Tested with an API key |
| List a task's assignment terms | GET/tasks/{task}/assignments | Tested with an API key |
| List a task's comments | GET/tasks/{task}/comments | Tested with an API key |
| Comment on a task | POST/tasks/{task}/comments | Tested with an API key |
| List a task's dependencies | GET/tasks/{task}/dependencies | Tested with an API key |
| Add a dependency | POST/tasks/{task}/dependencies | Tested with an API key |
| Show the identity Scopes sees for your credential | GET/whoami | Tested with an API key |
| Show open work per assignee | GET/workload | Tested with an API key |
Dependencies
Remove a dependency
DELETE/v1/scopes/dependencies/{dependency}
Scope scopes:write. Edges carry no version, so no If-Match.
Parameters
dependencypath · stringrequired
Responses
- 200The removed edge
Response fields
idstringrequiredtask_idstringrequireddepends_on_idstringrequiredkind"blocks" | "relates" | "duplicates"requiredcreated_atstring (date-time)requiredcreated_bystringrequired
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/scopes/dependencies/$DEPENDENCY" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('scopes_removeDependency', {
dependency: '<dependency>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "scopes_removeDependency",
"arguments": {
"dependency": "<dependency>"
}
}
}List a task's dependencies
GET/v1/scopes/tasks/{task}/dependencies
Scope scopes:read. What blocks the task, what it blocks, and related or duplicate tasks; each entry is the edge with the other task's summary.
Parameters
taskpath · stringrequired
Responses
- 200The task's edges
Response fields
blocked_byobject[]requiredEdges whose other task blocks this one, each with the other task's summary
blocked_by[].[].idstringrequiredblocked_by[].[].task_idstringrequiredblocked_by[].[].depends_on_idstringrequiredblocked_by[].[].kind"blocks" | "relates" | "duplicates"requiredblocked_by[].[].created_atstring (date-time)requiredblocked_by[].[].created_bystringrequiredblocksobject[]requiredEdges whose other task this one blocks, each with the other task's summary
blocks[].[].idstringrequiredblocks[].[].task_idstringrequiredblocks[].[].depends_on_idstringrequiredblocks[].[].kind"blocks" | "relates" | "duplicates"requiredblocks[].[].created_atstring (date-time)requiredblocks[].[].created_bystringrequiredrelatedobject[]requiredrelates and duplicates edges, each with the other task's summary
related[].[].idstringrequiredrelated[].[].task_idstringrequiredrelated[].[].depends_on_idstringrequiredrelated[].[].kind"blocks" | "relates" | "duplicates"requiredrelated[].[].created_atstring (date-time)requiredrelated[].[].created_bystringrequired
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/scopes/tasks/$TASK/dependencies" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('scopes_listDependencies', {
task: '<task>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "scopes_listDependencies",
"arguments": {
"task": "<task>"
}
}
}Add a dependency
POST/v1/scopes/tasks/{task}/dependencies
Scope scopes:write. The task depends on depends_on_id (that task blocks this one, for kind blocks). A self edge, a duplicate or a cycle of blocks edges is a 409.
Parameters
taskpath · stringrequired
Request body application/json
depends_on_idstringrequiredpattern
^tsk_[a-f0-9]{32}$kind"blocks" | "relates" | "duplicates"
Responses
- 201Dependency created
Response fields
idstringrequiredtask_idstringrequireddepends_on_idstringrequiredkind"blocks" | "relates" | "duplicates"requiredcreated_atstring (date-time)requiredcreated_bystringrequired
- 404Not found in your organization
- 409Stale version, taken project key, archived object (an archived project is frozen), open blocker without
force, or a self, duplicate or cyclic dependency - 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/scopes/tasks/$TASK/dependencies" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"depends_on_id": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('scopes_addDependency', {
task: '<task>',
body: {
depends_on_id: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "scopes_addDependency",
"arguments": {
"task": "<task>",
"body": {
"depends_on_id": "string"
}
}
}
}Projects
List projects
GET/v1/scopes/projects
Scope scopes:read. Archived projects are hidden unless include_archived=true.
Parameters
include_archivedquery · booleanstatusquery · "backlog" | "planned" | "started" | "paused" | "completed" | "canceled"
Responses
- 200Projects
Response fields
dataobject[]requireddata[].[].idstringrequireddata[].[].keystringrequireddata[].[].namestringrequireddata[].[].descriptionstring | nullrequireddata[].[].status"backlog" | "planned" | "started" | "paused" | "completed" | "canceled"requireddata[].[].auto_org_idstring | nullrequiredThe linked Auto org; assignments then pass Auto's authority check
data[].[].leadstring | nullrequireddata[].[].ownerstring | nullrequiredThe signed principal that created the project. Only the owner can read or change it; anyone else in the organization, organization keys and M2M tokens included, gets 404. Set by the server, never from a request body. null on a project that predates owner-only and was made by an API key or M2M token (org-level)
data[].[].origin"one" | nullrequired'one' when the gateway's signed selected context named One's platform when the project was created; set by the server, never from a request body
data[].[].target_onstring | null (date)requireddata[].[].fieldsobject[]requiredThe typed fields every task in the project carries. Replacing the list removes the values of any field left out from every task. Activity records which fields changed, never their values.
data[].[].fields[].[].keystringrequiredpattern
^[a-z][a-z0-9_]{0,39}$data[].[].fields[].[].labelstringrequiredmin length 1 · max length 60
data[].[].fields[].[].type"text" | "long_text" | "email" | "url" | "phone" | "number" | "date" | "choice" | "boolean"requireddata[].[].fields[].[].requiredbooleandata[].[].fields[].[].personalbooleanThe field holds a person's data
data[].[].fields[].[].optionsstring[]choice fields only
data[].[].fields[].[].maxintegertext and long_text only: the longest value min 1 · max 20000
data[].[].task_countintegerrequireddata[].[].open_countintegerrequireddata[].[].archived_atstring | null (date-time)requireddata[].[].versionintegerrequireddata[].[].created_atstring (date-time)requireddata[].[].updated_atstring (date-time)required
- 403Missing scope (archiving and changing
auto_org_idneedscopes:admin), or Auto's authority check denied the assignment (error.details) - 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/scopes/projects" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('scopes_listProjects'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "scopes_listProjects",
"arguments": {}
}
}Create a project
POST/v1/scopes/projects
Scope scopes:write. key is unique in your organization and prefixes task identifiers (ENG-12); a taken key is a 409.
Request body application/json
keystringrequired2-10 characters: an uppercase letter, then uppercase letters or digits pattern
^[A-Z][A-Z0-9]{1,9}$namestringrequiredmin length 1 · max length 200
descriptionstring | nullmax length 20000
status"backlog" | "planned" | "started" | "paused" | "completed" | "canceled"auto_org_idstring | nullpattern
^[A-Za-z0-9_]{1,64}$leadstring | nulltarget_onstring (date) | nullfieldsobject[]The typed fields every task in the project carries. Replacing the list removes the values of any field left out from every task. Activity records which fields changed, never their values.
fields[].[].keystringrequiredpattern
^[a-z][a-z0-9_]{0,39}$fields[].[].labelstringrequiredmin length 1 · max length 60
fields[].[].type"text" | "long_text" | "email" | "url" | "phone" | "number" | "date" | "choice" | "boolean"requiredfields[].[].requiredbooleanfields[].[].personalbooleanThe field holds a person's data
fields[].[].optionsstring[]choice fields only
fields[].[].maxintegertext and long_text only: the longest value min 1 · max 20000
Responses
- 201Project created; the
ETagheader carries its versionResponse fields
idstringrequiredkeystringrequirednamestringrequireddescriptionstring | nullrequiredstatus"backlog" | "planned" | "started" | "paused" | "completed" | "canceled"requiredauto_org_idstring | nullrequiredThe linked Auto org; assignments then pass Auto's authority check
leadstring | nullrequiredownerstring | nullrequiredThe signed principal that created the project. Only the owner can read or change it; anyone else in the organization, organization keys and M2M tokens included, gets 404. Set by the server, never from a request body. null on a project that predates owner-only and was made by an API key or M2M token (org-level)
origin"one" | nullrequired'one' when the gateway's signed selected context named One's platform when the project was created; set by the server, never from a request body
target_onstring | null (date)requiredfieldsobject[]requiredThe typed fields every task in the project carries. Replacing the list removes the values of any field left out from every task. Activity records which fields changed, never their values.
fields[].[].keystringrequiredpattern
^[a-z][a-z0-9_]{0,39}$fields[].[].labelstringrequiredmin length 1 · max length 60
fields[].[].type"text" | "long_text" | "email" | "url" | "phone" | "number" | "date" | "choice" | "boolean"requiredfields[].[].requiredbooleanfields[].[].personalbooleanThe field holds a person's data
fields[].[].optionsstring[]choice fields only
fields[].[].maxintegertext and long_text only: the longest value min 1 · max 20000
task_countintegerrequiredopen_countintegerrequiredarchived_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope (archiving and changing
auto_org_idneedscopes:admin), or Auto's authority check denied the assignment (error.details) - 409Stale version, taken project key, archived object (an archived project is frozen), open blocker without
force, or a self, duplicate or cyclic dependency - 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/scopes/projects" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"key": "string",
"name": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('scopes_createProject', {
body: {
key: 'string',
name: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "scopes_createProject",
"arguments": {
"body": {
"key": "string",
"name": "string"
}
}
}
}Get a project
GET/v1/scopes/projects/{project}
Scope scopes:read.
Parameters
projectpath · stringrequired
Responses
- 200The project
Response fields
idstringrequiredkeystringrequirednamestringrequireddescriptionstring | nullrequiredstatus"backlog" | "planned" | "started" | "paused" | "completed" | "canceled"requiredauto_org_idstring | nullrequiredThe linked Auto org; assignments then pass Auto's authority check
leadstring | nullrequiredownerstring | nullrequiredThe signed principal that created the project. Only the owner can read or change it; anyone else in the organization, organization keys and M2M tokens included, gets 404. Set by the server, never from a request body. null on a project that predates owner-only and was made by an API key or M2M token (org-level)
origin"one" | nullrequired'one' when the gateway's signed selected context named One's platform when the project was created; set by the server, never from a request body
target_onstring | null (date)requiredfieldsobject[]requiredThe typed fields every task in the project carries. Replacing the list removes the values of any field left out from every task. Activity records which fields changed, never their values.
fields[].[].keystringrequiredpattern
^[a-z][a-z0-9_]{0,39}$fields[].[].labelstringrequiredmin length 1 · max length 60
fields[].[].type"text" | "long_text" | "email" | "url" | "phone" | "number" | "date" | "choice" | "boolean"requiredfields[].[].requiredbooleanfields[].[].personalbooleanThe field holds a person's data
fields[].[].optionsstring[]choice fields only
fields[].[].maxintegertext and long_text only: the longest value min 1 · max 20000
task_countintegerrequiredopen_countintegerrequiredarchived_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/scopes/projects/$PROJECT" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('scopes_getProject', {
project: '<project>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "scopes_getProject",
"arguments": {
"project": "<project>"
}
}
}Archive a project
DELETE/v1/scopes/projects/{project}
Scope scopes:admin (scopes:write is not enough). Needs If-Match. Projects are archived, never deleted; the response is the archived project.
Parameters
projectpath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Responses
- 200Archived project
Response fields
idstringrequiredkeystringrequirednamestringrequireddescriptionstring | nullrequiredstatus"backlog" | "planned" | "started" | "paused" | "completed" | "canceled"requiredauto_org_idstring | nullrequiredThe linked Auto org; assignments then pass Auto's authority check
leadstring | nullrequiredownerstring | nullrequiredThe signed principal that created the project. Only the owner can read or change it; anyone else in the organization, organization keys and M2M tokens included, gets 404. Set by the server, never from a request body. null on a project that predates owner-only and was made by an API key or M2M token (org-level)
origin"one" | nullrequired'one' when the gateway's signed selected context named One's platform when the project was created; set by the server, never from a request body
target_onstring | null (date)requiredfieldsobject[]requiredThe typed fields every task in the project carries. Replacing the list removes the values of any field left out from every task. Activity records which fields changed, never their values.
fields[].[].keystringrequiredpattern
^[a-z][a-z0-9_]{0,39}$fields[].[].labelstringrequiredmin length 1 · max length 60
fields[].[].type"text" | "long_text" | "email" | "url" | "phone" | "number" | "date" | "choice" | "boolean"requiredfields[].[].requiredbooleanfields[].[].personalbooleanThe field holds a person's data
fields[].[].optionsstring[]choice fields only
fields[].[].maxintegertext and long_text only: the longest value min 1 · max 20000
task_countintegerrequiredopen_countintegerrequiredarchived_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope (archiving and changing
auto_org_idneedscopes:admin), or Auto's authority check denied the assignment (error.details) - 404Not found in your organization
- 409Stale version, taken project key, archived object (an archived project is frozen), open blocker without
force, or a self, duplicate or cyclic dependency - 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/scopes/projects/$PROJECT" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('scopes_archiveProject', {
project: '<project>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "scopes_archiveProject",
"arguments": {
"project": "<project>"
}
}
}Update a project
PATCH/v1/scopes/projects/{project}
Scope scopes:write, and scopes:admin to change auto_org_id (it changes who governs assignments; Scopes checks it). Needs If-Match. At least one field; auto_org_id, lead, description and target_on take null to clear.
Parameters
projectpath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Request body application/json
namestringmin length 1 · max length 200
descriptionstring | nullmax length 20000
status"backlog" | "planned" | "started" | "paused" | "completed" | "canceled"auto_org_idstring | nullnull unlinks the Auto org pattern
^[A-Za-z0-9_]{1,64}$leadstring | nulltarget_onstring (date) | nullfieldsobject[]The typed fields every task in the project carries. Replacing the list removes the values of any field left out from every task. Activity records which fields changed, never their values.
fields[].[].keystringrequiredpattern
^[a-z][a-z0-9_]{0,39}$fields[].[].labelstringrequiredmin length 1 · max length 60
fields[].[].type"text" | "long_text" | "email" | "url" | "phone" | "number" | "date" | "choice" | "boolean"requiredfields[].[].requiredbooleanfields[].[].personalbooleanThe field holds a person's data
fields[].[].optionsstring[]choice fields only
fields[].[].maxintegertext and long_text only: the longest value min 1 · max 20000
Responses
- 200Updated project
Response fields
idstringrequiredkeystringrequirednamestringrequireddescriptionstring | nullrequiredstatus"backlog" | "planned" | "started" | "paused" | "completed" | "canceled"requiredauto_org_idstring | nullrequiredThe linked Auto org; assignments then pass Auto's authority check
leadstring | nullrequiredownerstring | nullrequiredThe signed principal that created the project. Only the owner can read or change it; anyone else in the organization, organization keys and M2M tokens included, gets 404. Set by the server, never from a request body. null on a project that predates owner-only and was made by an API key or M2M token (org-level)
origin"one" | nullrequired'one' when the gateway's signed selected context named One's platform when the project was created; set by the server, never from a request body
target_onstring | null (date)requiredfieldsobject[]requiredThe typed fields every task in the project carries. Replacing the list removes the values of any field left out from every task. Activity records which fields changed, never their values.
fields[].[].keystringrequiredpattern
^[a-z][a-z0-9_]{0,39}$fields[].[].labelstringrequiredmin length 1 · max length 60
fields[].[].type"text" | "long_text" | "email" | "url" | "phone" | "number" | "date" | "choice" | "boolean"requiredfields[].[].requiredbooleanfields[].[].personalbooleanThe field holds a person's data
fields[].[].optionsstring[]choice fields only
fields[].[].maxintegertext and long_text only: the longest value min 1 · max 20000
task_countintegerrequiredopen_countintegerrequiredarchived_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope (archiving and changing
auto_org_idneedscopes:admin), or Auto's authority check denied the assignment (error.details) - 404Not found in your organization
- 409Stale version, taken project key, archived object (an archived project is frozen), open blocker without
force, or a self, duplicate or cyclic dependency - 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/scopes/projects/$PROJECT" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('scopes_updateProject', {
project: '<project>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "scopes_updateProject",
"arguments": {
"project": "<project>",
"body": {}
}
}
}Activity
Read a project's activity
GET/v1/scopes/projects/{project}/activity
Scope scopes:read. Events in seq order; pass next_after back as after to page.
Parameters
projectpath · stringrequiredafterquery · integerReturn items after this cursor (default 0)
limitquery · integerPage size, 1-500 (default 100)
Responses
- 200A page of events
Response fields
dataobject[]requireddata[].[].idstringrequireddata[].[].seqintegerrequireddata[].[].project_idstringrequireddata[].[].task_idstring | nullrequireddata[].[].kindstringrequireddata[].[].actorstringrequireddata[].[].actor_kindstringrequireddata[].[].dataanyrequiredFree-form; shape depends on kind
data[].[].created_atstring (date-time)requirednext_afterinteger | nullrequiredseq to pass as
afterfor the next page; null when this page was not full
- 404Not found in your organization
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/scopes/projects/$PROJECT/activity" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('scopes_getProjectActivity', {
project: '<project>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "scopes_getProjectActivity",
"arguments": {
"project": "<project>"
}
}
}Read a task's activity
GET/v1/scopes/tasks/{task}/activity
Scope scopes:read. Events in seq order; pass next_after back as after to page.
Parameters
taskpath · stringrequiredafterquery · integerReturn items after this cursor (default 0)
limitquery · integerPage size, 1-500 (default 100)
Responses
- 200A page of events
Response fields
dataobject[]requireddata[].[].idstringrequireddata[].[].seqintegerrequireddata[].[].project_idstringrequireddata[].[].task_idstring | nullrequireddata[].[].kindstringrequireddata[].[].actorstringrequireddata[].[].actor_kindstringrequireddata[].[].dataanyrequiredFree-form; shape depends on kind
data[].[].created_atstring (date-time)requirednext_afterinteger | nullrequiredseq to pass as
afterfor the next page; null when this page was not full
- 404Not found in your organization
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/scopes/tasks/$TASK/activity" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('scopes_getTaskActivity', {
task: '<task>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "scopes_getTaskActivity",
"arguments": {
"task": "<task>"
}
}
}Graph
Get a project's dependency graph
GET/v1/scopes/projects/{project}/graph
Scope scopes:read. Tasks (and tasks in other projects that edges touch), blocks edges from blocker to blocked, a topological order and the critical path of open work weighted by estimate.
Parameters
projectpath · stringrequired
Responses
- 200The graph
Response fields
projectobjectrequiredproject.idstringrequiredproject.keystringrequiredproject.namestringrequiredproject.descriptionstring | nullrequiredproject.status"backlog" | "planned" | "started" | "paused" | "completed" | "canceled"requiredproject.auto_org_idstring | nullrequiredThe linked Auto org; assignments then pass Auto's authority check
project.leadstring | nullrequiredproject.ownerstring | nullrequiredThe signed principal that created the project. Only the owner can read or change it; anyone else in the organization, organization keys and M2M tokens included, gets 404. Set by the server, never from a request body. null on a project that predates owner-only and was made by an API key or M2M token (org-level)
project.origin"one" | nullrequired'one' when the gateway's signed selected context named One's platform when the project was created; set by the server, never from a request body
project.target_onstring | null (date)requiredproject.fieldsobject[]requiredThe typed fields every task in the project carries. Replacing the list removes the values of any field left out from every task. Activity records which fields changed, never their values.
project.fields[].[].keystringrequiredpattern
^[a-z][a-z0-9_]{0,39}$project.fields[].[].labelstringrequiredmin length 1 · max length 60
project.fields[].[].type"text" | "long_text" | "email" | "url" | "phone" | "number" | "date" | "choice" | "boolean"requiredproject.fields[].[].requiredbooleanproject.fields[].[].personalbooleanThe field holds a person's data
project.fields[].[].optionsstring[]choice fields only
project.fields[].[].maxintegertext and long_text only: the longest value min 1 · max 20000
project.task_countintegerrequiredproject.open_countintegerrequiredproject.archived_atstring | null (date-time)requiredproject.versionintegerrequiredproject.created_atstring (date-time)requiredproject.updated_atstring (date-time)requiredtasksobject[]requiredtasks[].[].idstringrequiredtasks[].[].seqintegerPosition in the tenant's task order;
next_afteron task lists is the last row's seqtasks[].[].project_idstringrequiredtasks[].[].numberintegerrequiredtasks[].[].identifierstringrequiredProject key and number, e.g. ENG-12
tasks[].[].titlestringrequiredtasks[].[].descriptionstring | nullrequiredtasks[].[].status"triage" | "backlog" | "todo" | "in_progress" | "in_review" | "done" | "canceled"requireddone and canceled are closed
tasks[].[].priorityintegerrequired0 none, 1 urgent, 2 high, 3 medium, 4 low min 0 · max 4
tasks[].[].estimatenumber | nullrequiredtasks[].[].labelsstring[]requiredtasks[].[].parent_idstring | nullrequiredtasks[].[].due_onstring | null (date)requiredtasks[].[].start_onstring | null (date)requiredtasks[].[].fieldsobjectrequiredValues for the project's fields, by key, checked against its definitions. On update, only the keys given change; null clears one.
tasks[].[].assigneeobject | object | nullrequiredtasks[].[].assigned_atstring | null (date-time)requiredtasks[].[].started_atstring | null (date-time)requiredtasks[].[].completed_atstring | null (date-time)requiredtasks[].[].canceled_atstring | null (date-time)requiredtasks[].[].blockedbooleanrequiredThe task has an open blocker
tasks[].[].archived_atstring | null (date-time)requiredtasks[].[].versionintegerrequiredtasks[].[].created_atstring (date-time)requiredtasks[].[].updated_atstring (date-time)requirededgesobject[]requirededges[].[].fromstringrequireddepends_on_id (the blocker)
edges[].[].tostringrequiredtask_id (the dependent task)
edges[].[].kind"blocks" | "relates" | "duplicates"requiredorderstring[]requiredTask ids in topological order
critical_pathstring[]requiredTask ids on the longest blocking chain
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/scopes/projects/$PROJECT/graph" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('scopes_getGraph', {
project: '<project>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "scopes_getGraph",
"arguments": {
"project": "<project>"
}
}
}Ready
List tasks ready to start
GET/v1/scopes/projects/{project}/ready
Scope scopes:read. Open tasks in todo or backlog with no open blocker, most urgent first; unassigned=true keeps only those without an assignee.
Parameters
projectpath · stringrequiredunassignedquery · boolean
Responses
- 200Ready tasks
Response fields
dataobject[]requireddata[].[].idstringrequireddata[].[].seqintegerPosition in the tenant's task order;
next_afteron task lists is the last row's seqdata[].[].project_idstringrequireddata[].[].numberintegerrequireddata[].[].identifierstringrequiredProject key and number, e.g. ENG-12
data[].[].titlestringrequireddata[].[].descriptionstring | nullrequireddata[].[].status"triage" | "backlog" | "todo" | "in_progress" | "in_review" | "done" | "canceled"requireddone and canceled are closed
data[].[].priorityintegerrequired0 none, 1 urgent, 2 high, 3 medium, 4 low min 0 · max 4
data[].[].estimatenumber | nullrequireddata[].[].labelsstring[]requireddata[].[].parent_idstring | nullrequireddata[].[].due_onstring | null (date)requireddata[].[].start_onstring | null (date)requireddata[].[].fieldsobjectrequiredValues for the project's fields, by key, checked against its definitions. On update, only the keys given change; null clears one.
data[].[].assigneeobject | object | nullrequireddata[].[].assigned_atstring | null (date-time)requireddata[].[].started_atstring | null (date-time)requireddata[].[].completed_atstring | null (date-time)requireddata[].[].canceled_atstring | null (date-time)requireddata[].[].blockedbooleanrequiredThe task has an open blocker
data[].[].archived_atstring | null (date-time)requireddata[].[].versionintegerrequireddata[].[].created_atstring (date-time)requireddata[].[].updated_atstring (date-time)required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/scopes/projects/$PROJECT/ready" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('scopes_listReady', {
project: '<project>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "scopes_listReady",
"arguments": {
"project": "<project>"
}
}
}Tasks
List a project's tasks
GET/v1/scopes/projects/{project}/tasks
Scope scopes:read. The filters of listTasks, within this project. Pass next_after back as after to page.
Parameters
projectpath · stringrequiredstatusquery · stringOne status, or several separated by commas (
todo,in_progress)assigneequery · stringAssignee
refor principallabelquery · stringparent_idquery · stringfieldquery · stringOne field's value, as
<key>:<value>(compared as text), e.g.stage:contacted. Needsproject_idon listTasks. Request logs keep URLs, so only achoice,boolean,numberordatefield not markedpersonalmay be filtered; any other field is refused with 422 (people control their data).openquery · booleanOnly tasks that are not done or canceled
include_archivedquery · booleanafterquery · integerReturn items after this cursor (default 0)
limitquery · integerPage size, 1-200 (default 50)
Responses
- 200A page of tasks
Response fields
dataobject[]requireddata[].[].idstringrequireddata[].[].seqintegerPosition in the tenant's task order;
next_afteron task lists is the last row's seqdata[].[].project_idstringrequireddata[].[].numberintegerrequireddata[].[].identifierstringrequiredProject key and number, e.g. ENG-12
data[].[].titlestringrequireddata[].[].descriptionstring | nullrequireddata[].[].status"triage" | "backlog" | "todo" | "in_progress" | "in_review" | "done" | "canceled"requireddone and canceled are closed
data[].[].priorityintegerrequired0 none, 1 urgent, 2 high, 3 medium, 4 low min 0 · max 4
data[].[].estimatenumber | nullrequireddata[].[].labelsstring[]requireddata[].[].parent_idstring | nullrequireddata[].[].due_onstring | null (date)requireddata[].[].start_onstring | null (date)requireddata[].[].fieldsobjectrequiredValues for the project's fields, by key, checked against its definitions. On update, only the keys given change; null clears one.
data[].[].assigneeobject | object | nullrequireddata[].[].assigned_atstring | null (date-time)requireddata[].[].started_atstring | null (date-time)requireddata[].[].completed_atstring | null (date-time)requireddata[].[].canceled_atstring | null (date-time)requireddata[].[].blockedbooleanrequiredThe task has an open blocker
data[].[].archived_atstring | null (date-time)requireddata[].[].versionintegerrequireddata[].[].created_atstring (date-time)requireddata[].[].updated_atstring (date-time)requirednext_afterinteger | nullrequiredCursor to pass as
afterfor the next page; null when this page was not full
- 404Not found in your organization
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/scopes/projects/$PROJECT/tasks" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('scopes_listProjectTasks', {
project: '<project>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "scopes_listProjectTasks",
"arguments": {
"project": "<project>"
}
}
}Create a task in a project
POST/v1/scopes/projects/{project}/tasks
Scope scopes:write. Defaults to status todo and priority 0. An assignee goes through the same authority check as assignTask.
Parameters
projectpath · stringrequired
Request body application/json
titlestringrequiredmin length 1 · max length 1024
descriptionstring | nullmax length 100000
status"triage" | "backlog" | "todo" | "in_progress" | "in_review" | "done" | "canceled"done and canceled are closed
priorityinteger0 none, 1 urgent, 2 high, 3 medium, 4 low min 0 · max 4
estimatenumber | nullmin 0 · max 10000
labelsstring[]Stored lowercase, without duplicates
parent_idstring | nullpattern
^tsk_[a-f0-9]{32}$due_onstring (date) | nullstart_onstring (date) | nullassigneeobject | object | nullfieldsobjectValues for the project's fields, by key, checked against its definitions. On update, only the keys given change; null clears one.
Responses
- 201Task created; the
ETagheader carries its versionResponse fields
idstringrequiredseqintegerPosition in the tenant's task order;
next_afteron task lists is the last row's seqproject_idstringrequirednumberintegerrequiredidentifierstringrequiredProject key and number, e.g. ENG-12
titlestringrequireddescriptionstring | nullrequiredstatus"triage" | "backlog" | "todo" | "in_progress" | "in_review" | "done" | "canceled"requireddone and canceled are closed
priorityintegerrequired0 none, 1 urgent, 2 high, 3 medium, 4 low min 0 · max 4
estimatenumber | nullrequiredlabelsstring[]requiredparent_idstring | nullrequireddue_onstring | null (date)requiredstart_onstring | null (date)requiredfieldsobjectrequiredValues for the project's fields, by key, checked against its definitions. On update, only the keys given change; null clears one.
assigneeobject | object | nullrequiredassigned_atstring | null (date-time)requiredstarted_atstring | null (date-time)requiredcompleted_atstring | null (date-time)requiredcanceled_atstring | null (date-time)requiredblockedbooleanrequiredThe task has an open blocker
archived_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope (archiving and changing
auto_org_idneedscopes:admin), or Auto's authority check denied the assignment (error.details) - 404Not found in your organization
- 409Stale version, taken project key, archived object (an archived project is frozen), open blocker without
force, or a self, duplicate or cyclic dependency - 422Invalid body, query or If-Match; unknown fields are rejected
- 503The project is linked to an Auto org and Auto could not answer the authority check (unreachable, timed out or refused); the assignment is not made (fail closed)
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/scopes/projects/$PROJECT/tasks" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('scopes_createTask', {
project: '<project>',
body: {
title: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "scopes_createTask",
"arguments": {
"project": "<project>",
"body": {
"title": "string"
}
}
}
}List tasks
GET/v1/scopes/tasks
Scope scopes:read. Filters combine; archived tasks are hidden unless include_archived=true. Pass next_after back as after to page.
Parameters
project_idquery · stringstatusquery · stringOne status, or several separated by commas (
todo,in_progress)assigneequery · stringAssignee
refor principallabelquery · stringparent_idquery · stringfieldquery · stringOne field's value, as
<key>:<value>(compared as text), e.g.stage:contacted. Needsproject_idon listTasks. Request logs keep URLs, so only achoice,boolean,numberordatefield not markedpersonalmay be filtered; any other field is refused with 422 (people control their data).openquery · booleanOnly tasks that are not done or canceled
include_archivedquery · booleanafterquery · integerReturn items after this cursor (default 0)
limitquery · integerPage size, 1-200 (default 50)
Responses
- 200A page of tasks
Response fields
dataobject[]requireddata[].[].idstringrequireddata[].[].seqintegerPosition in the tenant's task order;
next_afteron task lists is the last row's seqdata[].[].project_idstringrequireddata[].[].numberintegerrequireddata[].[].identifierstringrequiredProject key and number, e.g. ENG-12
data[].[].titlestringrequireddata[].[].descriptionstring | nullrequireddata[].[].status"triage" | "backlog" | "todo" | "in_progress" | "in_review" | "done" | "canceled"requireddone and canceled are closed
data[].[].priorityintegerrequired0 none, 1 urgent, 2 high, 3 medium, 4 low min 0 · max 4
data[].[].estimatenumber | nullrequireddata[].[].labelsstring[]requireddata[].[].parent_idstring | nullrequireddata[].[].due_onstring | null (date)requireddata[].[].start_onstring | null (date)requireddata[].[].fieldsobjectrequiredValues for the project's fields, by key, checked against its definitions. On update, only the keys given change; null clears one.
data[].[].assigneeobject | object | nullrequireddata[].[].assigned_atstring | null (date-time)requireddata[].[].started_atstring | null (date-time)requireddata[].[].completed_atstring | null (date-time)requireddata[].[].canceled_atstring | null (date-time)requireddata[].[].blockedbooleanrequiredThe task has an open blocker
data[].[].archived_atstring | null (date-time)requireddata[].[].versionintegerrequireddata[].[].created_atstring (date-time)requireddata[].[].updated_atstring (date-time)requirednext_afterinteger | nullrequiredCursor to pass as
afterfor the next page; null when this page was not full
- 403Missing scope (archiving and changing
auto_org_idneedscopes:admin), or Auto's authority check denied the assignment (error.details) - 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/scopes/tasks" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('scopes_listTasks'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "scopes_listTasks",
"arguments": {}
}
}Get a task
GET/v1/scopes/tasks/{task}
Scope scopes:read. task is a tsk_ id or an identifier such as ENG-12.
Parameters
taskpath · stringrequired
Responses
- 200The task
Response fields
idstringrequiredseqintegerPosition in the tenant's task order;
next_afteron task lists is the last row's seqproject_idstringrequirednumberintegerrequiredidentifierstringrequiredProject key and number, e.g. ENG-12
titlestringrequireddescriptionstring | nullrequiredstatus"triage" | "backlog" | "todo" | "in_progress" | "in_review" | "done" | "canceled"requireddone and canceled are closed
priorityintegerrequired0 none, 1 urgent, 2 high, 3 medium, 4 low min 0 · max 4
estimatenumber | nullrequiredlabelsstring[]requiredparent_idstring | nullrequireddue_onstring | null (date)requiredstart_onstring | null (date)requiredfieldsobjectrequiredValues for the project's fields, by key, checked against its definitions. On update, only the keys given change; null clears one.
assigneeobject | object | nullrequiredassigned_atstring | null (date-time)requiredstarted_atstring | null (date-time)requiredcompleted_atstring | null (date-time)requiredcanceled_atstring | null (date-time)requiredblockedbooleanrequiredThe task has an open blocker
archived_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/scopes/tasks/$TASK" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('scopes_getTask', {
task: '<task>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "scopes_getTask",
"arguments": {
"task": "<task>"
}
}
}Archive a task
DELETE/v1/scopes/tasks/{task}
Scope scopes:admin (scopes:write is not enough). Needs If-Match. Tasks are archived, never deleted; the response is the archived task.
Parameters
taskpath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Responses
- 200Archived task
Response fields
idstringrequiredseqintegerPosition in the tenant's task order;
next_afteron task lists is the last row's seqproject_idstringrequirednumberintegerrequiredidentifierstringrequiredProject key and number, e.g. ENG-12
titlestringrequireddescriptionstring | nullrequiredstatus"triage" | "backlog" | "todo" | "in_progress" | "in_review" | "done" | "canceled"requireddone and canceled are closed
priorityintegerrequired0 none, 1 urgent, 2 high, 3 medium, 4 low min 0 · max 4
estimatenumber | nullrequiredlabelsstring[]requiredparent_idstring | nullrequireddue_onstring | null (date)requiredstart_onstring | null (date)requiredfieldsobjectrequiredValues for the project's fields, by key, checked against its definitions. On update, only the keys given change; null clears one.
assigneeobject | object | nullrequiredassigned_atstring | null (date-time)requiredstarted_atstring | null (date-time)requiredcompleted_atstring | null (date-time)requiredcanceled_atstring | null (date-time)requiredblockedbooleanrequiredThe task has an open blocker
archived_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope (archiving and changing
auto_org_idneedscopes:admin), or Auto's authority check denied the assignment (error.details) - 404Not found in your organization
- 409Stale version, taken project key, archived object (an archived project is frozen), open blocker without
force, or a self, duplicate or cyclic dependency - 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/scopes/tasks/$TASK" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('scopes_archiveTask', {
task: '<task>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "scopes_archiveTask",
"arguments": {
"task": "<task>"
}
}
}Update a task or move its status
PATCH/v1/scopes/tasks/{task}
Scope scopes:write. Needs If-Match. Any task field except the assignee (use assignTask). Moving a task with an open blocker to in_progress or later is a 409 unless force is true.
Parameters
taskpath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Request body application/json
titlestringmin length 1 · max length 1024
descriptionstring | nullmax length 100000
status"triage" | "backlog" | "todo" | "in_progress" | "in_review" | "done" | "canceled"done and canceled are closed
priorityinteger0 none, 1 urgent, 2 high, 3 medium, 4 low min 0 · max 4
estimatenumber | nullmin 0 · max 10000
labelsstring[]Stored lowercase, without duplicates
parent_idstring | nullpattern
^tsk_[a-f0-9]{32}$due_onstring (date) | nullstart_onstring (date) | nullfieldsobjectValues for the project's fields, by key, checked against its definitions. On update, only the keys given change; null clears one.
forcebooleanStart the task even though it has an open blocker
reasonstringRecorded in the activity min length 1 · max length 4000
Responses
- 200Updated task
Response fields
idstringrequiredseqintegerPosition in the tenant's task order;
next_afteron task lists is the last row's seqproject_idstringrequirednumberintegerrequiredidentifierstringrequiredProject key and number, e.g. ENG-12
titlestringrequireddescriptionstring | nullrequiredstatus"triage" | "backlog" | "todo" | "in_progress" | "in_review" | "done" | "canceled"requireddone and canceled are closed
priorityintegerrequired0 none, 1 urgent, 2 high, 3 medium, 4 low min 0 · max 4
estimatenumber | nullrequiredlabelsstring[]requiredparent_idstring | nullrequireddue_onstring | null (date)requiredstart_onstring | null (date)requiredfieldsobjectrequiredValues for the project's fields, by key, checked against its definitions. On update, only the keys given change; null clears one.
assigneeobject | object | nullrequiredassigned_atstring | null (date-time)requiredstarted_atstring | null (date-time)requiredcompleted_atstring | null (date-time)requiredcanceled_atstring | null (date-time)requiredblockedbooleanrequiredThe task has an open blocker
archived_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope (archiving and changing
auto_org_idneedscopes:admin), or Auto's authority check denied the assignment (error.details) - 404Not found in your organization
- 409Stale version, taken project key, archived object (an archived project is frozen), open blocker without
force, or a self, duplicate or cyclic dependency - 422Invalid body, query or If-Match; unknown fields are rejected
- 503The project is linked to an Auto org and Auto could not answer the authority check (unreachable, timed out or refused); the assignment is not made (fail closed)
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/scopes/tasks/$TASK" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('scopes_updateTask', {
task: '<task>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "scopes_updateTask",
"arguments": {
"task": "<task>",
"body": {}
}
}
}Assignee
Assign a task to an agent or a person
PUT/v1/scopes/tasks/{task}/assignee
Scope scopes:write. Needs If-Match. Opens a new assignment term and ends the previous one. In a project linked to an Auto org, Auto's authority check runs first; a deny is a 403 whose error.details carries Auto's reasons and escalate_to. Scopes records the assignment; the agent runs on its own runtime (source).
Parameters
taskpath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Request body application/json
assigneeobject | objectrequiredAn agent on Henry, Fleets or Flocks, or a person.
principalis who acts as the assignee at the gateway (defaults toref).reasonstringSent to Auto's authority check and recorded in the activity min length 1 · max length 4000
Responses
- 200The assigned task
Response fields
idstringrequiredseqintegerPosition in the tenant's task order;
next_afteron task lists is the last row's seqproject_idstringrequirednumberintegerrequiredidentifierstringrequiredProject key and number, e.g. ENG-12
titlestringrequireddescriptionstring | nullrequiredstatus"triage" | "backlog" | "todo" | "in_progress" | "in_review" | "done" | "canceled"requireddone and canceled are closed
priorityintegerrequired0 none, 1 urgent, 2 high, 3 medium, 4 low min 0 · max 4
estimatenumber | nullrequiredlabelsstring[]requiredparent_idstring | nullrequireddue_onstring | null (date)requiredstart_onstring | null (date)requiredfieldsobjectrequiredValues for the project's fields, by key, checked against its definitions. On update, only the keys given change; null clears one.
assigneeobject | object | nullrequiredassigned_atstring | null (date-time)requiredstarted_atstring | null (date-time)requiredcompleted_atstring | null (date-time)requiredcanceled_atstring | null (date-time)requiredblockedbooleanrequiredThe task has an open blocker
archived_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope (archiving and changing
auto_org_idneedscopes:admin), or Auto's authority check denied the assignment (error.details) - 404Not found in your organization
- 409Stale version, taken project key, archived object (an archived project is frozen), open blocker without
force, or a self, duplicate or cyclic dependency - 422Invalid body, query or If-Match; unknown fields are rejected
- 503The project is linked to an Auto org and Auto could not answer the authority check (unreachable, timed out or refused); the assignment is not made (fail closed)
- 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/scopes/tasks/$TASK/assignee" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"assignee": {
"kind": "agent",
"source": "henry",
"ref": "string"
}
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('scopes_assignTask', {
task: '<task>',
body: {
assignee: {
kind: 'agent',
source: 'henry',
ref: 'string',
},
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "scopes_assignTask",
"arguments": {
"task": "<task>",
"body": {
"assignee": {
"kind": "agent",
"source": "henry",
"ref": "string"
}
}
}
}
}Unassign a task
DELETE/v1/scopes/tasks/{task}/assignee
Scope scopes:write. Needs If-Match. Ends the current assignment term.
Parameters
taskpath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Responses
- 200The unassigned task
Response fields
idstringrequiredseqintegerPosition in the tenant's task order;
next_afteron task lists is the last row's seqproject_idstringrequirednumberintegerrequiredidentifierstringrequiredProject key and number, e.g. ENG-12
titlestringrequireddescriptionstring | nullrequiredstatus"triage" | "backlog" | "todo" | "in_progress" | "in_review" | "done" | "canceled"requireddone and canceled are closed
priorityintegerrequired0 none, 1 urgent, 2 high, 3 medium, 4 low min 0 · max 4
estimatenumber | nullrequiredlabelsstring[]requiredparent_idstring | nullrequireddue_onstring | null (date)requiredstart_onstring | null (date)requiredfieldsobjectrequiredValues for the project's fields, by key, checked against its definitions. On update, only the keys given change; null clears one.
assigneeobject | object | nullrequiredassigned_atstring | null (date-time)requiredstarted_atstring | null (date-time)requiredcompleted_atstring | null (date-time)requiredcanceled_atstring | null (date-time)requiredblockedbooleanrequiredThe task has an open blocker
archived_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 409Stale version, taken project key, archived object (an archived project is frozen), open blocker without
force, or a self, duplicate or cyclic dependency - 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/scopes/tasks/$TASK/assignee" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('scopes_unassignTask', {
task: '<task>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "scopes_unassignTask",
"arguments": {
"task": "<task>"
}
}
}Assignments
List a task's assignment terms
GET/v1/scopes/tasks/{task}/assignments
Scope scopes:read. Newest first, with the authority check outcome of each.
Parameters
taskpath · stringrequired
Responses
- 200Assignment terms
Response fields
dataobject[]requireddata[].[].idstringrequireddata[].[].task_idstringrequireddata[].[].assigneeobject | objectrequiredAn agent on Henry, Fleets or Flocks, or a person.
principalis who acts as the assignee at the gateway (defaults toref).data[].[].started_atstring (date-time)requireddata[].[].ended_atstring | null (date-time)requireddata[].[].assigned_bystringrequireddata[].[].authorityobjectrequiredAuto's authority check;
checkedis false for projects without an Auto orgdata[].[].authority.checkedbooleanrequireddata[].[].authority.outcomestring | nullrequireddata[].[].authority.check_idstring
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/scopes/tasks/$TASK/assignments" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('scopes_listAssignments', {
task: '<task>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "scopes_listAssignments",
"arguments": {
"task": "<task>"
}
}
}Comments
List a task's comments
GET/v1/scopes/tasks/{task}/comments
Scope scopes:read. Oldest first.
Parameters
taskpath · stringrequired
Responses
- 200Comments
Response fields
dataobject[]requireddata[].[].idstringrequireddata[].[].task_idstringrequireddata[].[].bodystringrequireddata[].[].authorstringrequireddata[].[].author_kindstringrequireddata[].[].created_atstring (date-time)required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/scopes/tasks/$TASK/comments" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('scopes_listComments', {
task: '<task>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "scopes_listComments",
"arguments": {
"task": "<task>"
}
}
}Comment on a task
POST/v1/scopes/tasks/{task}/comments
Scope scopes:write. The author is the calling principal.
Parameters
taskpath · stringrequired
Request body application/json
bodystringrequiredmin length 1 · max length 50000
Responses
- 201Comment created
Response fields
idstringrequiredtask_idstringrequiredbodystringrequiredauthorstringrequiredauthor_kindstringrequiredcreated_atstring (date-time)required
- 404Not found in your organization
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/scopes/tasks/$TASK/comments" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"body": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('scopes_addComment', {
task: '<task>',
body: {
body: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "scopes_addComment",
"arguments": {
"task": "<task>",
"body": {
"body": "string"
}
}
}
}Whoami
Show the identity Scopes sees for your credential
GET/v1/scopes/whoami
Scope scopes:read.
Responses
- 200Org, principal, principal kind and scopes as the gateway signed them
Response fields
orgstringrequiredprincipalstringrequiredkind"api_key" | "m2m_token" | "bridge_session"requiredscopesstring[]required
- 403Missing scope (archiving and changing
auto_org_idneedscopes:admin), or Auto's authority check denied the assignment (error.details) - 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/scopes/whoami" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('scopes_whoami'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "scopes_whoami",
"arguments": {}
}
}Workload
Show open work per assignee
GET/v1/scopes/workload
Scope scopes:read. For each assignee, open, in-progress and blocked task counts and the projects they span; project_id narrows to one project.
Parameters
project_idquery · string
Responses
- 200Workload per assignee
Response fields
dataobject[]requireddata[].[].assigneeobject | objectrequiredAn agent on Henry, Fleets or Flocks, or a person.
principalis who acts as the assignee at the gateway (defaults toref).data[].[].openintegerrequireddata[].[].in_progressintegerrequireddata[].[].blockedintegerrequireddata[].[].projectsanyrequiredThe projects the assignee's open tasks are in
- 403Missing scope (archiving and changing
auto_org_idneedscopes:admin), or Auto's authority check denied the assignment (error.details) - 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/scopes/workload" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('scopes_getWorkload'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "scopes_getWorkload",
"arguments": {}
}
}L1fe AI Inc. · Built from Genesis 0.3.1 and the live gateway on 2026-10-25. Support