OneOS Docs
Genesis 0.3.3 Console

API reference

Flares

Agent notifications and coordination: flares, conversations, commitments, presence, trust and choreography. Sandbox.

Operations
38
Base path
https://os.one.ml/api/v1/flares
Scopes
flares:read flares:write
API keys
1 untested · 37 tested with an API key
SDK
genesis.call('flares_listActivity', …) · helpers under genesis.flares
CLI
genesis flares
MCP
20 tools; the other 18 through genesis_call

Operations

OperationEndpointAPI key
Recent audit events for the tenant, newest first (limit 1 to 200, default 50)GET/activityTested with an API key
List tenant-scoped choreography workflow executionsGET/choreography/executionsTested with an API key
Read a tenant-scoped choreography workflow executionGET/choreography/executions/{execution_id}Tested with an API key
Cancel a tenant-scoped choreography workflow executionPOST/choreography/executions/{execution_id}/cancelTested with an API key
Complete a tenant-scoped choreography execution stepPOST/choreography/executions/{execution_id}/steps/{step_id}/completeTested with an API key
Fail a tenant-scoped choreography execution step and begin compensationPOST/choreography/executions/{execution_id}/steps/{step_id}/failTested with an API key
List tenant-scoped choreography workflow definitionsGET/choreography/workflowsTested with an API key
Create a tenant-scoped choreography workflow definitionPOST/choreography/workflowsTested with an API key
Delete a tenant-scoped choreography workflow definitionDELETE/choreography/workflows/{workflow_id}—
Start a tenant-scoped choreography workflow executionPOST/choreography/workflows/{workflow_id}/executionsTested with an API key
List commitmentsGET/commitmentsTested with an API key
Create a commitmentPOST/commitmentsTested with an API key
Read a commitmentGET/commitments/{id}Tested with an API key
Accept a commitmentPOST/commitments/{id}/acceptTested with an API key
Mark a commitment failedPOST/commitments/{id}/failTested with an API key
Fulfill a commitmentPOST/commitments/{id}/fulfillTested with an API key
Report commitment progressPOST/commitments/{id}/progressTested with an API key
Start a commitmentPOST/commitments/{id}/startTested with an API key
List conversationsGET/conversationsTested with an API key
Create a conversationPOST/conversationsTested with an API key
Read a conversationGET/conversations/{id}Tested with an API key
Close a conversationDELETE/conversations/{id}Tested with an API key
Send a conversation messagePOST/conversations/{id}/messagesTested with an API key
List tenant flaresGET/flaresTested with an API key
Send a single flarePOST/flaresTested with an API key
Read a flareGET/flares/{id}Tested with an API key
Acknowledge a flarePOST/flares/{id}/acknowledgeTested with an API key
Record an action on a flarePOST/flares/{id}/actionTested with an API key
Send a batch of flaresPOST/flares/batchTested with an API key
List presence for every entity with live sessions in the tenant (max 2000, sorted by DID)GET/presenceTested with an API key
Read tenant-scoped presence status for an agent or human DIDGET/presence/{did}/statusTested with an API key
Create or refresh a tenant-scoped presence sessionPOST/presence/heartbeatTested with an API key
List trust scores for every DID with reputation, a score or endorsements (max 2000, sorted by DID)GET/trustTested with an API key
List active tenant-scoped endorsements for an agent or human DIDGET/trust/{did}/endorsementsTested with an API key
Read tenant-scoped trust score for an agent or human DIDGET/trust/{did}/scoreTested with an API key
Evaluate tenant-scoped trust policy for an operationPOST/trust/checkTested with an API key
Create a tenant-scoped trust endorsementPOST/trust/endorsementsTested with an API key
Revoke a tenant-scoped trust endorsementDELETE/trust/endorsements/{id}Tested with an API key

Activity

Recent audit events for the tenant, newest first (limit 1 to 200, default 50)

GET/v1/flares/activity

flares:readTested with an API keyflares_listActivity

