OneOS Docs
Genesis 0.3.1 Console

API reference

Graphs

Shipping code from a repository: checks and statuses on commits, launches, deploys and what is live.

Operations
13
Base path
https://os.one.ml/api/v1/graphs
Scopes
graphs:read graphs:write
API keys
—
SDK
genesis.call('graphs_createCiSubscription', …) · helpers under genesis.graphs
CLI
genesis graphs
MCP
12 tools; the other 1 through genesis_call

Operations

OperationEndpointAPI key
The OneOS CI subscription Graphs needs for this organizationPOST/ci-subscription—
Launch a commitPOST/launches—
Get a launchGET/launches/{launch}—
Record a launch's deploy and make it livePOST/launches/{launch}/deploy—
Record that a launch was taken downPOST/launches/{launch}/remove—
Attach the CI run that builds a launchPOST/launches/{launch}/run—
List Graphs reposGET/repos—
Link a Loom repo to GraphsPOST/repos—
Get a Graphs repo, its live URL and recent launchesGET/repos/{repo}—
List the checks on a repo's commitsGET/repos/{repo}/checks—
List a repo's launchesGET/repos/{repo}/launches—
Post a status for a commitPOST/repos/{repo}/statuses—
Show the identity, environment and selected project Graphs sees for your credentialGET/whoami—

Ci subscription

The OneOS CI subscription Graphs needs for this organization

POST/v1/graphs/ci-subscription

graphs:writegraphs_createCiSubscription

Scope graphs:write. Graphs' intake URL for this organization's OneOS CI run events, the events it needs and the organization's own HMAC secret for them. The caller registers it once with OneOS CI (POST /v1/ci/subscriptions); Graphs holds no CI credential. The secret lets its holder sign this organization's CI events, so this operation is never offered to models through the MCP.

Responses

  • 200The subscription to register
    Response fields
    • urlstring (uri)required

      Graphs' intake URL for this organization

    • secretstringrequired

      This organization's HMAC secret for its CI events

    • eventsstring[]required
  • 401No valid credential
  • 403The credential lacks the scope, or the project is not yours
  • 503CI events are not configured
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/graphs/ci-subscription" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Launches

Launch a commit

POST/v1/graphs/launches

graphs:writeIdempotency-Key optionalgraphs_createLaunch

Scope graphs:write. Starts taking commit sha of repo_id to a live URL on host (Hives by default). The launch waits on the check check_name (default oneos-ci): building until it completes, then ready when it is green or failed when it is not. An Idempotency-Key (1-128 of A-Z a-z 0-9 : . _ -) makes a retry return the same launch (200); the same key for another repo or commit is a 409 idempotency_mismatch.

Parameters

  • Idempotency-Keyheader · string

Request body application/json

  • repo_idstringrequired

    pattern ^gr_[a-z2-7]{26}$

  • shastringrequired

    A full 40-character commit SHA pattern ^[0-9a-f]{40}$

  • refstring

    pattern ^[A-Za-z0-9._/-]{1,255}$

  • host"hives" | "vercel" | "cloudflare" | "github-pages" | "netlify"

    default "hives"

  • domainstring | null

    A domain the launch goes live at (lower case) max length 253

  • check_nameobject

    Up to 100 characters; oneos-ci and oneos-ci/<job> are OneOS CI's default "oneos-ci"

Responses

  • 200The launch this Idempotency-Key already created
    Response fields
    • idstringrequired

      pattern ^gl_[a-z2-7]{26}$

    • repo_idstringrequired
    • shastringrequired

      A full 40-character commit SHA pattern ^[0-9a-f]{40}$

    • refstring | null
    • check_namestringrequired
    • host"hives" | "vercel" | "cloudflare" | "github-pages" | "netlify"required

      default "hives"

    • domainstring | null
    • state"building" | "ready" | "failed" | "live" | "superseded" | "removed"required
    • ci_run_idstring | null
    • deploy_idstring | null
    • urlstring | null
    • failurestring | null

      Why the launch failed

    • created_bystringrequired

      The principal that started the launch

    • created_atstring (date-time)required
    • updated_atstring (date-time)required
    • ready_atstring | null (date-time)
    • live_atstring | null (date-time)
  • 201Launch created
    Response fields
    • idstringrequired

      pattern ^gl_[a-z2-7]{26}$

    • repo_idstringrequired
    • shastringrequired

      A full 40-character commit SHA pattern ^[0-9a-f]{40}$

    • refstring | null
    • check_namestringrequired
    • host"hives" | "vercel" | "cloudflare" | "github-pages" | "netlify"required

      default "hives"

    • domainstring | null
    • state"building" | "ready" | "failed" | "live" | "superseded" | "removed"required
    • ci_run_idstring | null
    • deploy_idstring | null
    • urlstring | null
    • failurestring | null

      Why the launch failed

    • created_bystringrequired

      The principal that started the launch

    • created_atstring (date-time)required
    • updated_atstring (date-time)required
    • ready_atstring | null (date-time)
    • live_atstring | null (date-time)
  • 401No valid credential
  • 403The credential lacks the scope, or the project is not yours
  • 404No such repo or launch in this org, project and environment
  • 409launch_building, launch_failed, already_live, run_mismatch or idempotency_mismatch
  • 422The request is invalid
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/graphs/launches" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "repo_id": "string",
    "sha": "string"
  }'

