OneOS Docs
Genesis 0.3.1 Console

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:admin scopes:read scopes:write
API keys
25 tested with an API key
SDK
genesis.call('scopes_removeDependency', …) · helpers under genesis.scopes
CLI
genesis scopes
MCP
25 tools

Operations

OperationEndpointAPI key
Remove a dependencyDELETE/dependencies/{dependency}Tested with an API key
List projectsGET/projectsTested with an API key
Create a projectPOST/projectsTested with an API key
Get a projectGET/projects/{project}Tested with an API key
Archive a projectDELETE/projects/{project}Tested with an API key
Update a projectPATCH/projects/{project}Tested with an API key
Read a project's activityGET/projects/{project}/activityTested with an API key
Get a project's dependency graphGET/projects/{project}/graphTested with an API key
List tasks ready to startGET/projects/{project}/readyTested with an API key
List a project's tasksGET/projects/{project}/tasksTested with an API key
Create a task in a projectPOST/projects/{project}/tasksTested with an API key
List tasksGET/tasksTested with an API key
Get a taskGET/tasks/{task}Tested with an API key
Archive a taskDELETE/tasks/{task}Tested with an API key
Update a task or move its statusPATCH/tasks/{task}Tested with an API key
Read a task's activityGET/tasks/{task}/activityTested with an API key
Assign a task to an agent or a personPUT/tasks/{task}/assigneeTested with an API key
Unassign a taskDELETE/tasks/{task}/assigneeTested with an API key
List a task's assignment termsGET/tasks/{task}/assignmentsTested with an API key
List a task's commentsGET/tasks/{task}/commentsTested with an API key
Comment on a taskPOST/tasks/{task}/commentsTested with an API key
List a task's dependenciesGET/tasks/{task}/dependenciesTested with an API key
Add a dependencyPOST/tasks/{task}/dependenciesTested with an API key
Show the identity Scopes sees for your credentialGET/whoamiTested with an API key
Show open work per assigneeGET/workloadTested with an API key

Dependencies

Remove a dependency

DELETE/v1/scopes/dependencies/{dependency}

scopes:writeTested with an API keyscopes_removeDependency

Scope scopes:write. Edges carry no version, so no If-Match.

Parameters

  • dependencypath · stringrequired

Responses

  • 200The removed edge
    Response fields
    • idstringrequired
    • task_idstringrequired
    • depends_on_idstringrequired
    • kind"blocks" | "relates" | "duplicates"required
    • created_atstring (date-time)required
    • created_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"

List a task's dependencies

GET/v1/scopes/tasks/{task}/dependencies

scopes:readTested with an API keyscopes_listDependencies

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[]required

      Edges whose other task blocks this one, each with the other task's summary

    • blocked_by[].[].idstringrequired
    • blocked_by[].[].task_idstringrequired
    • blocked_by[].[].depends_on_idstringrequired
    • blocked_by[].[].kind"blocks" | "relates" | "duplicates"required
    • blocked_by[].[].created_atstring (date-time)required
    • blocked_by[].[].created_bystringrequired
    • blocksobject[]required

      Edges whose other task this one blocks, each with the other task's summary

    • blocks[].[].idstringrequired
    • blocks[].[].task_idstringrequired
    • blocks[].[].depends_on_idstringrequired
    • blocks[].[].kind"blocks" | "relates" | "duplicates"required
    • blocks[].[].created_atstring (date-time)required
    • blocks[].[].created_bystringrequired
    • relatedobject[]required

      relates and duplicates edges, each with the other task's summary

    • related[].[].idstringrequired
    • related[].[].task_idstringrequired
    • related[].[].depends_on_idstringrequired
    • related[].[].kind"blocks" | "relates" | "duplicates"required
    • related[].[].created_atstring (date-time)required
    • related[].[].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"

Add a dependency

POST/v1/scopes/tasks/{task}/dependencies

scopes:writeTested with an API keyscopes_addDependency

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_idstringrequired

    pattern ^tsk_[a-f0-9]{32}$

  • kind"blocks" | "relates" | "duplicates"

Responses

  • 201Dependency created
    Response fields
    • idstringrequired
    • task_idstringrequired
    • depends_on_idstringrequired
    • kind"blocks" | "relates" | "duplicates"required
    • created_atstring (date-time)required
    • created_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"
  }'

Projects

List projects

GET/v1/scopes/projects

scopes:readTested with an API keyscopes_listProjects

Scope scopes:read. Archived projects are hidden unless include_archived=true.

Parameters

  • include_archivedquery · boolean
  • statusquery · "backlog" | "planned" | "started" | "paused" | "completed" | "canceled"