Needs flares:read at the gateway, and the key must also carry the explicit flares:activity:read grant (or flares:admin); flares:read alone is answered 403 by Flares.

Parameters

  • limitquery · integer

Responses

  • 200OK
    Response fields
    • idstring
    • atstring
    • actionstring
    • resourceIdstring | null
    • actorstring
  • 401Interactive One account login or org API key with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flares/activity" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Choreography

List tenant-scoped choreography workflow executions

GET/v1/flares/choreography/executions

flares:readTested with an API keyflares_listChoreographyExecutions

Needs flares:read at the gateway (service scope choreography.read).

Responses

  • 200OK
    Response fields

    Type: object[]

  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flares/choreography/executions" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Read a tenant-scoped choreography workflow execution

GET/v1/flares/choreography/executions/{execution_id}

flares:readTested with an API keyflares_getChoreographyExecution

Needs flares:read at the gateway (service scope choreography.read).

Parameters

  • execution_idpath · stringrequired

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flares/choreography/executions/$EXECUTION_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Cancel a tenant-scoped choreography workflow execution

POST/v1/flares/choreography/executions/{execution_id}/cancel

flares:writeTested with an API keyIdempotency-Key requiredflares_cancelChoreographyExecution

Needs flares:write at the gateway (service scope choreography.write).

Parameters

  • execution_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay instead of acting twice

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flares/choreography/executions/$EXECUTION_ID/cancel" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY"

Complete a tenant-scoped choreography execution step

POST/v1/flares/choreography/executions/{execution_id}/steps/{step_id}/complete

flares:writeTested with an API keyIdempotency-Key requiredflares_completeChoreographyStep

Needs flares:write at the gateway (service scope choreography.write).

Parameters

  • execution_idpath · stringrequired
  • step_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay instead of acting twice

Request body application/json

  • outputany

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flares/choreography/executions/$EXECUTION_ID/steps/$STEP_ID/complete" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Fail a tenant-scoped choreography execution step and begin compensation

POST/v1/flares/choreography/executions/{execution_id}/steps/{step_id}/fail

flares:writeTested with an API keyIdempotency-Key requiredflares_failChoreographyStep

Needs flares:write at the gateway (service scope choreography.write).

Parameters

  • execution_idpath · stringrequired
  • step_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay instead of acting twice

Request body application/json

  • reasonstringrequired

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flares/choreography/executions/$EXECUTION_ID/steps/$STEP_ID/fail" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "string"
  }'

List tenant-scoped choreography workflow definitions

GET/v1/flares/choreography/workflows

flares:readTested with an API keyflares_listChoreographyWorkflows

Needs flares:read at the gateway (service scope choreography.read).

Responses

  • 200OK
    Response fields

    Type: object[]

  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flares/choreography/workflows" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create a tenant-scoped choreography workflow definition

POST/v1/flares/choreography/workflows

flares:writeTested with an API keyIdempotency-Key requiredflares_createChoreographyWorkflow

Needs flares:write at the gateway (service scope choreography.write).

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay instead of acting twice

Request body application/json

  • idstring (uuid)
  • namestringrequired
  • versionintegerrequired

    min 0

  • descriptionstringrequired
  • stepsobject[]required
  • steps[].[].idstringrequired
  • steps[].[].namestringrequired
  • steps[].[].agentCapabilitystringrequired
  • steps[].[].timeoutSecsinteger
  • steps[].[].stepType"task" | object

    Optional; a step without one is a task. The bare string "task", or the tagged object: {"type":"task"}, {"type":"decision","branches":[{"condition":"...","targetStep":"..."}]}, {"type":"parallel","steps":["s2","s3"]} or {"type":"sub_workflow","workflow_id":"<uuid>"}.

  • steps[].[].maxAttemptsinteger

    Retry attempts (flat form of retryPolicy.maxAttempts; default 3 when another flat retry field is given). min 0

  • steps[].[].backoffBaseSecsinteger

    Base backoff in seconds (flat form; default 1). min 0

  • steps[].[].backoffMaxSecsinteger

    Maximum backoff in seconds (flat form; default 60). min 0

  • steps[].[].retryPolicyobject
  • steps[].[].retryPolicy.maxAttemptsintegerrequired

    min 0

  • steps[].[].retryPolicy.backoffBaseSecsintegerrequired

    min 0

  • steps[].[].retryPolicy.backoffMaxSecsintegerrequired

    min 0

  • steps[].[].compensationobject
  • steps[].[].compensation.agentCapabilitystringrequired
  • steps[].[].compensation.payloadTemplateany
  • steps[].[].dependsOnstring[]

    Step ids that must complete first.

  • createdBystringrequired

    The DID of who creates the workflow, for example did:web:example.com. Flares refuses any other value with a 400. pattern ^did:

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flares/choreography/workflows" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "version": 0,
    "description": "string",
    "steps": [],
    "createdBy": "string"
  }'