Get a launch

GET/v1/graphs/launches/{launch}

graphs:readgraphs_getLaunch

Scope graphs:read.

Parameters

  • launchpath · stringrequired

Responses

  • 200The launch
    Response fields
    • idstringrequired

      pattern ^gl_[a-z2-7]{26}$

    • repo_idstringrequired
    • shastringrequired

      A full 40-character commit SHA pattern ^[0-9a-f]{40}$

    • refstring | null
    • check_namestringrequired
    • host"hives" | "vercel" | "cloudflare" | "github-pages" | "netlify"required

      default "hives"

    • domainstring | null
    • state"building" | "ready" | "failed" | "live" | "superseded" | "removed"required
    • ci_run_idstring | null
    • deploy_idstring | null
    • urlstring | null
    • failurestring | null

      Why the launch failed

    • created_bystringrequired

      The principal that started the launch

    • created_atstring (date-time)required
    • updated_atstring (date-time)required
    • ready_atstring | null (date-time)
    • live_atstring | null (date-time)
  • 401No valid credential
  • 403The credential lacks the scope, or the project is not yours
  • 404No such repo or launch in this org, project and environment
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/graphs/launches/$LAUNCH" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

List a repo's launches

GET/v1/graphs/repos/{repo}/launches

graphs:readgraphs_listLaunches

Scope graphs:read. Newest first.

Parameters

  • repopath · stringrequired

Responses

  • 200Launches
    Response fields
    • dataobject[]required
    • data[].[].idstringrequired

      pattern ^gl_[a-z2-7]{26}$

    • data[].[].repo_idstringrequired
    • data[].[].shastringrequired

      A full 40-character commit SHA pattern ^[0-9a-f]{40}$

    • data[].[].refstring | null
    • data[].[].check_namestringrequired
    • data[].[].host"hives" | "vercel" | "cloudflare" | "github-pages" | "netlify"required

      default "hives"

    • data[].[].domainstring | null
    • data[].[].state"building" | "ready" | "failed" | "live" | "superseded" | "removed"required
    • data[].[].ci_run_idstring | null
    • data[].[].deploy_idstring | null
    • data[].[].urlstring | null
    • data[].[].failurestring | null

      Why the launch failed

    • data[].[].created_bystringrequired

      The principal that started the launch

    • data[].[].created_atstring (date-time)required
    • data[].[].updated_atstring (date-time)required
    • data[].[].ready_atstring | null (date-time)
    • data[].[].live_atstring | null (date-time)
  • 401No valid credential
  • 403The credential lacks the scope, or the project is not yours
  • 404No such repo or launch in this org, project and environment
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/graphs/repos/$REPO/launches" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Deploy

Record a launch's deploy and make it live

POST/v1/graphs/launches/{launch}/deploy

graphs:writegraphs_recordLaunchDeploy

Scope graphs:write. Records the deploy (deploy_id, url) of a ready launch and makes it live. A launch still building is a 409 launch_building, a failed one a 409 launch_failed, one already live a 409 already_live (recording the same deploy again returns the launch). On Hives the URL must be https://pub-<id>.plays.sh/, https://site-<id>.plays.sh/ or https://<the launch's domain>/ (422 otherwise). A live launch of the same repo with the same deploy_id (its site updated in place) becomes superseded; deploys of one repo take turns, so only one of them is live.

Parameters

  • launchpath · stringrequired

Request body application/json

  • deploy_idstringrequired

    pattern ^[A-Za-z0-9_.:-]{1,128}$

  • urlstringrequired

    https, with no query or fragment pattern ^https://[^\s?#]{1,500}$

