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:readgraphs:write- API keys
- —
- SDK
genesis.call('graphs_createCiSubscription', …)· helpers undergenesis.graphs- MCP
- 12 tools; the other 1 through
genesis_call
Operations
| Operation | Endpoint | API key |
|---|---|---|
| The OneOS CI subscription Graphs needs for this organization | POST/ci-subscription | — |
| Launch a commit | POST/launches | — |
| Get a launch | GET/launches/{launch} | — |
| Record a launch's deploy and make it live | POST/launches/{launch}/deploy | — |
| Record that a launch was taken down | POST/launches/{launch}/remove | — |
| Attach the CI run that builds a launch | POST/launches/{launch}/run | — |
| List Graphs repos | GET/repos | — |
| Link a Loom repo to Graphs | POST/repos | — |
| Get a Graphs repo, its live URL and recent launches | GET/repos/{repo} | — |
| List the checks on a repo's commits | GET/repos/{repo}/checks | — |
| List a repo's launches | GET/repos/{repo}/launches | — |
| Post a status for a commit | POST/repos/{repo}/statuses | — |
| Show the identity, environment and selected project Graphs sees for your credential | GET/whoami | — |
Ci subscription
The OneOS CI subscription Graphs needs for this organization
POST/v1/graphs/ci-subscription
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)requiredGraphs' intake URL for this organization
secretstringrequiredThis 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('graphs_createCiSubscription'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "graphs_createCiSubscription",
"arguments": {}
}
}
}Launches
Launch a commit
POST/v1/graphs/launches
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_idstringrequiredpattern
^gr_[a-z2-7]{26}$shastringrequiredA full 40-character commit SHA pattern
^[0-9a-f]{40}$refstringpattern
^[A-Za-z0-9._/-]{1,255}$host"hives" | "vercel" | "cloudflare" | "github-pages" | "netlify"default
"hives"domainstring | nullA domain the launch goes live at (lower case) max length 253
check_nameobjectUp to 100 characters;
oneos-ciandoneos-ci/<job>are OneOS CI's default"oneos-ci"
Responses
- 200The launch this Idempotency-Key already created
Response fields
idstringrequiredpattern
^gl_[a-z2-7]{26}$repo_idstringrequiredshastringrequiredA full 40-character commit SHA pattern
^[0-9a-f]{40}$refstring | nullcheck_namestringrequiredhost"hives" | "vercel" | "cloudflare" | "github-pages" | "netlify"requireddefault
"hives"domainstring | nullstate"building" | "ready" | "failed" | "live" | "superseded" | "removed"requiredci_run_idstring | nulldeploy_idstring | nullurlstring | nullfailurestring | nullWhy the launch failed
created_bystringrequiredThe principal that started the launch
created_atstring (date-time)requiredupdated_atstring (date-time)requiredready_atstring | null (date-time)live_atstring | null (date-time)
- 201Launch created
Response fields
idstringrequiredpattern
^gl_[a-z2-7]{26}$repo_idstringrequiredshastringrequiredA full 40-character commit SHA pattern
^[0-9a-f]{40}$refstring | nullcheck_namestringrequiredhost"hives" | "vercel" | "cloudflare" | "github-pages" | "netlify"requireddefault
"hives"domainstring | nullstate"building" | "ready" | "failed" | "live" | "superseded" | "removed"requiredci_run_idstring | nulldeploy_idstring | nullurlstring | nullfailurestring | nullWhy the launch failed
created_bystringrequiredThe principal that started the launch
created_atstring (date-time)requiredupdated_atstring (date-time)requiredready_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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('graphs_createLaunch', {
body: {
repo_id: 'string',
sha: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "graphs_createLaunch",
"arguments": {
"body": {
"repo_id": "string",
"sha": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}Get a launch
GET/v1/graphs/launches/{launch}
Scope graphs:read.
Parameters
launchpath · stringrequired
Responses
- 200The launch
Response fields
idstringrequiredpattern
^gl_[a-z2-7]{26}$repo_idstringrequiredshastringrequiredA full 40-character commit SHA pattern
^[0-9a-f]{40}$refstring | nullcheck_namestringrequiredhost"hives" | "vercel" | "cloudflare" | "github-pages" | "netlify"requireddefault
"hives"domainstring | nullstate"building" | "ready" | "failed" | "live" | "superseded" | "removed"requiredci_run_idstring | nulldeploy_idstring | nullurlstring | nullfailurestring | nullWhy the launch failed
created_bystringrequiredThe principal that started the launch
created_atstring (date-time)requiredupdated_atstring (date-time)requiredready_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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('graphs_getLaunch', {
launch: '<launch>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "graphs_getLaunch",
"arguments": {
"launch": "<launch>"
}
}
}List a repo's launches
GET/v1/graphs/repos/{repo}/launches
Scope graphs:read. Newest first.
Parameters
repopath · stringrequired
Responses
- 200Launches
Response fields
dataobject[]requireddata[].[].idstringrequiredpattern
^gl_[a-z2-7]{26}$data[].[].repo_idstringrequireddata[].[].shastringrequiredA full 40-character commit SHA pattern
^[0-9a-f]{40}$data[].[].refstring | nulldata[].[].check_namestringrequireddata[].[].host"hives" | "vercel" | "cloudflare" | "github-pages" | "netlify"requireddefault
"hives"data[].[].domainstring | nulldata[].[].state"building" | "ready" | "failed" | "live" | "superseded" | "removed"requireddata[].[].ci_run_idstring | nulldata[].[].deploy_idstring | nulldata[].[].urlstring | nulldata[].[].failurestring | nullWhy the launch failed
data[].[].created_bystringrequiredThe principal that started the launch
data[].[].created_atstring (date-time)requireddata[].[].updated_atstring (date-time)requireddata[].[].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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('graphs_listLaunches', {
repo: '<repo>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "graphs_listLaunches",
"arguments": {
"repo": "<repo>"
}
}
}Deploy
Record a launch's deploy and make it live
POST/v1/graphs/launches/{launch}/deploy
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_idstringrequiredpattern
^[A-Za-z0-9_.:-]{1,128}$urlstringrequiredhttps, with no query or fragment pattern
^https://[^\s?#]{1,500}$
Responses
- 200The launch, now live
Response fields
idstringrequiredpattern
^gl_[a-z2-7]{26}$repo_idstringrequiredshastringrequiredA full 40-character commit SHA pattern
^[0-9a-f]{40}$refstring | nullcheck_namestringrequiredhost"hives" | "vercel" | "cloudflare" | "github-pages" | "netlify"requireddefault
"hives"domainstring | nullstate"building" | "ready" | "failed" | "live" | "superseded" | "removed"requiredci_run_idstring | nulldeploy_idstring | nullurlstring | nullfailurestring | nullWhy the launch failed
created_bystringrequiredThe principal that started the launch
created_atstring (date-time)requiredupdated_atstring (date-time)requiredready_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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('graphs_recordLaunchDeploy', {
launch: '<launch>',
body: {
deploy_id: 'string',
url: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "graphs_recordLaunchDeploy",
"arguments": {
"launch": "<launch>",
"body": {
"deploy_id": "string",
"url": "string"
}
}
}
}Remove
Record that a launch was taken down
POST/v1/graphs/launches/{launch}/remove
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
idstringrequiredpattern
^gl_[a-z2-7]{26}$repo_idstringrequiredshastringrequiredA full 40-character commit SHA pattern
^[0-9a-f]{40}$refstring | nullcheck_namestringrequiredhost"hives" | "vercel" | "cloudflare" | "github-pages" | "netlify"requireddefault
"hives"domainstring | nullstate"building" | "ready" | "failed" | "live" | "superseded" | "removed"requiredci_run_idstring | nulldeploy_idstring | nullurlstring | nullfailurestring | nullWhy the launch failed
created_bystringrequiredThe principal that started the launch
created_atstring (date-time)requiredupdated_atstring (date-time)requiredready_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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('graphs_removeLaunch', {
launch: '<launch>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "graphs_removeLaunch",
"arguments": {
"launch": "<launch>"
}
}
}Run
Attach the CI run that builds a launch
POST/v1/graphs/launches/{launch}/run
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_idstringrequiredpattern
^[A-Za-z0-9_-]{1,64}$
Responses
- 200The launch
Response fields
idstringrequiredpattern
^gl_[a-z2-7]{26}$repo_idstringrequiredshastringrequiredA full 40-character commit SHA pattern
^[0-9a-f]{40}$refstring | nullcheck_namestringrequiredhost"hives" | "vercel" | "cloudflare" | "github-pages" | "netlify"requireddefault
"hives"domainstring | nullstate"building" | "ready" | "failed" | "live" | "superseded" | "removed"requiredci_run_idstring | nulldeploy_idstring | nullurlstring | nullfailurestring | nullWhy the launch failed
created_bystringrequiredThe principal that started the launch
created_atstring (date-time)requiredupdated_atstring (date-time)requiredready_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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('graphs_attachLaunchRun', {
launch: '<launch>',
body: {
ci_run_id: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "graphs_attachLaunchRun",
"arguments": {
"launch": "<launch>",
"body": {
"ci_run_id": "string"
}
}
}
}Repos
List Graphs repos
GET/v1/graphs/repos
Scope graphs:read. The repos in your selected project, newest first.
Responses
- 200Repos
Response fields
dataobject[]requireddata[].[].idstringrequiredpattern
^gr_[a-z2-7]{26}$data[].[].namestringrequireddata[].[].project_idstringrequireddata[].[].forgestringrequiredWhere the code lives (
loom)data[].[].forge_repo_idstringrequiredThe linked repo in the forge (
lr_…for Loom)data[].[].descriptionstring | nulldata[].[].default_branchstringrequireddata[].[].created_bystringrequiredThe principal that linked the repo
data[].[].created_atstring (date-time)requireddata[].[].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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('graphs_listRepos'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "graphs_listRepos",
"arguments": {}
}
}Link a Loom repo to Graphs
POST/v1/graphs/repos
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_idstringrequiredThe Loom repo to link pattern
^lr_[a-z2-7]{26}$namestringrequired1–64 of a-z, 0-9 and - pattern
^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$descriptionstring | nullKept to 500 characters
default_branchstringpattern
^[A-Za-z0-9._/-]{1,255}$
Responses
- 200The Graphs repo already linked to this Loom repo
Response fields
idstringrequiredpattern
^gr_[a-z2-7]{26}$namestringrequiredproject_idstringrequiredforgestringrequiredWhere the code lives (
loom)forge_repo_idstringrequiredThe linked repo in the forge (
lr_…for Loom)descriptionstring | nulldefault_branchstringrequiredcreated_bystringrequiredThe principal that linked the repo
created_atstring (date-time)requiredupdated_atstring (date-time)required
- 201Repo linked
Response fields
idstringrequiredpattern
^gr_[a-z2-7]{26}$namestringrequiredproject_idstringrequiredforgestringrequiredWhere the code lives (
loom)forge_repo_idstringrequiredThe linked repo in the forge (
lr_…for Loom)descriptionstring | nulldefault_branchstringrequiredcreated_bystringrequiredThe principal that linked the repo
created_atstring (date-time)requiredupdated_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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('graphs_createRepo', {
body: {
loom_repo_id: 'string',
name: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "graphs_createRepo",
"arguments": {
"body": {
"loom_repo_id": "string",
"name": "string"
}
}
}
}Get a Graphs repo, its live URL and recent launches
GET/v1/graphs/repos/{repo}
Scope graphs:read.
Parameters
repopath · stringrequired
Responses
- 200The repo, its live URL (or null) and its most recent launches
Response fields
idstringrequiredpattern
^gr_[a-z2-7]{26}$namestringrequiredproject_idstringrequiredforgestringrequiredWhere the code lives (
loom)forge_repo_idstringrequiredThe linked repo in the forge (
lr_…for Loom)descriptionstring | nulldefault_branchstringrequiredcreated_bystringrequiredThe principal that linked the repo
created_atstring (date-time)requiredupdated_atstring (date-time)requiredlive_urlstring | nullrequiredThe URL of the repo's live launch (its newest live one)
live_launchobject | nullrequiredThe repo's live launch (its newest live one), read on its own, never from recent_launches
recent_launchesobject[]requiredrecent_launches[].[].idstringrequiredpattern
^gl_[a-z2-7]{26}$recent_launches[].[].repo_idstringrequiredrecent_launches[].[].shastringrequiredA full 40-character commit SHA pattern
^[0-9a-f]{40}$recent_launches[].[].refstring | nullrecent_launches[].[].check_namestringrequiredrecent_launches[].[].host"hives" | "vercel" | "cloudflare" | "github-pages" | "netlify"requireddefault
"hives"recent_launches[].[].domainstring | nullrecent_launches[].[].state"building" | "ready" | "failed" | "live" | "superseded" | "removed"requiredrecent_launches[].[].ci_run_idstring | nullrecent_launches[].[].deploy_idstring | nullrecent_launches[].[].urlstring | nullrecent_launches[].[].failurestring | nullWhy the launch failed
recent_launches[].[].created_bystringrequiredThe principal that started the launch
recent_launches[].[].created_atstring (date-time)requiredrecent_launches[].[].updated_atstring (date-time)requiredrecent_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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('graphs_getRepo', {
repo: '<repo>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "graphs_getRepo",
"arguments": {
"repo": "<repo>"
}
}
}Checks
List the checks on a repo's commits
GET/v1/graphs/repos/{repo}/checks
Scope graphs:read. With sha, only that commit's checks.
Parameters
repopath · stringrequiredshaquery · string
Responses
- 200Checks
Response fields
dataobject[]requireddata[].[].idstringrequiredpattern
^gk_[a-z2-7]{26}$data[].[].repo_idstringrequireddata[].[].shastringrequiredA full 40-character commit SHA pattern
^[0-9a-f]{40}$data[].[].namestringrequireddata[].[].source"oneos-ci" | "external"requireddata[].[].ci_run_idstring | nulldata[].[].status"queued" | "in_progress" | "completed"requireddata[].[].conclusion"success" | "failure" | "cancelled" | "timed_out" | "skipped" | "neutral" | "action_required" | nullrequireddata[].[].summary_mdstring | nulldata[].[].details_urlstring | nulldata[].[].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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('graphs_listChecks', {
repo: '<repo>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "graphs_listChecks",
"arguments": {
"repo": "<repo>"
}
}
}Statuses
Post a status for a commit
POST/v1/graphs/repos/{repo}/statuses
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
shastringrequiredA full 40-character commit SHA pattern
^[0-9a-f]{40}$namestringrequiredUp to 100 characters;
oneos-ciandoneos-ci/<job>are OneOS CI's pattern^[A-Za-z0-9][A-Za-z0-9 ._:/-]{0,99}$status"queued" | "in_progress" | "completed"requiredconclusion"success" | "failure" | "cancelled" | "timed_out" | "skipped" | "neutral" | "action_required" | nullsummary_mdstring | nullMarkdown, kept to 8000 characters
details_urlstring | nullpattern
^https://[^\s]{1,2000}$
Responses
- 201The check
Response fields
idstringrequiredpattern
^gk_[a-z2-7]{26}$repo_idstringrequiredshastringrequiredA full 40-character commit SHA pattern
^[0-9a-f]{40}$namestringrequiredsource"oneos-ci" | "external"requiredci_run_idstring | nullstatus"queued" | "in_progress" | "completed"requiredconclusion"success" | "failure" | "cancelled" | "timed_out" | "skipped" | "neutral" | "action_required" | nullrequiredsummary_mdstring | nulldetails_urlstring | nullstarted_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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('graphs_createStatus', {
repo: '<repo>',
body: {
sha: 'string',
name: 'string',
status: 'queued',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "graphs_createStatus",
"arguments": {
"repo": "<repo>",
"body": {
"sha": "string",
"name": "string",
"status": "queued"
}
}
}
}Whoami
Show the identity, environment and selected project Graphs sees for your credential
GET/v1/graphs/whoami
Scope graphs:read.
Responses
- 200Org, principal, kind, scopes, environment and the selected project
Response fields
orgstringrequiredprincipalstringrequiredkindstringrequiredscopesstring[]requiredtenant_environment"sandbox" | "live"requiredproject_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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('graphs_whoami'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "graphs_whoami",
"arguments": {}
}
}L1fe AI Inc. · Built from Genesis 0.3.1 and the live gateway on 2026-10-25. Support