Responses

  • 200Projects
    Response fields
    • dataobject[]required
    • data[].[].idstringrequired
    • data[].[].keystringrequired
    • data[].[].namestringrequired
    • data[].[].descriptionstring | nullrequired
    • data[].[].status"backlog" | "planned" | "started" | "paused" | "completed" | "canceled"required
    • data[].[].auto_org_idstring | nullrequired

      The linked Auto org; assignments then pass Auto's authority check

    • data[].[].leadstring | nullrequired
    • data[].[].ownerstring | nullrequired

      The 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)required
    • data[].[].fieldsobject[]required

      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.

    • data[].[].fields[].[].keystringrequired

      pattern ^[a-z][a-z0-9_]{0,39}$

    • data[].[].fields[].[].labelstringrequired

      min length 1 · max length 60

    • data[].[].fields[].[].type"text" | "long_text" | "email" | "url" | "phone" | "number" | "date" | "choice" | "boolean"required
    • data[].[].fields[].[].requiredboolean
    • data[].[].fields[].[].personalboolean

      The field holds a person's data

    • data[].[].fields[].[].optionsstring[]

      choice fields only

    • data[].[].fields[].[].maxinteger

      text and long_text only: the longest value min 1 · max 20000

    • data[].[].task_countintegerrequired
    • data[].[].open_countintegerrequired
    • data[].[].archived_atstring | null (date-time)required
    • data[].[].versionintegerrequired
    • data[].[].created_atstring (date-time)required
    • data[].[].updated_atstring (date-time)required
  • 403Missing scope (archiving and changing auto_org_id need scopes: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"

Create a project

POST/v1/scopes/projects

scopes:writeTested with an API keyscopes_createProject

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

  • keystringrequired

    2-10 characters: an uppercase letter, then uppercase letters or digits pattern ^[A-Z][A-Z0-9]{1,9}$

  • namestringrequired

    min length 1 · max length 200

  • descriptionstring | null

    max length 20000

  • status"backlog" | "planned" | "started" | "paused" | "completed" | "canceled"
  • auto_org_idstring | null

    pattern ^[A-Za-z0-9_]{1,64}$

  • leadstring | null
  • target_onstring (date) | null
  • fieldsobject[]

    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[].[].keystringrequired

    pattern ^[a-z][a-z0-9_]{0,39}$

  • fields[].[].labelstringrequired

    min length 1 · max length 60

  • fields[].[].type"text" | "long_text" | "email" | "url" | "phone" | "number" | "date" | "choice" | "boolean"required
  • fields[].[].requiredboolean
  • fields[].[].personalboolean

    The field holds a person's data

  • fields[].[].optionsstring[]

    choice fields only

  • fields[].[].maxinteger

    text and long_text only: the longest value min 1 · max 20000

Responses

  • 201Project created; the ETag header carries its version
    Response fields
    • idstringrequired
    • keystringrequired
    • namestringrequired
    • descriptionstring | nullrequired
    • status"backlog" | "planned" | "started" | "paused" | "completed" | "canceled"required
    • auto_org_idstring | nullrequired

      The linked Auto org; assignments then pass Auto's authority check

    • leadstring | nullrequired
    • ownerstring | nullrequired

      The 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)required
    • fieldsobject[]required

      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[].[].keystringrequired

      pattern ^[a-z][a-z0-9_]{0,39}$

    • fields[].[].labelstringrequired

      min length 1 · max length 60

    • fields[].[].type"text" | "long_text" | "email" | "url" | "phone" | "number" | "date" | "choice" | "boolean"required
    • fields[].[].requiredboolean
    • fields[].[].personalboolean

      The field holds a person's data

    • fields[].[].optionsstring[]

      choice fields only

    • fields[].[].maxinteger

      text and long_text only: the longest value min 1 · max 20000

    • task_countintegerrequired
    • open_countintegerrequired
    • archived_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_atstring (date-time)required
  • 403Missing scope (archiving and changing auto_org_id need scopes: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"
  }'

Get a project

GET/v1/scopes/projects/{project}

scopes:readTested with an API keyscopes_getProject

Scope scopes:read.

Parameters

  • projectpath · stringrequired

Responses

  • 200The project
    Response fields
    • idstringrequired
    • keystringrequired
    • namestringrequired
    • descriptionstring | nullrequired
    • status"backlog" | "planned" | "started" | "paused" | "completed" | "canceled"required
    • auto_org_idstring | nullrequired

      The linked Auto org; assignments then pass Auto's authority check

    • leadstring | nullrequired
    • ownerstring | nullrequired

      The 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)required
    • fieldsobject[]required

      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[].[].keystringrequired

      pattern ^[a-z][a-z0-9_]{0,39}$

    • fields[].[].labelstringrequired

      min length 1 · max length 60

    • fields[].[].type"text" | "long_text" | "email" | "url" | "phone" | "number" | "date" | "choice" | "boolean"required
    • fields[].[].requiredboolean
    • fields[].[].personalboolean

      The field holds a person's data

    • fields[].[].optionsstring[]

      choice fields only

    • fields[].[].maxinteger

      text and long_text only: the longest value min 1 · max 20000

    • task_countintegerrequired
    • open_countintegerrequired
    • archived_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_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"

Archive a project

DELETE/v1/scopes/projects/{project}

scopes:adminTested with an API keyscopes_archiveProject

Scope scopes:admin (scopes:write is not enough). Needs If-Match. Projects are archived, never deleted; the response is the archived project.

Parameters

  • projectpath · stringrequired
  • If-Matchheader · stringrequired

    The version you read, as "3" (the ETag of the GET). A stale version is a 409.