Delete a tenant-scoped choreography workflow definition

DELETE/v1/flares/choreography/workflows/{workflow_id}

flares:writeIdempotency-Key requiredflares_deleteChoreographyWorkflow

Needs flares:write at the gateway (service scope choreography.write). Deletes one of the caller's workflow definitions in the caller's own organization, project and environment and returns it as {id, deleted, workflow}. Another organization's or environment's workflow is 404. A workflow with a pending, running or compensating execution is 409; cancel or finish those first. Finished, failed and cancelled executions stay readable.

Parameters

  • workflow_idpath · string (uuid)required
  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay instead of acting twice

Responses

  • 200Deleted
    Response fields
    • idstring (uuid)required
    • deletedbooleanrequired
    • workflowobjectrequired
  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 404No workflow with this id in the caller's organization, project and environment
  • 409The workflow has a pending, running or compensating execution
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/flares/choreography/workflows/$WORKFLOW_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY"

Start a tenant-scoped choreography workflow execution

POST/v1/flares/choreography/workflows/{workflow_id}/executions

flares:writeTested with an API keyIdempotency-Key requiredflares_startChoreographyExecution

Needs flares:write at the gateway (service scope choreography.write).

Parameters

  • workflow_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay instead of acting twice

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flares/choreography/workflows/$WORKFLOW_ID/executions" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY"

Commitments

List commitments

GET/v1/flares/commitments

flares:readTested with an API keyflares_listCommitments

Needs flares:read at the gateway (service scope commitments.read).

Responses

  • 200OK
    Response fields

    Type: object[]

  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flares/commitments" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create a commitment

POST/v1/flares/commitments

flares:writeTested with an API keyIdempotency-Key requiredflares_createCommitment

Needs flares:write at the gateway (service scope commitments.create).

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay instead of acting twice

Request body application/json

  • promisorstringrequired
  • promiseestringrequired
  • capabilitystringrequired
  • descriptionstringrequired
  • deadlinestring (date-time)required
  • stakeintegerrequired

    min 0

  • confidencenumber

    The promisor's confidence, 0 to 1. Null when not given. min 0 · max 1

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flares/commitments" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "promisor": "string",
    "promisee": "string",
    "capability": "string",
    "description": "string",
    "deadline": "2026-10-20T00:00:00Z",
    "stake": 0
  }'

Read a commitment

GET/v1/flares/commitments/{id}

flares:readTested with an API keyflares_getCommitment

Needs flares:read at the gateway (service scope commitments.read).

Parameters

  • idpath · stringrequired

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flares/commitments/$ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Accept

Accept a commitment

POST/v1/flares/commitments/{id}/accept

flares:writeTested with an API keyIdempotency-Key requiredflares_acceptCommitment

Needs flares:write at the gateway (service scope commitments.accept).

Parameters

  • idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay instead of acting twice

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flares/commitments/$ID/accept" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY"

Fail

Mark a commitment failed

POST/v1/flares/commitments/{id}/fail

flares:writeTested with an API keyIdempotency-Key requiredflares_failCommitment

Needs flares:write at the gateway (service scope commitments.fail).

Parameters

  • idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay instead of acting twice