Responses

  • 200The launch, now live
    Response fields
    • idstringrequired

      pattern ^gl_[a-z2-7]{26}$

    • repo_idstringrequired
    • shastringrequired

      A full 40-character commit SHA pattern ^[0-9a-f]{40}$

    • refstring | null
    • check_namestringrequired
    • host"hives" | "vercel" | "cloudflare" | "github-pages" | "netlify"required

      default "hives"

    • domainstring | null
    • state"building" | "ready" | "failed" | "live" | "superseded" | "removed"required
    • ci_run_idstring | null
    • deploy_idstring | null
    • urlstring | null
    • failurestring | null

      Why the launch failed

    • created_bystringrequired

      The principal that started the launch

    • created_atstring (date-time)required
    • updated_atstring (date-time)required
    • ready_atstring | null (date-time)
    • live_atstring | null (date-time)
  • 401No valid credential
  • 403The credential lacks the scope, or the project is not yours
  • 404No such repo or launch in this org, project and environment
  • 409launch_building, launch_failed, already_live, run_mismatch or idempotency_mismatch
  • 422The request is invalid
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/graphs/launches/$LAUNCH/deploy" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "deploy_id": "string",
    "url": "string"
  }'

Remove

Record that a launch was taken down

POST/v1/graphs/launches/{launch}/remove

graphs:writegraphs_removeLaunch

Scope graphs:write. Records that the launch's site was taken down (the launcher deletes the site first), so the repo no longer shows it live; idempotent. A superseded launch shares the site of the launch that superseded it and is a 409 launch_superseded (remove the live launch instead).

Parameters

  • launchpath · stringrequired

Responses

  • 200The launch, now removed
    Response fields
    • idstringrequired

      pattern ^gl_[a-z2-7]{26}$

    • repo_idstringrequired
    • shastringrequired

      A full 40-character commit SHA pattern ^[0-9a-f]{40}$

    • refstring | null
    • check_namestringrequired
    • host"hives" | "vercel" | "cloudflare" | "github-pages" | "netlify"required

      default "hives"

    • domainstring | null
    • state"building" | "ready" | "failed" | "live" | "superseded" | "removed"required
    • ci_run_idstring | null
    • deploy_idstring | null
    • urlstring | null
    • failurestring | null

      Why the launch failed

    • created_bystringrequired

      The principal that started the launch

    • created_atstring (date-time)required
    • updated_atstring (date-time)required
    • ready_atstring | null (date-time)
    • live_atstring | null (date-time)
  • 401No valid credential
  • 403The credential lacks the scope, or the project is not yours
  • 404No such repo or launch in this org, project and environment
  • 409launch_building, launch_failed, already_live, run_mismatch or idempotency_mismatch
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/graphs/launches/$LAUNCH/remove" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Run

Attach the CI run that builds a launch

POST/v1/graphs/launches/{launch}/run

graphs:writegraphs_attachLaunchRun

Scope graphs:write. Names the OneOS CI run (ci_run_id) building this launch's commit; a pointer for views, since readiness comes only from CI's signed events. Naming another run than the one recorded is a 409 run_mismatch.

Parameters

  • launchpath · stringrequired

Request body application/json

  • ci_run_idstringrequired

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

Responses

  • 200The launch
    Response fields
    • idstringrequired

      pattern ^gl_[a-z2-7]{26}$

    • repo_idstringrequired
    • shastringrequired

      A full 40-character commit SHA pattern ^[0-9a-f]{40}$

    • refstring | null
    • check_namestringrequired
    • host"hives" | "vercel" | "cloudflare" | "github-pages" | "netlify"required

      default "hives"

    • domainstring | null
    • state"building" | "ready" | "failed" | "live" | "superseded" | "removed"required
    • ci_run_idstring | null
    • deploy_idstring | null
    • urlstring | null
    • failurestring | null

      Why the launch failed

    • created_bystringrequired

      The principal that started the launch

    • created_atstring (date-time)required
    • updated_atstring (date-time)required
    • ready_atstring | null (date-time)
    • live_atstring | null (date-time)
  • 401No valid credential
  • 403The credential lacks the scope, or the project is not yours
  • 404No such repo or launch in this org, project and environment
  • 409launch_building, launch_failed, already_live, run_mismatch or idempotency_mismatch
  • 422The request is invalid
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/graphs/launches/$LAUNCH/run" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "ci_run_id": "string"
  }'

Repos

List Graphs repos

GET/v1/graphs/repos

graphs:readgraphs_listRepos

Scope graphs:read. The repos in your selected project, newest first.