Responses

  • 200Archived project
    Response fields
    • idstringrequired
    • keystringrequired
    • namestringrequired
    • descriptionstring | nullrequired
    • status"backlog" | "planned" | "started" | "paused" | "completed" | "canceled"required
    • auto_org_idstring | nullrequired

      The linked Auto org; assignments then pass Auto's authority check

    • leadstring | nullrequired
    • ownerstring | nullrequired

      The 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)required
    • fieldsobject[]required

      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[].[].keystringrequired

      pattern ^[a-z][a-z0-9_]{0,39}$

    • fields[].[].labelstringrequired

      min length 1 · max length 60

    • fields[].[].type"text" | "long_text" | "email" | "url" | "phone" | "number" | "date" | "choice" | "boolean"required
    • fields[].[].requiredboolean
    • fields[].[].personalboolean

      The field holds a person's data

    • fields[].[].optionsstring[]

      choice fields only

    • fields[].[].maxinteger

      text and long_text only: the longest value min 1 · max 20000

    • task_countintegerrequired
    • open_countintegerrequired
    • archived_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_atstring (date-time)required
  • 403Missing scope (archiving and changing auto_org_id need scopes: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"

Update a project

PATCH/v1/scopes/projects/{project}

scopes:writeTested with an API keyscopes_updateProject

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 · stringrequired
  • If-Matchheader · stringrequired

    The version you read, as "3" (the ETag of the GET). A stale version is a 409.

Request body application/json

  • namestring

    min length 1 · max length 200

  • descriptionstring | null

    max length 20000

  • status"backlog" | "planned" | "started" | "paused" | "completed" | "canceled"
  • auto_org_idstring | null

    null unlinks the Auto org pattern ^[A-Za-z0-9_]{1,64}$

  • leadstring | null
  • target_onstring (date) | null
  • fieldsobject[]

    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[].[].keystringrequired

    pattern ^[a-z][a-z0-9_]{0,39}$

  • fields[].[].labelstringrequired

    min length 1 · max length 60

  • fields[].[].type"text" | "long_text" | "email" | "url" | "phone" | "number" | "date" | "choice" | "boolean"required
  • fields[].[].requiredboolean
  • fields[].[].personalboolean

    The field holds a person's data

  • fields[].[].optionsstring[]

    choice fields only

  • fields[].[].maxinteger

    text and long_text only: the longest value min 1 · max 20000

Responses

  • 200Updated project
    Response fields
    • idstringrequired
    • keystringrequired
    • namestringrequired
    • descriptionstring | nullrequired
    • status"backlog" | "planned" | "started" | "paused" | "completed" | "canceled"required
    • auto_org_idstring | nullrequired

      The linked Auto org; assignments then pass Auto's authority check

    • leadstring | nullrequired
    • ownerstring | nullrequired

      The 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)required
    • fieldsobject[]required

      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[].[].keystringrequired

      pattern ^[a-z][a-z0-9_]{0,39}$

    • fields[].[].labelstringrequired

      min length 1 · max length 60

    • fields[].[].type"text" | "long_text" | "email" | "url" | "phone" | "number" | "date" | "choice" | "boolean"required
    • fields[].[].requiredboolean
    • fields[].[].personalboolean

      The field holds a person's data

    • fields[].[].optionsstring[]

      choice fields only

    • fields[].[].maxinteger

      text and long_text only: the longest value min 1 · max 20000

    • task_countintegerrequired
    • open_countintegerrequired
    • archived_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_atstring (date-time)required
  • 403Missing scope (archiving and changing auto_org_id need scopes: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 '{}'

Activity

Read a project's activity

GET/v1/scopes/projects/{project}/activity

scopes:readTested with an API keyscopes_getProjectActivity

Scope scopes:read. Events in seq order; pass next_after back as after to page.

Parameters

  • projectpath · stringrequired
  • afterquery · integer

    Return items after this cursor (default 0)

  • limitquery · integer

    Page size, 1-500 (default 100)

Responses

  • 200A page of events
    Response fields
    • dataobject[]required
    • data[].[].idstringrequired
    • data[].[].seqintegerrequired
    • data[].[].project_idstringrequired
    • data[].[].task_idstring | nullrequired
    • data[].[].kindstringrequired
    • data[].[].actorstringrequired
    • data[].[].actor_kindstringrequired
    • data[].[].dataanyrequired

      Free-form; shape depends on kind

    • data[].[].created_atstring (date-time)required
    • next_afterinteger | nullrequired

      seq to pass as after for 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"

Read a task's activity

GET/v1/scopes/tasks/{task}/activity

scopes:readTested with an API keyscopes_getTaskActivity

Scope scopes:read. Events in seq order; pass next_after back as after to page.

Parameters

  • taskpath · stringrequired
  • afterquery · integer

    Return items after this cursor (default 0)

  • limitquery · integer

    Page size, 1-500 (default 100)

Responses

  • 200A page of events
    Response fields
    • dataobject[]required
    • data[].[].idstringrequired
    • data[].[].seqintegerrequired
    • data[].[].project_idstringrequired
    • data[].[].task_idstring | nullrequired
    • data[].[].kindstringrequired
    • data[].[].actorstringrequired
    • data[].[].actor_kindstringrequired
    • data[].[].dataanyrequired

      Free-form; shape depends on kind

    • data[].[].created_atstring (date-time)required
    • next_afterinteger | nullrequired

      seq to pass as after for 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"

Graph

Get a project's dependency graph

GET/v1/scopes/projects/{project}/graph

scopes:readTested with an API keyscopes_getGraph

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
    • projectobjectrequired
    • project.idstringrequired
    • project.keystringrequired
    • project.namestringrequired
    • project.descriptionstring | nullrequired
    • project.status"backlog" | "planned" | "started" | "paused" | "completed" | "canceled"required
    • project.auto_org_idstring | nullrequired

      The linked Auto org; assignments then pass Auto's authority check

    • project.leadstring | nullrequired
    • project.ownerstring | nullrequired

      The 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)required
    • project.fieldsobject[]required

      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.

    • project.fields[].[].keystringrequired

      pattern ^[a-z][a-z0-9_]{0,39}$

    • project.fields[].[].labelstringrequired

      min length 1 · max length 60

    • project.fields[].[].type"text" | "long_text" | "email" | "url" | "phone" | "number" | "date" | "choice" | "boolean"required
    • project.fields[].[].requiredboolean
    • project.fields[].[].personalboolean

      The field holds a person's data

    • project.fields[].[].optionsstring[]

      choice fields only

    • project.fields[].[].maxinteger

      text and long_text only: the longest value min 1 · max 20000

    • project.task_countintegerrequired
    • project.open_countintegerrequired
    • project.archived_atstring | null (date-time)required
    • project.versionintegerrequired
    • project.created_atstring (date-time)required
    • project.updated_atstring (date-time)required
    • tasksobject[]required
    • tasks[].[].idstringrequired
    • tasks[].[].seqinteger

      Position in the tenant's task order; next_after on task lists is the last row's seq

    • tasks[].[].project_idstringrequired
    • tasks[].[].numberintegerrequired
    • tasks[].[].identifierstringrequired

      Project key and number, e.g. ENG-12

    • tasks[].[].titlestringrequired
    • tasks[].[].descriptionstring | nullrequired
    • tasks[].[].status"triage" | "backlog" | "todo" | "in_progress" | "in_review" | "done" | "canceled"required

      done and canceled are closed

    • tasks[].[].priorityintegerrequired

      0 none, 1 urgent, 2 high, 3 medium, 4 low min 0 · max 4

    • tasks[].[].estimatenumber | nullrequired
    • tasks[].[].labelsstring[]required
    • tasks[].[].parent_idstring | nullrequired
    • tasks[].[].due_onstring | null (date)required
    • tasks[].[].start_onstring | null (date)required
    • tasks[].[].fieldsobjectrequired

      Values for the project's fields, by key, checked against its definitions. On update, only the keys given change; null clears one.

    • tasks[].[].assigneeobject | object | nullrequired
    • tasks[].[].assigned_atstring | null (date-time)required
    • tasks[].[].started_atstring | null (date-time)required
    • tasks[].[].completed_atstring | null (date-time)required
    • tasks[].[].canceled_atstring | null (date-time)required
    • tasks[].[].blockedbooleanrequired

      The task has an open blocker

    • tasks[].[].archived_atstring | null (date-time)required
    • tasks[].[].versionintegerrequired
    • tasks[].[].created_atstring (date-time)required
    • tasks[].[].updated_atstring (date-time)required
    • edgesobject[]required
    • edges[].[].fromstringrequired

      depends_on_id (the blocker)

    • edges[].[].tostringrequired

      task_id (the dependent task)

    • edges[].[].kind"blocks" | "relates" | "duplicates"required
    • orderstring[]required

      Task ids in topological order

    • critical_pathstring[]required

      Task 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"