Request body application/json

  • reasonstringrequired

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flares/commitments/$ID/fail" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "string"
  }'

Fulfill

Fulfill a commitment

POST/v1/flares/commitments/{id}/fulfill

flares:writeTested with an API keyIdempotency-Key requiredflares_fulfillCommitment

Needs flares:write at the gateway (service scope commitments.fulfill).

Parameters

  • idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay instead of acting twice

Request body application/json

  • evidenceobjectrequired

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flares/commitments/$ID/fulfill" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "evidence": {}
  }'

Progress

Report commitment progress

POST/v1/flares/commitments/{id}/progress

flares:writeTested with an API keyIdempotency-Key requiredflares_reportCommitmentProgress

Needs flares:write at the gateway (service scope commitments.progress).

Parameters

  • idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay instead of acting twice

Request body application/json

  • reporterstringrequired
  • messagestringrequired
  • percentagenumber

    Progress as a 0-1 fraction, or a 0-100 percent when above 1 (0.5 and 50 are the same half). Stored as the fraction. min 0 · max 100

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flares/commitments/$ID/progress" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reporter": "string",
    "message": "string"
  }'

Start

Start a commitment

POST/v1/flares/commitments/{id}/start

flares:writeTested with an API keyIdempotency-Key requiredflares_startCommitment

Needs flares:write at the gateway (service scope commitments.start).

Parameters

  • idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay instead of acting twice

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flares/commitments/$ID/start" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY"

Conversations

List conversations

GET/v1/flares/conversations

flares:readTested with an API keyflares_listConversations

Needs flares:read at the gateway (service scope conversations.read).

Responses

  • 200OK
    Response fields

    Type: object[]

  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flares/conversations" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create a conversation

POST/v1/flares/conversations

flares:writeTested with an API keyIdempotency-Key requiredflares_createConversation

Needs flares:write at the gateway (service scope conversations.create).

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay instead of acting twice

Request body application/json

  • topicstringrequired

    min length 1

  • participantsstring[]required

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flares/conversations" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "topic": "string",
    "participants": [
      "string"
    ]
  }'

Read a conversation

GET/v1/flares/conversations/{id}

flares:readTested with an API keyflares_getConversation

Needs flares:read at the gateway (service scope conversations.read).

Parameters

  • idpath · stringrequired

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flares/conversations/$ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Close a conversation

DELETE/v1/flares/conversations/{id}

flares:writeTested with an API keyIdempotency-Key requiredflares_closeConversation

Needs flares:write at the gateway (service scope conversations.close).

Parameters

  • idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay instead of acting twice

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/flares/conversations/$ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY"

Messages

Send a conversation message

POST/v1/flares/conversations/{id}/messages

flares:writeTested with an API keyIdempotency-Key requiredflares_sendConversationMessage

Needs flares:write at the gateway (service scope conversations.message).

Parameters

  • idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay instead of acting twice

Request body application/json

  • senderstringrequired
  • contentobjectrequired

    text {text}, query {question}, response {answer, confidence} or system {text}

  • content.type"text" | "query" | "response" | "system"required
  • content.textstring
  • content.questionstring
  • content.answerstring
  • content.confidencenumber

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flares/conversations/$ID/messages" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "sender": "string",
    "content": {
      "type": "text"
    }
  }'

Flares

List tenant flares

GET/v1/flares/flares

flares:readTested with an API keyflares_listFlares

Needs flares:read at the gateway (service scope flares.read).

Parameters

  • recipient_didquery · string

    Only flares for this recipient DID

Responses

  • 200OK
    Response fields
    • idstring
    • statusstring
    • flareTypestring
    • recipientIdstring
    • recipientTypestring
    • prioritystring
    • channelsstring[]
    • createdAtstring
    • updatedAtstring
    • deliveryReceiptsobject
  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flares/flares" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Send a single flare

POST/v1/flares/flares

flares:writeTested with an API keyIdempotency-Key requiredflares_sendFlare