Responses

  • 200Repos
    Response fields
    • dataobject[]required
    • data[].[].idstringrequired

      pattern ^gr_[a-z2-7]{26}$

    • data[].[].namestringrequired
    • data[].[].project_idstringrequired
    • data[].[].forgestringrequired

      Where the code lives (loom)

    • data[].[].forge_repo_idstringrequired

      The linked repo in the forge (lr_… for Loom)

    • data[].[].descriptionstring | null
    • data[].[].default_branchstringrequired
    • data[].[].created_bystringrequired

      The principal that linked the repo

    • data[].[].created_atstring (date-time)required
    • data[].[].updated_atstring (date-time)required
  • 401No valid credential
  • 403The credential lacks the scope, or the project is not yours
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/graphs/repos" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Link a Loom repo to Graphs

POST/v1/graphs/repos

graphs:writegraphs_createRepo

Scope graphs:write. Links the Loom repo loom_repo_id (it must be in your org and selected project) as a Graphs repo; Graphs stores no git, and Loom decides who may read the code. Linking the same Loom repo again returns the existing Graphs repo (200). With no selected project, a 403.

Request body application/json

  • loom_repo_idstringrequired

    The Loom repo to link pattern ^lr_[a-z2-7]{26}$

  • namestringrequired

    1–64 of a-z, 0-9 and - pattern ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$

  • descriptionstring | null

    Kept to 500 characters

  • default_branchstring

    pattern ^[A-Za-z0-9._/-]{1,255}$

Responses

  • 200The Graphs repo already linked to this Loom repo
    Response fields
    • idstringrequired

      pattern ^gr_[a-z2-7]{26}$

    • namestringrequired
    • project_idstringrequired
    • forgestringrequired

      Where the code lives (loom)

    • forge_repo_idstringrequired

      The linked repo in the forge (lr_… for Loom)

    • descriptionstring | null
    • default_branchstringrequired
    • created_bystringrequired

      The principal that linked the repo

    • created_atstring (date-time)required
    • updated_atstring (date-time)required
  • 201Repo linked
    Response fields
    • idstringrequired

      pattern ^gr_[a-z2-7]{26}$

    • namestringrequired
    • project_idstringrequired
    • forgestringrequired

      Where the code lives (loom)

    • forge_repo_idstringrequired

      The linked repo in the forge (lr_… for Loom)

    • descriptionstring | null
    • default_branchstringrequired
    • created_bystringrequired

      The principal that linked the repo

    • created_atstring (date-time)required
    • updated_atstring (date-time)required
  • 401No valid credential
  • 403The credential lacks the scope, or the project is not yours
  • 404No such repo or launch in this org, project and environment
  • 409launch_building, launch_failed, already_live, run_mismatch or idempotency_mismatch
  • 422The request is invalid
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/graphs/repos" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "loom_repo_id": "string",
    "name": "string"
  }'

Get a Graphs repo, its live URL and recent launches

GET/v1/graphs/repos/{repo}

graphs:readgraphs_getRepo

Scope graphs:read.

Parameters

  • repopath · stringrequired

Responses

  • 200The repo, its live URL (or null) and its most recent launches
    Response fields
    • idstringrequired

      pattern ^gr_[a-z2-7]{26}$

    • namestringrequired
    • project_idstringrequired
    • forgestringrequired

      Where the code lives (loom)

    • forge_repo_idstringrequired

      The linked repo in the forge (lr_… for Loom)

    • descriptionstring | null
    • default_branchstringrequired
    • created_bystringrequired

      The principal that linked the repo

    • created_atstring (date-time)required
    • updated_atstring (date-time)required
    • live_urlstring | nullrequired

      The URL of the repo's live launch (its newest live one)

    • live_launchobject | nullrequired

      The repo's live launch (its newest live one), read on its own, never from recent_launches

    • recent_launchesobject[]required
    • recent_launches[].[].idstringrequired

      pattern ^gl_[a-z2-7]{26}$

    • recent_launches[].[].repo_idstringrequired
    • recent_launches[].[].shastringrequired

      A full 40-character commit SHA pattern ^[0-9a-f]{40}$

    • recent_launches[].[].refstring | null
    • recent_launches[].[].check_namestringrequired
    • recent_launches[].[].host"hives" | "vercel" | "cloudflare" | "github-pages" | "netlify"required

      default "hives"

    • recent_launches[].[].domainstring | null
    • recent_launches[].[].state"building" | "ready" | "failed" | "live" | "superseded" | "removed"required
    • recent_launches[].[].ci_run_idstring | null
    • recent_launches[].[].deploy_idstring | null
    • recent_launches[].[].urlstring | null
    • recent_launches[].[].failurestring | null

      Why the launch failed

    • recent_launches[].[].created_bystringrequired

      The principal that started the launch

    • recent_launches[].[].created_atstring (date-time)required
    • recent_launches[].[].updated_atstring (date-time)required
    • recent_launches[].[].ready_atstring | null (date-time)
    • recent_launches[].[].live_atstring | null (date-time)
  • 401No valid credential
  • 403The credential lacks the scope, or the project is not yours
  • 404No such repo or launch in this org, project and environment
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/graphs/repos/$REPO" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Checks