Ready

List tasks ready to start

GET/v1/scopes/projects/{project}/ready

scopes:readTested with an API keyscopes_listReady

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 · stringrequired
  • unassignedquery · boolean

Responses

  • 200Ready tasks
    Response fields
    • dataobject[]required
    • data[].[].idstringrequired
    • data[].[].seqinteger

      Position in the tenant's task order; next_after on task lists is the last row's seq

    • data[].[].project_idstringrequired
    • data[].[].numberintegerrequired
    • data[].[].identifierstringrequired

      Project key and number, e.g. ENG-12

    • data[].[].titlestringrequired
    • data[].[].descriptionstring | nullrequired
    • data[].[].status"triage" | "backlog" | "todo" | "in_progress" | "in_review" | "done" | "canceled"required

      done and canceled are closed

    • data[].[].priorityintegerrequired

      0 none, 1 urgent, 2 high, 3 medium, 4 low min 0 · max 4

    • data[].[].estimatenumber | nullrequired
    • data[].[].labelsstring[]required
    • data[].[].parent_idstring | nullrequired
    • data[].[].due_onstring | null (date)required
    • data[].[].start_onstring | null (date)required
    • data[].[].fieldsobjectrequired

      Values for the project's fields, by key, checked against its definitions. On update, only the keys given change; null clears one.

    • data[].[].assigneeobject | object | nullrequired
    • data[].[].assigned_atstring | null (date-time)required
    • data[].[].started_atstring | null (date-time)required
    • data[].[].completed_atstring | null (date-time)required
    • data[].[].canceled_atstring | null (date-time)required
    • data[].[].blockedbooleanrequired

      The task has an open blocker

    • data[].[].archived_atstring | null (date-time)required
    • data[].[].versionintegerrequired
    • data[].[].created_atstring (date-time)required
    • data[].[].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"