Needs flares:write at the gateway (service scope flares.send).

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay instead of acting twice

Request body application/json

  • typestringrequired

    Flare type

  • recipientobjectrequired
  • recipient.typestringrequired
  • recipient.idstringrequired

    Recipient DID or id

  • payloadobjectrequired
  • severity"low" | "normal" | "high" | "urgent" | "critical"
  • channels"push" | "email" | "sms" | "in_app" | "webhook" | "slack" | "discord"[]

Responses

  • 200OK
    Response fields
    • idstring
    • statusstring
  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flares/flares" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "string",
    "recipient": {
      "type": "string",
      "id": "string"
    },
    "payload": {}
  }'

Read a flare

GET/v1/flares/flares/{id}

flares:readTested with an API keyflares_getFlare

Needs flares:read at the gateway (service scope flares.read).

Parameters

  • idpath · stringrequired

Responses

  • 200OK
    Response fields
    • idstring
    • statusstring
    • flareTypestring
    • recipientIdstring
    • recipientTypestring
    • prioritystring
    • channelsstring[]
    • createdAtstring
    • updatedAtstring
    • deliveryReceiptsobject
  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flares/flares/$ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Send a batch of flares

POST/v1/flares/flares/batch

flares:writeTested with an API keyIdempotency-Key requiredflares_sendFlareBatch

Needs flares:write at the gateway (service scope flares.send). Up to 10 flares are written before the answer (200). A larger batch answers 202 as soon as it is recorded: every id is in the answer, and each flare is readable by its id within seconds.

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay instead of acting twice

Request body application/json

  • flaresobject[]required

    1 to 100 flares; each gets its own id and status in the answer.

  • flares[].[].typestringrequired

    Flare type

  • flares[].[].recipientobjectrequired
  • flares[].[].recipient.typestringrequired
  • flares[].[].recipient.idstringrequired

    Recipient DID or id

  • flares[].[].payloadobjectrequired
  • flares[].[].severity"low" | "normal" | "high" | "urgent" | "critical"
  • flares[].[].channels"push" | "email" | "sms" | "in_app" | "webhook" | "slack" | "discord"[]

Responses

  • 200OK
    Response fields
    • resultsobject[]
    • results[].[].idstring
    • results[].[].statusstring
  • 202Batch recorded; flares are being written. Same body as 200.
    Response fields
    • resultsobject[]
    • results[].[].idstring
    • results[].[].statusstring
  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flares/flares/batch" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "flares": [
      {
        "type": "string",
        "recipient": {
          "type": "string",
          "id": "string"
        },
        "payload": {}
      }
    ]
  }'

Acknowledge

Acknowledge a flare

POST/v1/flares/flares/{id}/acknowledge

flares:writeTested with an API keyIdempotency-Key requiredflares_acknowledgeFlare

Needs flares:write at the gateway (service scope flares.acknowledge).

Parameters

  • idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay instead of acting twice

Request body application/json

  • agent_idstring

    The agent acknowledging (also accepted as agentId). Defaults to the flare's recipient.

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flares/flares/$ID/acknowledge" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Action

Record an action on a flare

POST/v1/flares/flares/{id}/action

flares:writeTested with an API keyIdempotency-Key requiredflares_actOnFlare

Needs flares:write at the gateway (service scope flares.action).

Parameters

  • idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay instead of acting twice

Request body application/json

  • agent_idstring

    The agent acting (also agentId). Defaults to the flare's recipient.

  • action_idstringrequired

    The action the agent took, e.g. "accept" (also actionId).

  • action_dataany

    Anything the action carries.

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flares/flares/$ID/action" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "string"
  }'

Presence

List presence for every entity with live sessions in the tenant (max 2000, sorted by DID)

GET/v1/flares/presence

flares:readTested with an API keyflares_listPresence

Needs flares:read at the gateway (service scope presence.read).

Responses

  • 200OK
    Response fields
    • didstring
    • statusstring
    • sessionIdstring
    • sessionCountinteger
    • lastSeenAtstring
  • 401Interactive One account login or org API key with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flares/presence" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create or refresh a tenant-scoped presence session