List the checks on a repo's commits

GET/v1/graphs/repos/{repo}/checks

graphs:readgraphs_listChecks

Scope graphs:read. With sha, only that commit's checks.

Parameters

  • repopath · stringrequired
  • shaquery · string

Responses

  • 200Checks
    Response fields
    • dataobject[]required
    • data[].[].idstringrequired

      pattern ^gk_[a-z2-7]{26}$

    • data[].[].repo_idstringrequired
    • data[].[].shastringrequired

      A full 40-character commit SHA pattern ^[0-9a-f]{40}$

    • data[].[].namestringrequired
    • data[].[].source"oneos-ci" | "external"required
    • data[].[].ci_run_idstring | null
    • data[].[].status"queued" | "in_progress" | "completed"required
    • data[].[].conclusion"success" | "failure" | "cancelled" | "timed_out" | "skipped" | "neutral" | "action_required" | nullrequired
    • data[].[].summary_mdstring | null
    • data[].[].details_urlstring | null
    • data[].[].started_atstring | null (date-time)
    • data[].[].completed_atstring | null (date-time)
    • data[].[].updated_atstring (date-time)required
  • 401No valid credential
  • 403The credential lacks the scope, or the project is not yours
  • 404No such repo or launch in this org, project and environment
  • 422The request is invalid
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/graphs/repos/$REPO/checks" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Statuses

Post a status for a commit

POST/v1/graphs/repos/{repo}/statuses

graphs:writegraphs_createStatus

Scope graphs:write. Records or updates an external check named name on commit sha (source external). The name oneos-ci and names under oneos-ci/ are reserved for OneOS CI's signed events (403). conclusion is required when status is completed and ignored otherwise; details_url must be https.

Parameters

  • repopath · stringrequired

Request body application/json

  • shastringrequired

    A full 40-character commit SHA pattern ^[0-9a-f]{40}$

  • namestringrequired

    Up to 100 characters; oneos-ci and oneos-ci/<job> are OneOS CI's pattern ^[A-Za-z0-9][A-Za-z0-9 ._:/-]{0,99}$

  • status"queued" | "in_progress" | "completed"required
  • conclusion"success" | "failure" | "cancelled" | "timed_out" | "skipped" | "neutral" | "action_required" | null
  • summary_mdstring | null

    Markdown, kept to 8000 characters

  • details_urlstring | null

    pattern ^https://[^\s]{1,2000}$

Responses

  • 201The check
    Response fields
    • idstringrequired

      pattern ^gk_[a-z2-7]{26}$

    • repo_idstringrequired
    • shastringrequired

      A full 40-character commit SHA pattern ^[0-9a-f]{40}$

    • namestringrequired
    • source"oneos-ci" | "external"required
    • ci_run_idstring | null
    • status"queued" | "in_progress" | "completed"required
    • conclusion"success" | "failure" | "cancelled" | "timed_out" | "skipped" | "neutral" | "action_required" | nullrequired
    • summary_mdstring | null
    • details_urlstring | null
    • started_atstring | null (date-time)
    • completed_atstring | null (date-time)
    • updated_atstring (date-time)required
  • 401No valid credential
  • 403The credential lacks the scope, or the project is not yours
  • 404No such repo or launch in this org, project and environment
  • 409launch_building, launch_failed, already_live, run_mismatch or idempotency_mismatch
  • 422The request is invalid
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/graphs/repos/$REPO/statuses" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "sha": "string",
    "name": "string",
    "status": "queued"
  }'

Whoami

Show the identity, environment and selected project Graphs sees for your credential

GET/v1/graphs/whoami

graphs:readgraphs_whoami

Scope graphs:read.

Responses

  • 200Org, principal, kind, scopes, environment and the selected project
    Response fields
    • orgstringrequired
    • principalstringrequired
    • kindstringrequired
    • scopesstring[]required
    • tenant_environment"sandbox" | "live"required
    • project_idstring | nullrequired
  • 401No valid credential
  • 403The credential lacks the scope, or the project is not yours
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/graphs/whoami" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

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