Tasks

List a project's tasks

GET/v1/scopes/projects/{project}/tasks

scopes:readTested with an API keyscopes_listProjectTasks

Scope scopes:read. The filters of listTasks, within this project. Pass next_after back as after to page.

Parameters

  • projectpath · stringrequired
  • statusquery · string

    One status, or several separated by commas (todo,in_progress)

  • assigneequery · string

    Assignee ref or principal

  • labelquery · string
  • parent_idquery · string
  • fieldquery · string

    One field's value, as <key>:<value> (compared as text), e.g. stage:contacted. Needs project_id on listTasks. Request logs keep URLs, so only a choice, boolean, number or date field not marked personal may be filtered; any other field is refused with 422 (people control their data).

  • openquery · boolean

    Only tasks that are not done or canceled

  • include_archivedquery · boolean
  • afterquery · integer

    Return items after this cursor (default 0)

  • limitquery · integer

    Page size, 1-200 (default 50)

Responses

  • 200A page of tasks
    Response fields
    • dataobject[]required
    • data[].[].idstringrequired
    • data[].[].seqinteger

      Position in the tenant's task order; next_after on task lists is the last row's seq

    • data[].[].project_idstringrequired
    • data[].[].numberintegerrequired
    • data[].[].identifierstringrequired

      Project key and number, e.g. ENG-12

    • data[].[].titlestringrequired
    • data[].[].descriptionstring | nullrequired
    • data[].[].status"triage" | "backlog" | "todo" | "in_progress" | "in_review" | "done" | "canceled"required

      done and canceled are closed

    • data[].[].priorityintegerrequired

      0 none, 1 urgent, 2 high, 3 medium, 4 low min 0 · max 4

    • data[].[].estimatenumber | nullrequired
    • data[].[].labelsstring[]required
    • data[].[].parent_idstring | nullrequired
    • data[].[].due_onstring | null (date)required
    • data[].[].start_onstring | null (date)required
    • data[].[].fieldsobjectrequired

      Values for the project's fields, by key, checked against its definitions. On update, only the keys given change; null clears one.

    • data[].[].assigneeobject | object | nullrequired
    • data[].[].assigned_atstring | null (date-time)required
    • data[].[].started_atstring | null (date-time)required
    • data[].[].completed_atstring | null (date-time)required
    • data[].[].canceled_atstring | null (date-time)required
    • data[].[].blockedbooleanrequired

      The task has an open blocker

    • data[].[].archived_atstring | null (date-time)required
    • data[].[].versionintegerrequired
    • data[].[].created_atstring (date-time)required
    • data[].[].updated_atstring (date-time)required
    • next_afterinteger | nullrequired

      Cursor to pass as after for 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"

Create a task in a project

POST/v1/scopes/projects/{project}/tasks

scopes:writeTested with an API keyscopes_createTask

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

  • titlestringrequired

    min length 1 · max length 1024

  • descriptionstring | null

    max length 100000

  • status"triage" | "backlog" | "todo" | "in_progress" | "in_review" | "done" | "canceled"

    done and canceled are closed

  • priorityinteger

    0 none, 1 urgent, 2 high, 3 medium, 4 low min 0 · max 4

  • estimatenumber | null

    min 0 · max 10000

  • labelsstring[]

    Stored lowercase, without duplicates

  • parent_idstring | null

    pattern ^tsk_[a-f0-9]{32}$

  • due_onstring (date) | null
  • start_onstring (date) | null
  • assigneeobject | object | null
  • fieldsobject

    Values 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 ETag header carries its version
    Response fields
    • idstringrequired
    • seqinteger

      Position in the tenant's task order; next_after on task lists is the last row's seq

    • project_idstringrequired
    • numberintegerrequired
    • identifierstringrequired

      Project key and number, e.g. ENG-12

    • titlestringrequired
    • descriptionstring | nullrequired
    • status"triage" | "backlog" | "todo" | "in_progress" | "in_review" | "done" | "canceled"required

      done and canceled are closed

    • priorityintegerrequired

      0 none, 1 urgent, 2 high, 3 medium, 4 low min 0 · max 4

    • estimatenumber | nullrequired
    • labelsstring[]required
    • parent_idstring | nullrequired
    • due_onstring | null (date)required
    • start_onstring | null (date)required
    • fieldsobjectrequired

      Values for the project's fields, by key, checked against its definitions. On update, only the keys given change; null clears one.

    • assigneeobject | object | nullrequired
    • assigned_atstring | null (date-time)required
    • started_atstring | null (date-time)required
    • completed_atstring | null (date-time)required
    • canceled_atstring | null (date-time)required
    • blockedbooleanrequired

      The task has an open blocker

    • archived_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_atstring (date-time)required
  • 403Missing scope (archiving and changing auto_org_id need scopes: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"
  }'