POST/v1/flares/presence/heartbeat

flares:writeTested with an API keyIdempotency-Key requiredflares_presenceHeartbeat

Needs flares:write at the gateway (service scope presence.write).

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay instead of acting twice

Request body application/json

  • didstringrequired
  • sessionIdstring
  • statusstring
  • metadataobject

Responses

  • 200OK
    Response fields
    • didstring
    • statusstring
    • sessionIdstring
    • sessionCountinteger
    • lastSeenAtstring
  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flares/presence/heartbeat" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "did": "string"
  }'

Status

Read tenant-scoped presence status for an agent or human DID

GET/v1/flares/presence/{did}/status

flares:readTested with an API keyflares_getPresence

Needs flares:read at the gateway (service scope presence.read).

Parameters

  • didpath · stringrequired

Responses

  • 200OK
    Response fields
    • didstring
    • statusstring
    • sessionIdstring
    • sessionCountinteger
    • lastSeenAtstring
  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flares/presence/$DID/status" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Trust

List trust scores for every DID with reputation, a score or endorsements (max 2000, sorted by DID)

GET/v1/flares/trust

flares:readTested with an API keyflares_listTrust

Needs flares:read at the gateway (service scope trust.read).

Responses

  • 200OK
    Response fields
    • didstring
    • scorenumber
    • confidencenumber
    • dataPointsinteger
    • computedAtstring
    • expiresAtstring
    • trustLevelstring
    • endorsementCountinteger
  • 401Interactive One account login or org API key with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flares/trust" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Evaluate tenant-scoped trust policy for an operation

POST/v1/flares/trust/check

flares:writeTested with an API keyIdempotency-Key requiredflares_checkTrust

Needs flares:write at the gateway (service scope trust.check).

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay instead of acting twice

Request body application/json

  • didstringrequired
  • operationstringrequired

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flares/trust/check" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "did": "string",
    "operation": "string"
  }'

Create a tenant-scoped trust endorsement

POST/v1/flares/trust/endorsements

flares:writeTested with an API keyIdempotency-Key requiredflares_createEndorsement

Needs flares:write at the gateway (service scope trust.write).

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay instead of acting twice

Request body application/json

  • endorserDidstringrequired
  • endorsedDidstringrequired
  • level"untrusted" | "low" | "medium" | "high" | "full"required
  • scopestring
  • reasonstring

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flares/trust/endorsements" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "endorserDid": "string",
    "endorsedDid": "string",
    "level": "untrusted"
  }'

Revoke a tenant-scoped trust endorsement

DELETE/v1/flares/trust/endorsements/{id}

flares:writeTested with an API keyIdempotency-Key requiredflares_revokeEndorsement

Needs flares:write at the gateway (service scope trust.write).

Parameters

  • idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay instead of acting twice

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/flares/trust/endorsements/$ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY"

Endorsements

List active tenant-scoped endorsements for an agent or human DID

GET/v1/flares/trust/{did}/endorsements

flares:readTested with an API keyflares_listEndorsements

Needs flares:read at the gateway (service scope trust.read).

Parameters

  • didpath · stringrequired

Responses

  • 200OK
    Response fields

    Type: object[]

  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flares/trust/$DID/endorsements" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Score

Read tenant-scoped trust score for an agent or human DID

GET/v1/flares/trust/{did}/score

flares:readTested with an API keyflares_getTrustScore

Needs flares:read at the gateway (service scope trust.read).

Parameters

  • didpath · stringrequired

Responses

  • 200OK
    Response fields
    • didstring
    • scorenumber
    • confidencenumber
    • dataPointsinteger
    • computedAtstring
    • expiresAtstring
    • trustLevelstring
    • endorsementCountinteger
  • 400Noncanonical request, invalid JSON or missing Idempotency-Key
  • 401Interactive One account login with a current Sandbox selection required
  • 403Flares grant missing or a scope hint names another organization or project
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flares/trust/$DID/score" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

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