List tasks

GET/v1/scopes/tasks

scopes:readTested with an API keyscopes_listTasks

Scope scopes:read. Filters combine; archived tasks are hidden unless include_archived=true. Pass next_after back as after to page.

Parameters

  • project_idquery · string
  • statusquery · string

    One status, or several separated by commas (todo,in_progress)

  • assigneequery · string

    Assignee ref or principal

  • labelquery · string
  • parent_idquery · string
  • fieldquery · string

    One field's value, as <key>:<value> (compared as text), e.g. stage:contacted. Needs project_id on listTasks. Request logs keep URLs, so only a choice, boolean, number or date field not marked personal may be filtered; any other field is refused with 422 (people control their data).

  • openquery · boolean

    Only tasks that are not done or canceled

  • include_archivedquery · boolean
  • afterquery · integer

    Return items after this cursor (default 0)

  • limitquery · integer

    Page size, 1-200 (default 50)

Responses

  • 200A page of tasks
    Response fields
    • dataobject[]required
    • data[].[].idstringrequired
    • data[].[].seqinteger

      Position in the tenant's task order; next_after on task lists is the last row's seq

    • data[].[].project_idstringrequired
    • data[].[].numberintegerrequired
    • data[].[].identifierstringrequired

      Project key and number, e.g. ENG-12

    • data[].[].titlestringrequired
    • data[].[].descriptionstring | nullrequired
    • data[].[].status"triage" | "backlog" | "todo" | "in_progress" | "in_review" | "done" | "canceled"required

      done and canceled are closed

    • data[].[].priorityintegerrequired

      0 none, 1 urgent, 2 high, 3 medium, 4 low min 0 · max 4

    • data[].[].estimatenumber | nullrequired
    • data[].[].labelsstring[]required
    • data[].[].parent_idstring | nullrequired
    • data[].[].due_onstring | null (date)required
    • data[].[].start_onstring | null (date)required
    • data[].[].fieldsobjectrequired

      Values for the project's fields, by key, checked against its definitions. On update, only the keys given change; null clears one.

    • data[].[].assigneeobject | object | nullrequired
    • data[].[].assigned_atstring | null (date-time)required
    • data[].[].started_atstring | null (date-time)required
    • data[].[].completed_atstring | null (date-time)required
    • data[].[].canceled_atstring | null (date-time)required
    • data[].[].blockedbooleanrequired

      The task has an open blocker

    • data[].[].archived_atstring | null (date-time)required
    • data[].[].versionintegerrequired
    • data[].[].created_atstring (date-time)required
    • data[].[].updated_atstring (date-time)required
    • next_afterinteger | nullrequired

      Cursor to pass as after for the next page; null when this page was not full

  • 403Missing scope (archiving and changing auto_org_id need scopes: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"

Get a task

GET/v1/scopes/tasks/{task}

scopes:readTested with an API keyscopes_getTask

Scope scopes:read. task is a tsk_ id or an identifier such as ENG-12.

Parameters

  • taskpath · stringrequired

Responses

  • 200The task
    Response fields
    • idstringrequired
    • seqinteger

      Position in the tenant's task order; next_after on task lists is the last row's seq

    • project_idstringrequired
    • numberintegerrequired
    • identifierstringrequired

      Project key and number, e.g. ENG-12

    • titlestringrequired
    • descriptionstring | nullrequired
    • status"triage" | "backlog" | "todo" | "in_progress" | "in_review" | "done" | "canceled"required

      done and canceled are closed

    • priorityintegerrequired

      0 none, 1 urgent, 2 high, 3 medium, 4 low min 0 · max 4

    • estimatenumber | nullrequired
    • labelsstring[]required
    • parent_idstring | nullrequired
    • due_onstring | null (date)required
    • start_onstring | null (date)required
    • fieldsobjectrequired

      Values for the project's fields, by key, checked against its definitions. On update, only the keys given change; null clears one.

    • assigneeobject | object | nullrequired
    • assigned_atstring | null (date-time)required
    • started_atstring | null (date-time)required
    • completed_atstring | null (date-time)required
    • canceled_atstring | null (date-time)required
    • blockedbooleanrequired

      The task has an open blocker

    • archived_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_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"

Archive a task

DELETE/v1/scopes/tasks/{task}

scopes:adminTested with an API keyscopes_archiveTask

Scope scopes:admin (scopes:write is not enough). Needs If-Match. Tasks are archived, never deleted; the response is the archived task.

Parameters

  • taskpath · stringrequired
  • If-Matchheader · stringrequired

    The version you read, as "3" (the ETag of the GET). A stale version is a 409.

Responses

  • 200Archived task
    Response fields
    • idstringrequired
    • seqinteger

      Position in the tenant's task order; next_after on task lists is the last row's seq

    • project_idstringrequired
    • numberintegerrequired
    • identifierstringrequired

      Project key and number, e.g. ENG-12

    • titlestringrequired
    • descriptionstring | nullrequired
    • status"triage" | "backlog" | "todo" | "in_progress" | "in_review" | "done" | "canceled"required

      done and canceled are closed

    • priorityintegerrequired

      0 none, 1 urgent, 2 high, 3 medium, 4 low min 0 · max 4

    • estimatenumber | nullrequired
    • labelsstring[]required
    • parent_idstring | nullrequired
    • due_onstring | null (date)required
    • start_onstring | null (date)required
    • fieldsobjectrequired

      Values for the project's fields, by key, checked against its definitions. On update, only the keys given change; null clears one.

    • assigneeobject | object | nullrequired
    • assigned_atstring | null (date-time)required
    • started_atstring | null (date-time)required
    • completed_atstring | null (date-time)required
    • canceled_atstring | null (date-time)required
    • blockedbooleanrequired

      The task has an open blocker

    • archived_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_atstring (date-time)required
  • 403Missing scope (archiving and changing auto_org_id need scopes: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"

Update a task or move its status

PATCH/v1/scopes/tasks/{task}

scopes:writeTested with an API keyscopes_updateTask

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 · stringrequired
  • If-Matchheader · stringrequired

    The version you read, as "3" (the ETag of the GET). A stale version is a 409.

Request body application/json

  • titlestring

    min length 1 · max length 1024

  • descriptionstring | null

    max length 100000

  • status"triage" | "backlog" | "todo" | "in_progress" | "in_review" | "done" | "canceled"

    done and canceled are closed

  • priorityinteger

    0 none, 1 urgent, 2 high, 3 medium, 4 low min 0 · max 4

  • estimatenumber | null

    min 0 · max 10000

  • labelsstring[]

    Stored lowercase, without duplicates

  • parent_idstring | null

    pattern ^tsk_[a-f0-9]{32}$

  • due_onstring (date) | null
  • start_onstring (date) | null
  • fieldsobject

    Values for the project's fields, by key, checked against its definitions. On update, only the keys given change; null clears one.

  • forceboolean

    Start the task even though it has an open blocker

  • reasonstring

    Recorded in the activity min length 1 · max length 4000

Responses

  • 200Updated task
    Response fields
    • idstringrequired
    • seqinteger

      Position in the tenant's task order; next_after on task lists is the last row's seq

    • project_idstringrequired
    • numberintegerrequired
    • identifierstringrequired

      Project key and number, e.g. ENG-12

    • titlestringrequired
    • descriptionstring | nullrequired
    • status"triage" | "backlog" | "todo" | "in_progress" | "in_review" | "done" | "canceled"required

      done and canceled are closed

    • priorityintegerrequired

      0 none, 1 urgent, 2 high, 3 medium, 4 low min 0 · max 4

    • estimatenumber | nullrequired
    • labelsstring[]required
    • parent_idstring | nullrequired
    • due_onstring | null (date)required
    • start_onstring | null (date)required
    • fieldsobjectrequired

      Values for the project's fields, by key, checked against its definitions. On update, only the keys given change; null clears one.

    • assigneeobject | object | nullrequired
    • assigned_atstring | null (date-time)required
    • started_atstring | null (date-time)required
    • completed_atstring | null (date-time)required
    • canceled_atstring | null (date-time)required
    • blockedbooleanrequired

      The task has an open blocker

    • archived_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_atstring (date-time)required
  • 403Missing scope (archiving and changing auto_org_id need scopes: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 '{}'

Assignee

Assign a task to an agent or a person

PUT/v1/scopes/tasks/{task}/assignee

scopes:writeTested with an API keyscopes_assignTask

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 · stringrequired
  • If-Matchheader · stringrequired

    The version you read, as "3" (the ETag of the GET). A stale version is a 409.

Request body application/json

  • assigneeobject | objectrequired

    An agent on Henry, Fleets or Flocks, or a person. principal is who acts as the assignee at the gateway (defaults to ref).

  • reasonstring

    Sent to Auto's authority check and recorded in the activity min length 1 · max length 4000

Responses

  • 200The assigned task
    Response fields
    • idstringrequired
    • seqinteger

      Position in the tenant's task order; next_after on task lists is the last row's seq

    • project_idstringrequired
    • numberintegerrequired
    • identifierstringrequired

      Project key and number, e.g. ENG-12

    • titlestringrequired
    • descriptionstring | nullrequired
    • status"triage" | "backlog" | "todo" | "in_progress" | "in_review" | "done" | "canceled"required

      done and canceled are closed

    • priorityintegerrequired

      0 none, 1 urgent, 2 high, 3 medium, 4 low min 0 · max 4

    • estimatenumber | nullrequired
    • labelsstring[]required
    • parent_idstring | nullrequired
    • due_onstring | null (date)required
    • start_onstring | null (date)required
    • fieldsobjectrequired

      Values for the project's fields, by key, checked against its definitions. On update, only the keys given change; null clears one.

    • assigneeobject | object | nullrequired
    • assigned_atstring | null (date-time)required
    • started_atstring | null (date-time)required
    • completed_atstring | null (date-time)required
    • canceled_atstring | null (date-time)required
    • blockedbooleanrequired

      The task has an open blocker

    • archived_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_atstring (date-time)required
  • 403Missing scope (archiving and changing auto_org_id need scopes: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"
    }
  }'

Unassign a task

DELETE/v1/scopes/tasks/{task}/assignee

scopes:writeTested with an API keyscopes_unassignTask

Scope scopes:write. Needs If-Match. Ends the current assignment term.

Parameters

  • taskpath · stringrequired
  • If-Matchheader · stringrequired

    The version you read, as "3" (the ETag of the GET). A stale version is a 409.

Responses

  • 200The unassigned task
    Response fields
    • idstringrequired
    • seqinteger

      Position in the tenant's task order; next_after on task lists is the last row's seq

    • project_idstringrequired
    • numberintegerrequired
    • identifierstringrequired

      Project key and number, e.g. ENG-12

    • titlestringrequired
    • descriptionstring | nullrequired
    • status"triage" | "backlog" | "todo" | "in_progress" | "in_review" | "done" | "canceled"required

      done and canceled are closed

    • priorityintegerrequired

      0 none, 1 urgent, 2 high, 3 medium, 4 low min 0 · max 4

    • estimatenumber | nullrequired
    • labelsstring[]required
    • parent_idstring | nullrequired
    • due_onstring | null (date)required
    • start_onstring | null (date)required
    • fieldsobjectrequired

      Values for the project's fields, by key, checked against its definitions. On update, only the keys given change; null clears one.

    • assigneeobject | object | nullrequired
    • assigned_atstring | null (date-time)required
    • started_atstring | null (date-time)required
    • completed_atstring | null (date-time)required
    • canceled_atstring | null (date-time)required
    • blockedbooleanrequired

      The task has an open blocker

    • archived_atstring | null (date-time)required
    • versionintegerrequired
    • created_atstring (date-time)required
    • updated_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"

Assignments

List a task's assignment terms

GET/v1/scopes/tasks/{task}/assignments

scopes:readTested with an API keyscopes_listAssignments

Scope scopes:read. Newest first, with the authority check outcome of each.

Parameters

  • taskpath · stringrequired

Responses

  • 200Assignment terms
    Response fields
    • dataobject[]required
    • data[].[].idstringrequired
    • data[].[].task_idstringrequired
    • data[].[].assigneeobject | objectrequired

      An agent on Henry, Fleets or Flocks, or a person. principal is who acts as the assignee at the gateway (defaults to ref).

    • data[].[].started_atstring (date-time)required
    • data[].[].ended_atstring | null (date-time)required
    • data[].[].assigned_bystringrequired
    • data[].[].authorityobjectrequired

      Auto's authority check; checked is false for projects without an Auto org

    • data[].[].authority.checkedbooleanrequired
    • data[].[].authority.outcomestring | nullrequired
    • data[].[].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"

Comments

List a task's comments

GET/v1/scopes/tasks/{task}/comments

scopes:readTested with an API keyscopes_listComments

Scope scopes:read. Oldest first.

Parameters

  • taskpath · stringrequired

Responses

  • 200Comments
    Response fields
    • dataobject[]required
    • data[].[].idstringrequired
    • data[].[].task_idstringrequired
    • data[].[].bodystringrequired
    • data[].[].authorstringrequired
    • data[].[].author_kindstringrequired
    • data[].[].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"

Comment on a task

POST/v1/scopes/tasks/{task}/comments

scopes:writeTested with an API keyscopes_addComment

Scope scopes:write. The author is the calling principal.

Parameters

  • taskpath · stringrequired

Request body application/json

  • bodystringrequired

    min length 1 · max length 50000

Responses

  • 201Comment created
    Response fields
    • idstringrequired
    • task_idstringrequired
    • bodystringrequired
    • authorstringrequired
    • author_kindstringrequired
    • created_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"
  }'

Whoami

Show the identity Scopes sees for your credential

GET/v1/scopes/whoami

scopes:readTested with an API keyscopes_whoami

Scope scopes:read.

Responses

  • 200Org, principal, principal kind and scopes as the gateway signed them
    Response fields
    • orgstringrequired
    • principalstringrequired
    • kind"api_key" | "m2m_token" | "bridge_session"required
    • scopesstring[]required
  • 403Missing scope (archiving and changing auto_org_id need scopes: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"

Workload

Show open work per assignee

GET/v1/scopes/workload

scopes:readTested with an API keyscopes_getWorkload

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[]required
    • data[].[].assigneeobject | objectrequired

      An agent on Henry, Fleets or Flocks, or a person. principal is who acts as the assignee at the gateway (defaults to ref).

    • data[].[].openintegerrequired
    • data[].[].in_progressintegerrequired
    • data[].[].blockedintegerrequired
    • data[].[].projectsanyrequired

      The projects the assignee's open tasks are in

  • 403Missing scope (archiving and changing auto_org_id need scopes: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"

L1fe AI Inc. · Built from Genesis 0.3.1 and the live gateway on 2026-10-25. Support