OneOS Docs
Genesis 0.3.3 Console

API reference

Taps

Human-in-the-loop requests: taps, their events and responses, routing rules, escalation policies and agent lineage.

Operations
47
Base path
https://os.one.ml/api/v1/taps
Scopes
taps:read taps:write
API keys
1 need a signed-in session · 2 refused to API keys · 19 tested with an API key
SDK
genesis.call('taps_createAgentLineageChallenge', …) · helpers under genesis.taps
CLI
genesis taps
MCP
16 tools; the other 31 through genesis_call

Operations

OperationEndpointAPI key
Create an agent lineage challenge (human only)POST/agent-lineage/challengesAPI keys refused
List agent lineage requestsGET/agent-lineage/requestsTested with an API key
Submit a signed agent lineage request (human only)POST/agent-lineage/requestsAPI keys refused
Get an agent lineage requestGET/agent-lineage/requests/{id}Tested with an API key
Approval delegations (yours, or the calling key's)GET/approval-delegations—
Let one org API key answer your taps (person only)POST/approval-delegations—
Revoke one of your approval delegations (person only)DELETE/approval-delegations/{id}—
Your own approval mode (person only)GET/approval-mode—
Set your own approval mode (person only)PUT/approval-mode—
Your own approval mode log, newest first (person only)GET/approval-mode/events—
List your own push devices (person only)GET/devices—
Register or refresh one of your push devices (person only)POST/devices—
Remove one of your push devices (person only)DELETE/devices/{id}—
List escalation policiesGET/escalation-policiesTested with an API key
Create an escalation policyPOST/escalation-policiesTested with an API key
Delete an escalation policyDELETE/escalation-policies/{id}Tested with an API key
Rename, enable or disable an escalation policyPATCH/escalation-policies/{id}Tested with an API key
List what is waiting on you (person only)GET/inbox—
One of your items with what its card needs (person only)GET/inbox/{id}—
How many items wait on you (person only)GET/inbox/badge—
Live changes to your inbox over Server-Sent Events (person only)GET/inbox/stream—
Get the Garden integration statusGET/integrations/gardenTested with an API key
Enable the Garden integrationPOST/integrations/garden/enableTested with an API key
Who manages these resources (Managed by)GET/management—
Claim a resource you created (Managed by)PUT/management/{ref}—
Hand a resource back (Managed by)DELETE/management/{ref}—
Take over a managed resource (person only)POST/management/{ref}/takeover—
Read your organization's global pause (pause everything)GET/org-pause—
Pause everything in your organizationPUT/org-pause—
Lift your organization's global pause (person only)DELETE/org-pause—
List routing rulesGET/routing-rulesTested with an API key
Create a routing rulePOST/routing-rulesTested with an API key
Delete a routing ruleDELETE/routing-rules/{id}Tested with an API key
Enable or disable a routing rulePATCH/routing-rules/{id}Tested with an API key
Get your tenant's Taps settingsGET/settingsTested with an API key
Change Taps settingsPATCH/settingsTested with an API key
Read your organization's Console policy for Live (Live is read-only in the Console, or not)GET/surface-policy—
Set your organization's Console policy for Live (person only)PUT/surface-policy—
List tapsGET/tapsTested with an API key
Ask a human for a decision (create a tap)POST/tapsTested with an API key
Get a tapGET/taps/{id}Tested with an API key
Cancel a tapDELETE/taps/{id}Tested with an API key
List a tap's audit eventsGET/taps/{id}/eventsTested with an API key
Forget your own answer to one tap (human only)POST/taps/{id}/forget—
Read a tap's signed record (drafted, approved, sent)GET/taps/{id}/record—
Record that you released what your approved tap heldPOST/taps/{id}/released—
Respond to a tap (a person, or a key a person delegated approval to)POST/taps/{id}/respondSigned-in session

Agent lineage

Create an agent lineage challenge (human only)

POST/v1/taps/agent-lineage/challenges

taps:writeAPI keys refusedtaps_createAgentLineageChallenge

Human only: a genesis login session. An org API key gets 403 human_required. Needs taps:write (Taps permission taps.lineage.manage). Auth issues a challenge for the agent DID to sign; organization_id, when sent, must match your tenant.

Request body application/json

  • agent_didstringrequired
  • organization_idstring (uuid)
  • project_idstring (uuid)

    Used only by self-hosted Taps

  • ttl_secsinteger

    Self-hosted only: 60 to 900, default 300

Responses

  • 200Challenge to sign
    Response fields
    • challengeobjectrequired
    • challenge.idstringrequired
    • challenge.noncestringrequired
    • challenge.issued_atintegerrequired

      Unix epoch milliseconds

    • challenge.expires_atintegerrequired

      Unix epoch milliseconds

    • challenge.expected_didstringrequired
    • challenge.tenant_hintobject
  • 403FORBIDDEN human_required (org API key), or a foreign organization_id
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/taps/agent-lineage/challenges" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "agent_did": "string"
  }'

List agent lineage requests

GET/v1/taps/agent-lineage/requests

taps:readTested with an API keytaps_listAgentLineageRequests

Needs taps:read (Taps permission taps.lineage.manage).

Parameters

  • statusquery · string
  • limitquery · integer

    1 to 100 (clamped); default 50

  • offsetquery · integer

Responses

  • 200One page of requests
    Response fields
    • requestsobject[]required
    • requests[].[].idstring (uuid)required
    • requests[].[].org_idstring (uuid)required
    • requests[].[].tap_idstring (uuid)required
    • requests[].[].statusstringrequired

      For example pending_human_approval, approved_pending_sigil_mint or active

    • requests[].[].agent_didstringrequired
    • requests[].[].agent_namestring | null
    • requests[].[].agent_frameworkstring | null
    • requests[].[].keystone_principal_idstring | null
    • requests[].[].requested_capabilitiesstring[]required
    • requests[].[].target_human_user_idstring | null (uuid)
    • requests[].[].requested_by_principal_idstring | null
    • requests[].[].requested_by_kindstring | null
    • requests[].[].sigil_mint_requiredbooleanrequired
    • requests[].[].sigil_networkstringrequired
    • requests[].[].sigil_tx_idstring | null
    • requests[].[].sigil_mint_payloadany
    • requests[].[].hitl_policyany
    • requests[].[].callback_urlstring | null
    • requests[].[].capability_grant_idstring | null
    • requests[].[].metadataany
    • requests[].[].approved_atstring | null (date-time)
    • requests[].[].denied_atstring | null (date-time)
    • requests[].[].activated_atstring | null (date-time)
    • requests[].[].created_atstring (date-time)required
    • requests[].[].updated_atstring (date-time)required
    • limitintegerrequired
    • offsetintegerrequired
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/taps/agent-lineage/requests" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Submit a signed agent lineage request (human only)

POST/v1/taps/agent-lineage/requests

taps:writeAPI keys refusedtaps_createAgentLineageRequest

Human only: a genesis login session. An org API key gets 403 human_required. Needs taps:write (Taps permission taps.lineage.manage). Auth verifies the signed challenge; Taps records the request and raises an approval tap for a human. In cloud, sigil_mint_required must stay true and capabilities use platform.resource.action form.

Request body application/json

  • organization_idstring (uuid)

    Must match your tenant when sent

  • challenge_idstringrequired
  • signer_didstringrequired
  • signature_multibasestringrequired
  • agent_namestring
  • agent_frameworkstring
  • target_human_user_idstring (uuid)
  • requested_capabilitiesstring[]
  • sigil_mint_requiredboolean

    default true

  • sigil_networkstring

    default "sigil-mainnet"

  • callback_urlstring
  • hitl_policyany
  • metadataany

Responses

  • 201Request recorded and approval tap raised
    Response fields
    • requestobjectrequired
    • request.idstring (uuid)required
    • request.org_idstring (uuid)required
    • request.tap_idstring (uuid)required
    • request.statusstringrequired

      For example pending_human_approval, approved_pending_sigil_mint or active

    • request.agent_didstringrequired
    • request.agent_namestring | null
    • request.agent_frameworkstring | null
    • request.keystone_principal_idstring | null
    • request.requested_capabilitiesstring[]required
    • request.target_human_user_idstring | null (uuid)
    • request.requested_by_principal_idstring | null
    • request.requested_by_kindstring | null
    • request.sigil_mint_requiredbooleanrequired
    • request.sigil_networkstringrequired
    • request.sigil_tx_idstring | null
    • request.sigil_mint_payloadany
    • request.hitl_policyany
    • request.callback_urlstring | null
    • request.capability_grant_idstring | null
    • request.metadataany
    • request.approved_atstring | null (date-time)
    • request.denied_atstring | null (date-time)
    • request.activated_atstring | null (date-time)
    • request.created_atstring (date-time)required
    • request.updated_atstring (date-time)required
    • tapobjectrequired
    • tap.idstring (uuid)required
    • tap.status"created" | "pending" | "approved" | "denied" | "escalated" | "expired" | "cancelled"required
    • tap.tap_type"approval" | "choice" | "input" | "acknowledgment" | "form"required
    • tap.priority"low" | "normal" | "high" | "critical"required
    • tap.titlestringrequired
    • tap.descriptionstring
    • tap.agentobjectrequired
    • tap.agent.idstringrequired

      Agent identifier, for example deploy-bot

    • tap.agent.namestring
    • tap.agent.org_idstring (uuid)
    • tap.agent.didstring
    • tap.agent.avatar_urlstring
    • tap.agent.frameworkstring
    • tap.agent.metadataobject
    • tap.org_idstring (uuid)required
    • tap.assigneesstring (uuid)[]required
    • tap.optionsobject[]required
    • tap.options[].[].keystringrequired

      Machine key, for example approve or deny

    • tap.options[].[].labelstringrequired
    • tap.options[].[].stylestring

      Rendering hint: primary, danger or default

    • tap.options[].[].descriptionstring
    • tap.risk_level"none" | "low" | "medium" | "high" | "critical"
    • tap.approval_policyobject
    • tap.approval_policy.min_approversinteger

      min 1 · default 1

    • tap.approval_policy.require_biometricboolean

      default false

    • tap.approval_policy.required_surfacestring
    • tap.approval_policy.require_reasonboolean

      default false

    • tap.approval_policy.monetary_thresholdnumber
    • tap.approval_policy.monetary_currencystring
    • tap.contextany
    • tap.metadataobject
    • tap.expires_atstring (date-time)
    • tap.callback_urlstring
    • tap.responsesobject[]
    • tap.responses[].[].idstring (uuid)required
    • tap.responses[].[].tap_idstring (uuid)required
    • tap.responses[].[].responder_idstring (uuid)required
    • tap.responses[].[].payloadobjectrequired

      Tagged by type: selection (option_key), text (value) or form (fields)

    • tap.responses[].[].payload.type"selection" | "text" | "form"required
    • tap.responses[].[].payload.option_keystring
    • tap.responses[].[].payload.valuestring
    • tap.responses[].[].payload.fieldsobject
    • tap.responses[].[].source"web" | "ios" | "android" | "watch_os" | "wear_os" | "mac_os" | "windows" | "linux" | "browser_extension" | "slack" | "discord" | "teams" | "telegram" | "webhook" | "voice" | "api"required
    • tap.responses[].[].reasonstring
    • tap.responses[].[].biometric_confirmedboolean
    • tap.responses[].[].ip_addressstring
    • tap.responses[].[].user_agentstring
    • tap.responses[].[].created_atstring (date-time)required
    • tap.tagsstring[]
    • tap.idempotency_keystring
    • tap.created_atstring (date-time)required
    • tap.updated_atstring (date-time)required
  • 403FORBIDDEN human_required (org API key), or the challenge is unavailable in your tenant
  • 422Invalid body
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/taps/agent-lineage/requests" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "challenge_id": "string",
    "signer_did": "string",
    "signature_multibase": "string"
  }'

Get an agent lineage request

GET/v1/taps/agent-lineage/requests/{id}

taps:readTested with an API keytaps_getAgentLineageRequest

Needs taps:read (Taps permission taps.lineage.manage). An unknown id is answered as a validation error ("agent lineage request not found").

Parameters

  • idpath · stringrequired

Responses

  • 200The request
    Response fields
    • requestobjectrequired
    • request.idstring (uuid)required
    • request.org_idstring (uuid)required
    • request.tap_idstring (uuid)required
    • request.statusstringrequired

      For example pending_human_approval, approved_pending_sigil_mint or active

    • request.agent_didstringrequired
    • request.agent_namestring | null
    • request.agent_frameworkstring | null
    • request.keystone_principal_idstring | null
    • request.requested_capabilitiesstring[]required
    • request.target_human_user_idstring | null (uuid)
    • request.requested_by_principal_idstring | null
    • request.requested_by_kindstring | null
    • request.sigil_mint_requiredbooleanrequired
    • request.sigil_networkstringrequired
    • request.sigil_tx_idstring | null
    • request.sigil_mint_payloadany
    • request.hitl_policyany
    • request.callback_urlstring | null
    • request.capability_grant_idstring | null
    • request.metadataany
    • request.approved_atstring | null (date-time)
    • request.denied_atstring | null (date-time)
    • request.activated_atstring | null (date-time)
    • request.created_atstring (date-time)required
    • request.updated_atstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/taps/agent-lineage/requests/$ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Approval delegations

Approval delegations (yours, or the calling key's)

GET/v1/taps/approval-delegations

taps:readtaps_listApprovalDelegations

A person's session lists their own delegations (live and ended). An org API key gets its own principal id (what a person names as delegate), answers_for (the one person it answers for, or null) and the live delegations naming it. Needs taps:read.

Responses

  • 200Delegations
    Response fields
    • principalstring

      The calling key's principal id (keys only)

    • answers_forstring | null

      The person the calling key answers for (keys only)

    • delegationsobject[]required
    • delegations[].[].idstring (uuid)required
    • delegations[].[].owner_idstringrequired

      The person who delegated (h_...)

    • delegations[].[].delegate_idstringrequired

      The org API key's principal id

    • delegations[].[].notestring
    • delegations[].[].created_atstring (date-time)required
    • delegations[].[].expires_atstring (date-time)required
    • delegations[].[].revoked_atstring (date-time)
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/taps/approval-delegations" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Let one org API key answer your taps (person only)

POST/v1/taps/approval-delegations

Person onlytaps_createApprovalDelegation

Person only: your own genesis login session or the Console; an org API key, an agent or a service gets 403. The key then answers your taps as you, from your terminal or your own software, until it expires (1 to 30 days, default 7) or you revoke it. Making it again for the same key replaces it. A key with live delegations from two people answers for nobody. Needs taps:write.

Request body application/json

  • delegatestringrequired

    The key's principal id, as listApprovalDelegations answers that key max length 256

  • expires_in_daysinteger

    min 1 · max 30

  • notestring

    max length 200

Responses

  • 201Delegation made
    Response fields
    • delegationobjectrequired
    • delegation.idstring (uuid)required
    • delegation.owner_idstringrequired

      The person who delegated (h_...)

    • delegation.delegate_idstringrequired

      The org API key's principal id

    • delegation.notestring
    • delegation.created_atstring (date-time)required
    • delegation.expires_atstring (date-time)required
    • delegation.revoked_atstring (date-time)
  • 403FORBIDDEN human_required (not a person's session)
  • 422delegate is not a key principal id, expires_in_days out of range, or note too long
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/taps/approval-delegations" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "delegate": "string"
  }'

Revoke one of your approval delegations (person only)

DELETE/v1/taps/approval-delegations/{id}

Person onlytaps_revokeApprovalDelegation

Person only, as createApprovalDelegation. Needs taps:write. 422 when you have no live delegation with this id.

Parameters

  • idpath · stringrequired

Responses

  • 200Delegation revoked
    Response fields
    • delegationobjectrequired
    • delegation.idstring (uuid)required
    • delegation.owner_idstringrequired

      The person who delegated (h_...)

    • delegation.delegate_idstringrequired

      The org API key's principal id

    • delegation.notestring
    • delegation.created_atstring (date-time)required
    • delegation.expires_atstring (date-time)required
    • delegation.revoked_atstring (date-time)
  • 403FORBIDDEN human_required
  • 422No live delegation of yours has this id
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/taps/approval-delegations/$ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Approval mode

Your own approval mode (person only)

GET/v1/taps/approval-mode

taps:readtaps_getApprovalMode

Person only: your own genesis login session (or the Console). An org API key, an agent, a service or any non-person principal gets 403 FORBIDDEN person_required, before anything is read. Needs taps:read (Taps permission taps.responses.create). Manual, Auto or Bypass, which Taps applies to every request made for you. With nothing set the mode is manual and default is true.

Responses

  • 200Your mode
    Response fields
    • mode"manual" | "auto" | "bypass"required
    • set_atstring | null (date-time)required
    • defaultbooleanrequired

      True when you never set a mode (it is then manual)

  • 403FORBIDDEN person_required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/taps/approval-mode" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Set your own approval mode (person only)

PUT/v1/taps/approval-mode

taps:writetaps_setApprovalMode

Person only, as getApprovalMode. Needs taps:write (Taps permission taps.responses.create). Your right is checked before the body, so a key or an agent gets the same 403 for any body. A move to a LOOSER mode (manual, then auto, then bypass) needs auth_proof: Auth's passkey step-up proof bound to ["one.approval-mode.v1", person, from, to], spent once. Without it 403 PASSKEY_REQUIRED; a spent proof 409 PROOF_REPLAYED. An equal or stricter move never needs one. Every set is written to your own log (listApprovalModeEvents).

Request body application/json

  • mode"manual" | "auto" | "bypass"required
  • auth_proofstring

    Auth's passkey step-up proof (a JWS); needed only for a looser mode

Responses

  • 200The mode now set and the one before it
    Response fields
    • mode"manual" | "auto" | "bypass"required
    • previous"manual" | "auto" | "bypass"required
    • set_atstring (date-time)required
    • defaultbooleanrequired
  • 400The body is not a JSON object
  • 403FORBIDDEN person_required, or PASSKEY_REQUIRED for a looser mode without a proof
  • 409PROOF_REPLAYED (the proof was already spent), or PASSKEY_UNAVAILABLE (Taps cannot check proofs right now)
  • 413The body is over 1 MiB
  • 415The body is not application/json
  • 422An unknown mode or an unknown body field (a plain-text rejection, not the error envelope)
  • 503BUSY_TRY_AGAIN
  • 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/taps/approval-mode" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "manual"
  }'

Your own approval mode log, newest first (person only)

GET/v1/taps/approval-mode/events

taps:readtaps_listApprovalModeEvents

Person only, as getApprovalMode. Needs taps:read (Taps permission taps.responses.create). Every change you made, newest first, with the surface you made it from.

Parameters

  • limitquery · integer

    How many, newest first; Taps clamps it to 1-500

Responses

  • 200Your log
    Response fields
    • eventsobject[]required
    • events[].[].idstring (uuid)required
    • events[].[].from_mode"manual" | "auto" | "bypass"required
    • events[].[].to_mode"manual" | "auto" | "bypass"required
    • events[].[].atstring (date-time)required
    • events[].[].sourcestringrequired

      The surface it was set from, a closed word (gateway_session, human_session)

  • 403FORBIDDEN person_required
  • 422An unknown query key
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/taps/approval-mode/events" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Devices

List your own push devices (person only)

GET/v1/taps/devices

taps:readtaps_listDevices

Person only: your own genesis login session (or the Console). An org API key, an agent or any non-person principal gets 403 FORBIDDEN person_required. Needs taps:read (Taps permission taps.responses.create). Returns only the caller's devices; the token is never returned, only an 8-hex token_hint. 404 while the device registry is off.

Responses

  • 200Your devices
    Response fields
    • devicesobject[]required
    • devices[].[].idstring (uuid)required
    • devices[].[].platform"ios" | "macos" | "watchos"required
    • devices[].[].appstringrequired
    • devices[].[].apns_environment"sandbox" | "production"required

      Which APNs gateway the token belongs to (Xcode debug builds are sandbox; TestFlight and App Store are production). Not the OneOS environment.

    • devices[].[].token_hintstringrequired

      First 8 hex characters of sha256(token).

    • devices[].[].created_atstring (date-time)required
    • devices[].[].last_seen_atstring (date-time)required
    • devices[].[].disabledbooleanrequired
    • devices[].[].last_statusstring | nullrequired
  • 403FORBIDDEN person_required (org API key, agent or non-person principal)
  • 404Device registry not enabled
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/taps/devices" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Register or refresh one of your push devices (person only)

POST/v1/taps/devices

taps:writetaps_registerDevice

Person only, as listDevices. Needs taps:write (Taps permission taps.responses.create). app must be one of One's bundle ids; token is the APNs device token (32 to 200 hex characters), sealed at rest and never returned. Refreshing the same token keeps its id. A caller in the Live environment is refused (404) until Taps enables Live registration. At most 20 devices per person; the oldest is dropped.

Request body application/json

  • platform"ios" | "macos" | "watchos"required
  • app"ml.one.app" | "ml.one.app.watchkitapp" | "ml.one.desktop" | "ml.one.admin"required
  • apns_environment"sandbox" | "production"required

    Which APNs gateway the token belongs to (Xcode debug builds are sandbox; TestFlight and App Store are production). Not the OneOS environment.

  • tokenstringrequired

    The APNs device token. Never returned. pattern ^[0-9A-Fa-f]{32,200}$

Responses

  • 201The device (no token)
    Response fields
    • idstring (uuid)required
    • platform"ios" | "macos" | "watchos"required
    • appstringrequired
    • apns_environment"sandbox" | "production"required

      Which APNs gateway the token belongs to (Xcode debug builds are sandbox; TestFlight and App Store are production). Not the OneOS environment.

    • token_hintstringrequired

      First 8 hex characters of sha256(token).

    • created_atstring (date-time)required
    • last_seen_atstring (date-time)required
    • disabledbooleanrequired
    • last_statusstring | nullrequired
  • 403FORBIDDEN person_required (org API key, agent or non-person principal)
  • 404Device registry not enabled, or not enabled for your environment
  • 422Unknown app or a malformed token
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/taps/devices" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "ios",
    "app": "ml.one.app",
    "apns_environment": "sandbox",
    "token": "string"
  }'

Remove one of your push devices (person only)

DELETE/v1/taps/devices/{id}

taps:writetaps_removeDevice

Person only, as listDevices. Needs taps:write (Taps permission taps.responses.create). Someone else's device, or an unknown id, is 404.

Parameters

  • idpath · stringrequired

Responses

  • 204Removed
  • 403FORBIDDEN person_required (org API key, agent or non-person principal)
  • 404Not your device, or the registry is not enabled
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/taps/devices/$ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Escalation policies

List escalation policies

GET/v1/taps/escalation-policies

taps:readTested with an API keytaps_listEscalationPolicies

Needs taps:read (Taps permission taps.escalations.manage).

Responses

  • 200Escalation policies in your tenant
    Response fields
    • policiesobject[]required
    • policies[].[].idstring (uuid)required
    • policies[].[].org_idstring (uuid)required
    • policies[].[].namestringrequired
    • policies[].[].enabledbooleanrequired
    • policies[].[].stepsobject[]required
    • policies[].[].steps[].[].delay_secsintegerrequired

      min 0

    • policies[].[].steps[].[].actionobjectrequired

      Tagged by type: remind, route_to_backup (user_id), route_to_team (team_id), elevate_priority (to), auto_deny, auto_approve

    • policies[].[].steps[].[].action.type"remind" | "route_to_backup" | "route_to_team" | "elevate_priority" | "auto_deny" | "auto_approve"required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/taps/escalation-policies" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create an escalation policy

POST/v1/taps/escalation-policies

taps:writeTested with an API keytaps_createEscalationPolicy

Needs taps:write (Taps permission taps.escalations.manage).

Request body application/json

  • namestringrequired
  • stepsobject[]required
  • steps[].[].delay_secsintegerrequired

    min 0

  • steps[].[].actionobjectrequired

    Tagged by type: remind, route_to_backup (user_id), route_to_team (team_id), elevate_priority (to), auto_deny, auto_approve

  • steps[].[].action.type"remind" | "route_to_backup" | "route_to_team" | "elevate_priority" | "auto_deny" | "auto_approve"required
  • enabledboolean

    default true

Responses

  • 201Policy created (the response carries id, org_id, name, enabled and steps)
    Response fields
    • policyobjectrequired
    • policy.idstring (uuid)required
    • policy.org_idstring (uuid)required
    • policy.namestringrequired
    • policy.enabledbooleanrequired
    • policy.stepsobject[]required
    • policy.steps[].[].delay_secsintegerrequired

      min 0

    • policy.steps[].[].actionobjectrequired

      Tagged by type: remind, route_to_backup (user_id), route_to_team (team_id), elevate_priority (to), auto_deny, auto_approve

    • policy.steps[].[].action.type"remind" | "route_to_backup" | "route_to_team" | "elevate_priority" | "auto_deny" | "auto_approve"required
  • 422Invalid steps
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/taps/escalation-policies" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "steps": []
  }'

Delete an escalation policy

DELETE/v1/taps/escalation-policies/{id}

taps:writeTested with an API keytaps_deleteEscalationPolicy

Needs taps:write (Taps permission taps.escalations.manage).

Parameters

  • idpath · stringrequired

Responses

curl -X DELETE "https://os.one.ml/api/v1/taps/escalation-policies/$ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Rename, enable or disable an escalation policy

PATCH/v1/taps/escalation-policies/{id}

taps:writeTested with an API keytaps_updateEscalationPolicy

Needs taps:write (Taps permission taps.escalations.manage). Steps cannot change.

Parameters

  • idpath · stringrequired

Request body application/json

  • namestring
  • enabledboolean

Responses

  • 200The updated policy
    Response fields
    • policyobjectrequired
    • policy.idstring (uuid)required
    • policy.org_idstring (uuid)required
    • policy.namestringrequired
    • policy.enabledbooleanrequired
    • policy.stepsobject[]required
    • policy.steps[].[].delay_secsintegerrequired

      min 0

    • policy.steps[].[].actionobjectrequired

      Tagged by type: remind, route_to_backup (user_id), route_to_team (team_id), elevate_priority (to), auto_deny, auto_approve

    • policy.steps[].[].action.type"remind" | "route_to_backup" | "route_to_team" | "elevate_priority" | "auto_deny" | "auto_approve"required
  • 404Not found in your tenant
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/taps/escalation-policies/$ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Inbox

List what is waiting on you (person only)

GET/v1/taps/inbox

taps:readtaps_listInbox

Person only: your own genesis login session (or the Console). An org API key, an agent or any non-person principal gets 403 FORBIDDEN person_required. Needs taps:read (Taps permission taps.responses.create). Only what is assigned to you; anyone else's id is 404. 404 while Taps' inbox is off. Newest first; next_cursor continues the list.

Parameters

  • statequery · "waiting" | "history"
  • kindquery · "approve" | "choice" | "needs_info" | "review_draft" | "connect" | "confirm" | "handoff" | "tap"
  • agentquery · string
  • threadquery · string
  • cursorquery · string
  • limitquery · integer

Responses

  • 200One page of your items
    Response fields
    • itemsobject[]required
    • items[].[].idstring (uuid)required
    • items[].[].tap_idstring (uuid)required
    • items[].[].item_idstring | null (uuid)required
    • items[].[].kind"approve" | "choice" | "needs_info" | "review_draft" | "connect" | "confirm" | "handoff" | "tap"required
    • items[].[].state"waiting" | "approved" | "denied" | "answered" | "expired" | "withdrawn"required
    • items[].[].titlestringrequired
    • items[].[].summarystringrequired
    • items[].[].agentobject | nullrequired
    • items[].[].agent.idstringrequired
    • items[].[].agent.namestring | nullrequired
    • items[].[].thread_idstring | nullrequired
    • items[].[].run_idstring | nullrequired
    • items[].[].created_atstring (date-time)required
    • items[].[].expires_atstring | null (date-time)required
    • items[].[].resolved_atstring | null (date-time)required
    • items[].[].resolutionobject | nullrequired
    • items[].[].resolution.answer_kindstringrequired
    • items[].[].resolution.bystringrequired
    • items[].[].actionsobject[]required
    • items[].[].actions[].[].keystringrequired
    • items[].[].actions[].[].labelstringrequired
    • items[].[].actions[].[].stylestring | nullrequired
    • items[].[].actions_totalintegerrequired

      min 0

    • items[].[].lock_screen"approve_ok" | "review_only"required
    • items[].[].deep_linkstringrequired
    • items[].[].chargesbooleanrequired
    • items[].[].amountobject | nullrequired
    • items[].[].amount_source"taps" | "agent" | nullrequired
    • items[].[].escalation_lineobject | nullrequired
    • items[].[].escalation_line.code"over_ceiling" | "passkey" | "credential" | "authority"required
    • items[].[].escalation_line.limitobject | nullrequired
    • items[].[].escalation_source"taps" | "agent" | nullrequired
    • items[].[].noticestringrequired
    • items[].[].deciderstring | nullrequired
    • next_cursorstring | nullrequired
  • 403FORBIDDEN person_required (org API key, agent or non-person principal)
  • 404The inbox is not enabled
  • 422Unknown state or kind, a limit outside 1-100, a bad cursor, or an unknown query key
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/taps/inbox" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

One of your items with what its card needs (person only)

GET/v1/taps/inbox/{id}

taps:readtaps_getInboxItem

Person only: your own genesis login session (or the Console). An org API key, an agent or any non-person principal gets 403 FORBIDDEN person_required. Needs taps:read (Taps permission taps.responses.create). Only what is assigned to you; anyone else's id is 404. 404 while Taps' inbox is off. spec holds what the card draws (options, the field to fill, the connect page), never an answer; external_link is a hand-off's link, which leaves One.

Parameters

  • idpath · stringrequired

Responses

  • 200The item
    Response fields
    • itemobjectrequired

      taps-core InboxItem (crates/taps-core/src/inbox.rs), as taps-api serialises it.

    • item.idstring (uuid)required
    • item.tap_idstring (uuid)required
    • item.item_idstring | null (uuid)required
    • item.kind"approve" | "choice" | "needs_info" | "review_draft" | "connect" | "confirm" | "handoff" | "tap"required
    • item.state"waiting" | "approved" | "denied" | "answered" | "expired" | "withdrawn"required
    • item.titlestringrequired
    • item.summarystringrequired
    • item.agentobject | nullrequired
    • item.agent.idstringrequired
    • item.agent.namestring | nullrequired
    • item.thread_idstring | nullrequired
    • item.run_idstring | nullrequired
    • item.created_atstring (date-time)required
    • item.expires_atstring | null (date-time)required
    • item.resolved_atstring | null (date-time)required
    • item.resolutionobject | nullrequired
    • item.resolution.answer_kindstringrequired
    • item.resolution.bystringrequired
    • item.actionsobject[]required
    • item.actions[].[].keystringrequired
    • item.actions[].[].labelstringrequired
    • item.actions[].[].stylestring | nullrequired
    • item.actions_totalintegerrequired

      min 0

    • item.lock_screen"approve_ok" | "review_only"required
    • item.deep_linkstringrequired
    • item.chargesbooleanrequired
    • item.amountobject | nullrequired
    • item.amount_source"taps" | "agent" | nullrequired
    • item.escalation_lineobject | nullrequired
    • item.escalation_line.code"over_ceiling" | "passkey" | "credential" | "authority"required
    • item.escalation_line.limitobject | nullrequired
    • item.escalation_source"taps" | "agent" | nullrequired
    • item.noticestringrequired
    • item.deciderstring | nullrequired
    • specanyrequired

      taps-core HitlSpec: what the card draws (options, field, connect page); never an answer.

    • external_linkstring | nullrequired
  • 403FORBIDDEN person_required
  • 404Not yours, unknown, or the inbox is not enabled
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/taps/inbox/$ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

How many items wait on you (person only)

GET/v1/taps/inbox/badge

taps:readtaps_getInboxBadge

Person only: your own genesis login session (or the Console). An org API key, an agent or any non-person principal gets 403 FORBIDDEN person_required. Needs taps:read (Taps permission taps.responses.create). Only what is assigned to you; anyone else's id is 404. 404 while Taps' inbox is off.

Responses

  • 200The count and the oldest waiting time
    Response fields
    • waitingintegerrequired

      min 0

    • oldest_waiting_atstring | null (date-time)required
  • 403FORBIDDEN person_required
  • 404The inbox is not enabled
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/taps/inbox/badge" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Live changes to your inbox over Server-Sent Events (person only)

GET/v1/taps/inbox/stream

taps:readtaps_streamInbox

Person only: your own genesis login session (or the Console). An org API key, an agent or any non-person principal gets 403 FORBIDDEN person_required. Needs taps:read (Taps permission taps.responses.create). Only what is assigned to you; anyone else's id is 404. 404 while Taps' inbox is off. A text/event-stream of item.created, item.resolved, item.expired and item.withdrawn events for your own items (ids and state only, never text, each with the fresh badge), plus resync when you fell behind (reload the list). Keep-alive comments every 15 s. The gateway ends the stream after about 5.5 minutes (Taps after 10): reconnect. At most 4 open streams per person (429 beyond).

Responses

  • 200Event stream
    Response fields

    Type: string

  • 403FORBIDDEN person_required
  • 404The inbox is not enabled
  • 429Too many open streams for this person
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/taps/inbox/stream" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Integrations

Get the Garden integration status

GET/v1/taps/integrations/garden

taps:readTested with an API keytaps_getGardenIntegration

Needs taps:read (Taps permission taps.integrations.read). Computed from your identity.

Responses

  • 200Integration status
    Response fields
    • connectedbooleanrequired
    • modestringrequired
    • requires_separate_loginbooleanrequired
    • organization_idstring (uuid)required

      Your Taps tenant partition id

    • principal_idstringrequired
    • principal_kindstringrequired

      human or service

    • platform_idstringrequired
    • taps_base_urlstringrequired
    • hitl_availablebooleanrequired
    • agent_lineage_availablebooleanrequired
    • billing_metered_by_gardenbooleanrequired
    • keystone_authoritybooleanrequired
    • sigil_lineage_required_for_agentsbooleanrequired
    • hitl_surfacesstring[]required
    • next_stepsstring[]required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/taps/integrations/garden" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Enable the Garden integration

POST/v1/taps/integrations/garden/enable

taps:writeTested with an API keytaps_enableGardenIntegration

Needs taps:write (Taps permission taps.integrations.manage). Send {}: the gateway requires a JSON object body and taps-api ignores it. Returns the same status as the read.

Request body application/json

A JSON object; see the description above.

Responses

  • 200Integration status
    Response fields
    • connectedbooleanrequired
    • modestringrequired
    • requires_separate_loginbooleanrequired
    • organization_idstring (uuid)required

      Your Taps tenant partition id

    • principal_idstringrequired
    • principal_kindstringrequired

      human or service

    • platform_idstringrequired
    • taps_base_urlstringrequired
    • hitl_availablebooleanrequired
    • agent_lineage_availablebooleanrequired
    • billing_metered_by_gardenbooleanrequired
    • keystone_authoritybooleanrequired
    • sigil_lineage_required_for_agentsbooleanrequired
    • hitl_surfacesstring[]required
    • next_stepsstring[]required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/taps/integrations/garden/enable" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Management

Who manages these resources (Managed by)

GET/v1/taps/management

taps:readtaps_listManagement

Needs taps:read (Taps permission taps.taps.read). One answer per ref asked, in the order asked: at most 10 per request through the gateway, so that ten refs of the longest form, percent-encoded, fit the relay's 8 KiB query limit (Taps itself takes up to 100); ask again for more. A ref nobody has claimed answers manager: null. A resource ref is <service>:<family>:<id>, the ref the Console's parity table uses.

Parameters

  • refquery · string[]required

    A resource ref, <service>:<family>:<id>; repeat it for more (at most 10 through the gateway)

Responses

  • 200Who manages each ref
    Response fields
    • itemsobject[]required
    • items[].[].refstringrequired

      <service>:<family>:<id> (the grammar Taps checks; the id may itself contain :), for example hives:project:hp_123 min length 5 · max length 282 · pattern ^[a-z0-9_-]{1,40}:[a-z0-9_-]{1,40}:[A-Za-z0-9_.:-]{1,200}$

    • items[].[].managerobject | nullrequired

      Who manages it; null when nobody does.

    • items[].[].sincestring | null (date-time)required

      Since when the manager has held it; null when nobody does.

    • items[].[].taken_overobject | nullrequired

      The person who took it over and when; null when nobody did.

    • items[].[].taken_over.bystringrequired
    • items[].[].taken_over.atstring (date-time)required
  • 422No ref, more than 10, a malformed ref, or another query key
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/taps/management?ref=$REF" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Claim a resource you created (Managed by)

PUT/v1/taps/management/{ref}

taps:writetaps_claimManagement

Needs taps:write (Taps permission taps.taps.create). An agent, a fleet, an org API key or an infrastructure-as-code file claims a resource it created, so the Console shows Managed by and offers Take over before a person edits it. A repeat by the same claimant answers 200 and keeps since; the same manager named by a different caller is 409 MANAGED_ELSEWHERE and changes nothing. A resource a person took over needs that person's release first (409 TAKEN_OVER); a resource another manager holds is 409 MANAGED_ELSEWHERE. The manager is bound to the caller: an agent names only itself ({kind: agent, id: <its own id>}); an API key (org or personal) names itself (kind: key) or any file or fleet id (kind: file | fleet; Taps cannot verify those ids, so the claimant identity is recorded and may release it); a person's session never claims (a person takes over instead). Any other manager, or any other caller, is 403 FORBIDDEN.

Parameters

  • refpath · stringrequired

Request body application/json

  • managerobjectrequired
  • manager.kind"agent" | "fleet" | "file" | "key"required
  • manager.idstringrequired

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

  • manager.namestring

    A display name with no control characters min length 1 · max length 120 · pattern ^[^\x00-\x1F\x7F]{1,120}$

Responses

  • 200The resource's management after the claim
    Response fields
    • refstringrequired

      <service>:<family>:<id> (the grammar Taps checks; the id may itself contain :), for example hives:project:hp_123 min length 5 · max length 282 · pattern ^[a-z0-9_-]{1,40}:[a-z0-9_-]{1,40}:[A-Za-z0-9_.:-]{1,200}$

    • managerobject | nullrequired

      Who manages it; null when nobody does.

    • sincestring | null (date-time)required

      Since when the manager has held it; null when nobody does.

    • taken_overobject | nullrequired

      The person who took it over and when; null when nobody did.

    • taken_over.bystringrequired
    • taken_over.atstring (date-time)required
  • 403FORBIDDEN: the manager is not the caller (an agent itself; a key itself or any file or fleet id), or the caller is a person session or another kind
  • 409TAKEN_OVER (a person took it over) or MANAGED_ELSEWHERE (another manager holds it)
  • 422A malformed ref or body
  • 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/taps/management/$REF" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "manager": {
      "kind": "agent",
      "id": "string"
    }
  }'

Hand a resource back (Managed by)

DELETE/v1/taps/management/{ref}

taps:writetaps_releaseManagement

Needs taps:write (Taps permission taps.taps.create). The current manager, or the person who took it over, hands it back; anyone else gets 403. No request body. Releasing a ref nobody manages answers 200 and changes nothing.

Parameters

  • refpath · stringrequired

Responses

  • 200The resource's management after the release (manager null)
    Response fields
    • refstringrequired

      <service>:<family>:<id> (the grammar Taps checks; the id may itself contain :), for example hives:project:hp_123 min length 5 · max length 282 · pattern ^[a-z0-9_-]{1,40}:[a-z0-9_-]{1,40}:[A-Za-z0-9_.:-]{1,200}$

    • managerobject | nullrequired

      Who manages it; null when nobody does.

    • sincestring | null (date-time)required

      Since when the manager has held it; null when nobody does.

    • taken_overobject | nullrequired

      The person who took it over and when; null when nobody did.

    • taken_over.bystringrequired
    • taken_over.atstring (date-time)required
  • 403Not the manager and not the person who took it over
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/taps/management/$REF" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Takeover

Take over a managed resource (person only)

POST/v1/taps/management/{ref}/takeover

taps:writetaps_takeOverManagement

Person only, as setSurfacePolicy. Needs taps:write (Taps permission taps.taps.create). Detaches the resource from its manager, records management.taken_over in Activity with the previous manager, and tells the manager (it sees taken_over on its next listManagement). No request body. Taking over a resource nobody manages answers 200.

Parameters

  • refpath · stringrequired

Responses

  • 200The resource's management after the takeover
    Response fields
    • refstringrequired

      <service>:<family>:<id> (the grammar Taps checks; the id may itself contain :), for example hives:project:hp_123 min length 5 · max length 282 · pattern ^[a-z0-9_-]{1,40}:[a-z0-9_-]{1,40}:[A-Za-z0-9_.:-]{1,200}$

    • managerobject | nullrequired

      Who manages it; null when nobody does.

    • sincestring | null (date-time)required

      Since when the manager has held it; null when nobody does.

    • taken_overobject | nullrequired

      The person who took it over and when; null when nobody did.

    • taken_over.bystringrequired
    • taken_over.atstring (date-time)required
  • 403FORBIDDEN person_required (org API key, agent or non-person principal)
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/taps/management/$REF/takeover" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Org pause

Read your organization's global pause (pause everything)

GET/v1/taps/org-pause

taps:readtaps_getOrgPause

Needs taps:read (Taps permission taps.taps.read). While paused is true, Taps refuses every approved outward act at consume and every Henry claim for the whole organization, until a person lifts it. at, by_kind and code say when, by what kind of caller and why; all are null while off.

Responses

  • 200The org pause as Taps holds it now
    Response fields
    • pausedbooleanrequired
    • atstring | null (date-time)

      When the pause went on; null while off.

    • by_kind"human" | "agent" | "service" | null

      The kind of caller that paused; null while off.

    • codestring | null

      Why it was paused (one of the pause codes); null while off.

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/taps/org-pause" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Pause everything in your organization

PUT/v1/taps/org-pause

taps:writetaps_pauseOrg

Needs taps:write (Taps permission taps.taps.create). Any member may pause, a person, an org API key, an agent or a service: a person's press uses owner_press, a kill switch the code of what tripped it. Pauses by a non-person caller are limited per hour; every pause and repeat is audited with who did it. A repeat while paused answers 200 and keeps the first pause. source_id is an id, never text. Only a person signed in themselves lifts it (DELETE).

Request body application/json

  • code"owner_press" | "legal_notice" | "abuse_notice" | "bounce_rate" | "complaint_rate" | "unsubscribe_rate" | "opt_out_rate" | "captcha" | "sign_in_wall" | "policy_warning" | "other"required
  • source_idstring

    What tripped it, as an id (a lane, a notice, a metric window), never text. min length 1 · max length 128 · pattern ^[A-Za-z0-9_:.-]{1,128}$

Responses

  • 200The org pause after the change
    Response fields
    • pausedbooleanrequired
    • atstring | null (date-time)

      When the pause went on; null while off.

    • by_kind"human" | "agent" | "service" | null

      The kind of caller that paused; null while off.

    • codestring | null

      Why it was paused (one of the pause codes); null while off.

  • 422Unknown pause code, a source_id that is not an id, or another key
  • 503BUSY_TRY_AGAIN: too many pauses from a non-person caller this hour
  • 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/taps/org-pause" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "code": "owner_press"
  }'

Lift your organization's global pause (person only)

DELETE/v1/taps/org-pause

taps:writetaps_resumeOrg

Needs taps:write (Taps permission taps.settings.manage). Only a person's own signed-in session lifts the pause; an org API key, an agent or a service gets 403 from Taps. No request body. Lifting when off answers 200 and changes nothing.

Responses

  • 200The org pause after the change (paused false)
    Response fields
    • pausedbooleanrequired
    • atstring | null (date-time)

      When the pause went on; null while off.

    • by_kind"human" | "agent" | "service" | null

      The kind of caller that paused; null while off.

    • codestring | null

      Why it was paused (one of the pause codes); null while off.

  • 403Not a person signed in themselves
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/taps/org-pause" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Routing rules

List routing rules

GET/v1/taps/routing-rules

taps:readTested with an API keytaps_listRoutingRules

Needs taps:read (Taps permission taps.routing.manage).

Responses

  • 200Routing rules in your tenant
    Response fields
    • rulesobject[]required
    • rules[].[].idstring (uuid)required
    • rules[].[].namestringrequired
    • rules[].[].org_idstring (uuid)required
    • rules[].[].user_idstring (uuid)required
    • rules[].[].conditionobjectrequired

      Tagged by type: priority_at_least (priority), from_agent (agent_id), has_tag (tag), time_window (after, before, timezone), focus_mode, monetary_above (amount, currency), all or any (conditions), always

    • rules[].[].condition.type"priority_at_least" | "from_agent" | "has_tag" | "time_window" | "focus_mode" | "monetary_above" | "all" | "any" | "always"required
    • rules[].[].actionobjectrequired

      Tagged by type: route_to_user or cc_user (user_id), require_multi_approval (min_approvers), suppress, elevate_priority (to), restrict_surfaces (surfaces)

    • rules[].[].action.type"route_to_user" | "cc_user" | "require_multi_approval" | "suppress" | "elevate_priority" | "restrict_surfaces"required
    • rules[].[].orderintegerrequired
    • rules[].[].enabledbooleanrequired
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/taps/routing-rules" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create a routing rule

POST/v1/taps/routing-rules

taps:writeTested with an API keytaps_createRoutingRule

Needs taps:write (Taps permission taps.routing.manage).

Request body application/json

  • namestringrequired
  • conditionobjectrequired

    Tagged by type: priority_at_least (priority), from_agent (agent_id), has_tag (tag), time_window (after, before, timezone), focus_mode, monetary_above (amount, currency), all or any (conditions), always

  • condition.type"priority_at_least" | "from_agent" | "has_tag" | "time_window" | "focus_mode" | "monetary_above" | "all" | "any" | "always"required
  • actionobjectrequired

    Tagged by type: route_to_user or cc_user (user_id), require_multi_approval (min_approvers), suppress, elevate_priority (to), restrict_surfaces (surfaces)

  • action.type"route_to_user" | "cc_user" | "require_multi_approval" | "suppress" | "elevate_priority" | "restrict_surfaces"required
  • orderinteger

    default 0

  • enabledboolean

    default true

Responses

  • 201Rule created
    Response fields
    • ruleobjectrequired
    • rule.idstring (uuid)required
    • rule.namestringrequired
    • rule.org_idstring (uuid)required
    • rule.user_idstring (uuid)required
    • rule.conditionobjectrequired

      Tagged by type: priority_at_least (priority), from_agent (agent_id), has_tag (tag), time_window (after, before, timezone), focus_mode, monetary_above (amount, currency), all or any (conditions), always

    • rule.condition.type"priority_at_least" | "from_agent" | "has_tag" | "time_window" | "focus_mode" | "monetary_above" | "all" | "any" | "always"required
    • rule.actionobjectrequired

      Tagged by type: route_to_user or cc_user (user_id), require_multi_approval (min_approvers), suppress, elevate_priority (to), restrict_surfaces (surfaces)

    • rule.action.type"route_to_user" | "cc_user" | "require_multi_approval" | "suppress" | "elevate_priority" | "restrict_surfaces"required
    • rule.orderintegerrequired
    • rule.enabledbooleanrequired
  • 422Invalid condition or action
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/taps/routing-rules" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "condition": {
      "type": "priority_at_least"
    },
    "action": {
      "type": "route_to_user"
    }
  }'

Delete a routing rule

DELETE/v1/taps/routing-rules/{id}

taps:writeTested with an API keytaps_deleteRoutingRule

Needs taps:write (Taps permission taps.routing.manage).

Parameters

  • idpath · stringrequired

Responses

curl -X DELETE "https://os.one.ml/api/v1/taps/routing-rules/$ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Enable or disable a routing rule

PATCH/v1/taps/routing-rules/{id}

taps:writeTested with an API keytaps_updateRoutingRule

Needs taps:write (Taps permission taps.routing.manage). Only enabled can change.

Parameters

  • idpath · stringrequired

Request body application/json

  • enabledbooleanrequired

Responses

  • 200The updated rule
    Response fields
    • ruleobjectrequired
    • rule.idstring (uuid)required
    • rule.namestringrequired
    • rule.org_idstring (uuid)required
    • rule.user_idstring (uuid)required
    • rule.conditionobjectrequired

      Tagged by type: priority_at_least (priority), from_agent (agent_id), has_tag (tag), time_window (after, before, timezone), focus_mode, monetary_above (amount, currency), all or any (conditions), always

    • rule.condition.type"priority_at_least" | "from_agent" | "has_tag" | "time_window" | "focus_mode" | "monetary_above" | "all" | "any" | "always"required
    • rule.actionobjectrequired

      Tagged by type: route_to_user or cc_user (user_id), require_multi_approval (min_approvers), suppress, elevate_priority (to), restrict_surfaces (surfaces)

    • rule.action.type"route_to_user" | "cc_user" | "require_multi_approval" | "suppress" | "elevate_priority" | "restrict_surfaces"required
    • rule.orderintegerrequired
    • rule.enabledbooleanrequired
  • 404Not found in your tenant
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/taps/routing-rules/$ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "enabled": true
  }'

Settings

Get your tenant's Taps settings

GET/v1/taps/settings

taps:readTested with an API keytaps_getSettings

Needs taps:read (Taps permission taps.settings.manage).

Responses

  • 200Settings with defaults applied
    Response fields
    • settingsobjectrequired
    • settings.pushbooleanrequired

      default true

    • settings.emailbooleanrequired

      default true

    • settings.focusbooleanrequired

      default false

    • settings.biometricbooleanrequired

      default false

    • settings.reasonRequiredbooleanrequired

      default false

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/taps/settings" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Change Taps settings

PATCH/v1/taps/settings

taps:writeTested with an API keytaps_updateSettings

Needs taps:write (Taps permission taps.settings.manage). Send only the keys to change; every value must be a boolean and any other key is 422.

Request body application/json

  • pushboolean
  • emailboolean
  • focusboolean
  • biometricboolean
  • reasonRequiredboolean

Responses

  • 200Settings after the change
    Response fields
    • settingsobjectrequired
    • settings.pushbooleanrequired

      default true

    • settings.emailbooleanrequired

      default true

    • settings.focusbooleanrequired

      default false

    • settings.biometricbooleanrequired

      default false

    • settings.reasonRequiredbooleanrequired

      default false

  • 422Unknown setting or a non-boolean value
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/taps/settings" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Surface policy

Read your organization's Console policy for Live (Live is read-only in the Console, or not)

GET/v1/taps/surface-policy

taps:readtaps_getSurfacePolicy

Needs taps:read (Taps permission taps.taps.read); any member may read it. live_console is writes (the default) or read_only. While read_only, the gateway refuses a changing operation in Live whose caller is the Console surface (403 SURFACE_READ_ONLY with lift_op: taps_setSurfacePolicy), except stops, approval answers and lifting the policy itself; API, SDK, CLI and MCP callers keep writing, and Sandbox is never affected. The gateway only observes this today (GATEWAY_SURFACE_POLICY); nothing is refused yet.

Responses

  • 200The policy as Taps holds it now
    Response fields
    • live_console"writes" | "read_only"required

      writes: the Console may change things in Live (the default). read_only: Live is read-only in the Console.

    • updated_atstring | null (date-time)required

      When it was last set; null while never set.

    • updated_byobject | nullrequired

      The person who last set it; null while never set.

    • updated_by.kind"person"required
    • updated_by.idstringrequired
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/taps/surface-policy" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Set your organization's Console policy for Live (person only)

PUT/v1/taps/surface-policy

taps:writetaps_setSurfacePolicy

Person only: a person's own signed-in session (or the Console). An org API key, an agent or any non-person principal gets 403 FORBIDDEN person_required. Needs taps:write (Taps permission taps.settings.manage). Restricting (read_only) is a reversible change; lifting it (read_only to writes) widens what the Console may do in Live: Taps itself verifies the person's step-up proof (auth_proof, Auth's passkey step-up JWS, as on setApprovalMode) and answers 403 PASSKEY_REQUIRED without a valid one. The proof is bound to sha256 hex of the compact JSON ["taps.surface-policy.v1", org, person, "read_only", "writes"] (org = the caller's organization id as a lowercase hyphenated UUID; person = the caller's own h_ id), so a proof for one organization never lifts another and its jti is spent once: a spent proof is 409 PROOF_REPLAYED, and 409 PASSKEY_UNAVAILABLE when Taps cannot check proofs right now. The gateway forwards the body as sent and never adds or makes a proof. Audited like the org pause. An unknown key or value is 422. Never refused by the surface policy itself, so a person can always lift it.

Request body application/json

  • live_console"writes" | "read_only"required

    writes: the Console may change things in Live (the default). read_only: Live is read-only in the Console.

  • auth_proofstring

    Auth's passkey step-up proof (a JWS), the same field setApprovalMode takes. Taps verifies it on a lift (read_only to writes) and answers 403 PASSKEY_REQUIRED without a valid one; a restriction never needs it.

Responses

  • 200The policy after the change
    Response fields
    • live_console"writes" | "read_only"required

      writes: the Console may change things in Live (the default). read_only: Live is read-only in the Console.

    • updated_atstring | null (date-time)required

      When it was last set; null while never set.

    • updated_byobject | nullrequired

      The person who last set it; null while never set.

    • updated_by.kind"person"required
    • updated_by.idstringrequired
  • 403FORBIDDEN person_required, or PASSKEY_REQUIRED (Taps verifies the step-up proof on a lift and answers this without a valid one)
  • 409PROOF_REPLAYED (the proof was already spent), or PASSKEY_UNAVAILABLE (Taps cannot check proofs right now)
  • 422An unknown key or value
  • 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/taps/surface-policy" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "live_console": "writes"
  }'

Taps

List taps

GET/v1/taps/taps

taps:readTested with an API keytaps_listTaps

Needs taps:read (Taps permission taps.taps.read). Newest first.

Parameters

  • statusquery · string

    Comma-separated statuses, for example pending,escalated

  • assignee_idquery · string (uuid)
  • limitquery · integer

    1 to 100 (clamped); default 50

  • offsetquery · integer

Responses

  • 200One page of taps
    Response fields
    • tapsobject[]required
    • taps[].[].idstring (uuid)required
    • taps[].[].status"created" | "pending" | "approved" | "denied" | "escalated" | "expired" | "cancelled"required
    • taps[].[].tap_type"approval" | "choice" | "input" | "acknowledgment" | "form"required
    • taps[].[].priority"low" | "normal" | "high" | "critical"required
    • taps[].[].titlestringrequired
    • taps[].[].descriptionstring
    • taps[].[].agentobjectrequired
    • taps[].[].agent.idstringrequired

      Agent identifier, for example deploy-bot

    • taps[].[].agent.namestring
    • taps[].[].agent.org_idstring (uuid)
    • taps[].[].agent.didstring
    • taps[].[].agent.avatar_urlstring
    • taps[].[].agent.frameworkstring
    • taps[].[].agent.metadataobject
    • taps[].[].org_idstring (uuid)required
    • taps[].[].assigneesstring (uuid)[]required
    • taps[].[].optionsobject[]required
    • taps[].[].options[].[].keystringrequired

      Machine key, for example approve or deny

    • taps[].[].options[].[].labelstringrequired
    • taps[].[].options[].[].stylestring

      Rendering hint: primary, danger or default

    • taps[].[].options[].[].descriptionstring
    • taps[].[].risk_level"none" | "low" | "medium" | "high" | "critical"
    • taps[].[].approval_policyobject
    • taps[].[].approval_policy.min_approversinteger

      min 1 · default 1

    • taps[].[].approval_policy.require_biometricboolean

      default false

    • taps[].[].approval_policy.required_surfacestring
    • taps[].[].approval_policy.require_reasonboolean

      default false

    • taps[].[].approval_policy.monetary_thresholdnumber
    • taps[].[].approval_policy.monetary_currencystring
    • taps[].[].contextany
    • taps[].[].metadataobject
    • taps[].[].expires_atstring (date-time)
    • taps[].[].callback_urlstring
    • taps[].[].responsesobject[]
    • taps[].[].responses[].[].idstring (uuid)required
    • taps[].[].responses[].[].tap_idstring (uuid)required
    • taps[].[].responses[].[].responder_idstring (uuid)required
    • taps[].[].responses[].[].payloadobjectrequired

      Tagged by type: selection (option_key), text (value) or form (fields)

    • taps[].[].responses[].[].payload.type"selection" | "text" | "form"required
    • taps[].[].responses[].[].payload.option_keystring
    • taps[].[].responses[].[].payload.valuestring
    • taps[].[].responses[].[].payload.fieldsobject
    • taps[].[].responses[].[].source"web" | "ios" | "android" | "watch_os" | "wear_os" | "mac_os" | "windows" | "linux" | "browser_extension" | "slack" | "discord" | "teams" | "telegram" | "webhook" | "voice" | "api"required
    • taps[].[].responses[].[].reasonstring
    • taps[].[].responses[].[].biometric_confirmedboolean
    • taps[].[].responses[].[].ip_addressstring
    • taps[].[].responses[].[].user_agentstring
    • taps[].[].responses[].[].created_atstring (date-time)required
    • taps[].[].tagsstring[]
    • taps[].[].idempotency_keystring
    • taps[].[].created_atstring (date-time)required
    • taps[].[].updated_atstring (date-time)required
    • totalintegerrequired

      Number of taps on this page

    • limitintegerrequired
    • offsetintegerrequired
  • 422Unknown status, unknown or repeated query key
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/taps/taps" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Ask a human for a decision (create a tap)

POST/v1/taps/taps

taps:writeTested with an API keytaps_createTap

Needs taps:write (Taps permission taps.taps.create). title must be non-blank. With idempotency_key in the body, a repeat returns the original tap with 200. Enabled routing rules are evaluated and recorded as routed events.

Request body application/json

  • tap_type"approval" | "choice" | "input" | "acknowledgment" | "form"required
  • priority"low" | "normal" | "high" | "critical"required
  • titlestringrequired
  • descriptionstring
  • agentobjectrequired
  • agent.idstringrequired

    Agent identifier, for example deploy-bot

  • agent.namestring
  • agent.org_idstring (uuid)
  • agent.didstring
  • agent.avatar_urlstring
  • agent.frameworkstring
  • agent.metadataobject
  • org_idstring (uuid)

    Ignored in cloud; your tenant is used

  • assigneesstring (uuid)[]
  • optionsobject[]
  • options[].[].keystringrequired

    Machine key, for example approve or deny

  • options[].[].labelstringrequired
  • options[].[].stylestring

    Rendering hint: primary, danger or default

  • options[].[].descriptionstring
  • risk_level"none" | "low" | "medium" | "high" | "critical"
  • approval_policyobject
  • approval_policy.min_approversinteger

    min 1 · default 1

  • approval_policy.require_biometricboolean

    default false

  • approval_policy.required_surfacestring
  • approval_policy.require_reasonboolean

    default false

  • approval_policy.monetary_thresholdnumber
  • approval_policy.monetary_currencystring
  • contextany

    Free-form context shown to the human

  • metadataobject
  • timeout_secsinteger

    min 0

  • callback_urlstring
  • tagsstring[]
  • idempotency_keystring

    A repeat with the same key returns the original tap

Responses

  • 200Replay of an earlier request with the same idempotency_key
    Response fields
    • tapobjectrequired
    • tap.idstring (uuid)required
    • tap.status"created" | "pending" | "approved" | "denied" | "escalated" | "expired" | "cancelled"required
    • tap.tap_type"approval" | "choice" | "input" | "acknowledgment" | "form"required
    • tap.priority"low" | "normal" | "high" | "critical"required
    • tap.titlestringrequired
    • tap.descriptionstring
    • tap.agentobjectrequired
    • tap.agent.idstringrequired

      Agent identifier, for example deploy-bot

    • tap.agent.namestring
    • tap.agent.org_idstring (uuid)
    • tap.agent.didstring
    • tap.agent.avatar_urlstring
    • tap.agent.frameworkstring
    • tap.agent.metadataobject
    • tap.org_idstring (uuid)required
    • tap.assigneesstring (uuid)[]required
    • tap.optionsobject[]required
    • tap.options[].[].keystringrequired

      Machine key, for example approve or deny

    • tap.options[].[].labelstringrequired
    • tap.options[].[].stylestring

      Rendering hint: primary, danger or default

    • tap.options[].[].descriptionstring
    • tap.risk_level"none" | "low" | "medium" | "high" | "critical"
    • tap.approval_policyobject
    • tap.approval_policy.min_approversinteger

      min 1 · default 1

    • tap.approval_policy.require_biometricboolean

      default false

    • tap.approval_policy.required_surfacestring
    • tap.approval_policy.require_reasonboolean

      default false

    • tap.approval_policy.monetary_thresholdnumber
    • tap.approval_policy.monetary_currencystring
    • tap.contextany
    • tap.metadataobject
    • tap.expires_atstring (date-time)
    • tap.callback_urlstring
    • tap.responsesobject[]
    • tap.responses[].[].idstring (uuid)required
    • tap.responses[].[].tap_idstring (uuid)required
    • tap.responses[].[].responder_idstring (uuid)required
    • tap.responses[].[].payloadobjectrequired

      Tagged by type: selection (option_key), text (value) or form (fields)

    • tap.responses[].[].payload.type"selection" | "text" | "form"required
    • tap.responses[].[].payload.option_keystring
    • tap.responses[].[].payload.valuestring
    • tap.responses[].[].payload.fieldsobject
    • tap.responses[].[].source"web" | "ios" | "android" | "watch_os" | "wear_os" | "mac_os" | "windows" | "linux" | "browser_extension" | "slack" | "discord" | "teams" | "telegram" | "webhook" | "voice" | "api"required
    • tap.responses[].[].reasonstring
    • tap.responses[].[].biometric_confirmedboolean
    • tap.responses[].[].ip_addressstring
    • tap.responses[].[].user_agentstring
    • tap.responses[].[].created_atstring (date-time)required
    • tap.tagsstring[]
    • tap.idempotency_keystring
    • tap.created_atstring (date-time)required
    • tap.updated_atstring (date-time)required
  • 201Tap created
    Response fields
    • tapobjectrequired
    • tap.idstring (uuid)required
    • tap.status"created" | "pending" | "approved" | "denied" | "escalated" | "expired" | "cancelled"required
    • tap.tap_type"approval" | "choice" | "input" | "acknowledgment" | "form"required
    • tap.priority"low" | "normal" | "high" | "critical"required
    • tap.titlestringrequired
    • tap.descriptionstring
    • tap.agentobjectrequired
    • tap.agent.idstringrequired

      Agent identifier, for example deploy-bot

    • tap.agent.namestring
    • tap.agent.org_idstring (uuid)
    • tap.agent.didstring
    • tap.agent.avatar_urlstring
    • tap.agent.frameworkstring
    • tap.agent.metadataobject
    • tap.org_idstring (uuid)required
    • tap.assigneesstring (uuid)[]required
    • tap.optionsobject[]required
    • tap.options[].[].keystringrequired

      Machine key, for example approve or deny

    • tap.options[].[].labelstringrequired
    • tap.options[].[].stylestring

      Rendering hint: primary, danger or default

    • tap.options[].[].descriptionstring
    • tap.risk_level"none" | "low" | "medium" | "high" | "critical"
    • tap.approval_policyobject
    • tap.approval_policy.min_approversinteger

      min 1 · default 1

    • tap.approval_policy.require_biometricboolean

      default false

    • tap.approval_policy.required_surfacestring
    • tap.approval_policy.require_reasonboolean

      default false

    • tap.approval_policy.monetary_thresholdnumber
    • tap.approval_policy.monetary_currencystring
    • tap.contextany
    • tap.metadataobject
    • tap.expires_atstring (date-time)
    • tap.callback_urlstring
    • tap.responsesobject[]
    • tap.responses[].[].idstring (uuid)required
    • tap.responses[].[].tap_idstring (uuid)required
    • tap.responses[].[].responder_idstring (uuid)required
    • tap.responses[].[].payloadobjectrequired

      Tagged by type: selection (option_key), text (value) or form (fields)

    • tap.responses[].[].payload.type"selection" | "text" | "form"required
    • tap.responses[].[].payload.option_keystring
    • tap.responses[].[].payload.valuestring
    • tap.responses[].[].payload.fieldsobject
    • tap.responses[].[].source"web" | "ios" | "android" | "watch_os" | "wear_os" | "mac_os" | "windows" | "linux" | "browser_extension" | "slack" | "discord" | "teams" | "telegram" | "webhook" | "voice" | "api"required
    • tap.responses[].[].reasonstring
    • tap.responses[].[].biometric_confirmedboolean
    • tap.responses[].[].ip_addressstring
    • tap.responses[].[].user_agentstring
    • tap.responses[].[].created_atstring (date-time)required
    • tap.tagsstring[]
    • tap.idempotency_keystring
    • tap.created_atstring (date-time)required
    • tap.updated_atstring (date-time)required
  • 403SCOPE_MISSING (taps:write) or no selected context
  • 422Invalid body (for example a blank title)
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/taps/taps" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "tap_type": "approval",
    "priority": "low",
    "title": "string",
    "agent": {
      "id": "string"
    }
  }'

Get a tap

GET/v1/taps/taps/{id}

taps:readTested with an API keytaps_getTap

Needs taps:read (Taps permission taps.taps.read).

Parameters

  • idpath · stringrequired

Responses

  • 200The tap with its responses
    Response fields
    • tapobjectrequired
    • tap.idstring (uuid)required
    • tap.status"created" | "pending" | "approved" | "denied" | "escalated" | "expired" | "cancelled"required
    • tap.tap_type"approval" | "choice" | "input" | "acknowledgment" | "form"required
    • tap.priority"low" | "normal" | "high" | "critical"required
    • tap.titlestringrequired
    • tap.descriptionstring
    • tap.agentobjectrequired
    • tap.agent.idstringrequired

      Agent identifier, for example deploy-bot

    • tap.agent.namestring
    • tap.agent.org_idstring (uuid)
    • tap.agent.didstring
    • tap.agent.avatar_urlstring
    • tap.agent.frameworkstring
    • tap.agent.metadataobject
    • tap.org_idstring (uuid)required
    • tap.assigneesstring (uuid)[]required
    • tap.optionsobject[]required
    • tap.options[].[].keystringrequired

      Machine key, for example approve or deny

    • tap.options[].[].labelstringrequired
    • tap.options[].[].stylestring

      Rendering hint: primary, danger or default

    • tap.options[].[].descriptionstring
    • tap.risk_level"none" | "low" | "medium" | "high" | "critical"
    • tap.approval_policyobject
    • tap.approval_policy.min_approversinteger

      min 1 · default 1

    • tap.approval_policy.require_biometricboolean

      default false

    • tap.approval_policy.required_surfacestring
    • tap.approval_policy.require_reasonboolean

      default false

    • tap.approval_policy.monetary_thresholdnumber
    • tap.approval_policy.monetary_currencystring
    • tap.contextany
    • tap.metadataobject
    • tap.expires_atstring (date-time)
    • tap.callback_urlstring
    • tap.responsesobject[]
    • tap.responses[].[].idstring (uuid)required
    • tap.responses[].[].tap_idstring (uuid)required
    • tap.responses[].[].responder_idstring (uuid)required
    • tap.responses[].[].payloadobjectrequired

      Tagged by type: selection (option_key), text (value) or form (fields)

    • tap.responses[].[].payload.type"selection" | "text" | "form"required
    • tap.responses[].[].payload.option_keystring
    • tap.responses[].[].payload.valuestring
    • tap.responses[].[].payload.fieldsobject
    • tap.responses[].[].source"web" | "ios" | "android" | "watch_os" | "wear_os" | "mac_os" | "windows" | "linux" | "browser_extension" | "slack" | "discord" | "teams" | "telegram" | "webhook" | "voice" | "api"required
    • tap.responses[].[].reasonstring
    • tap.responses[].[].biometric_confirmedboolean
    • tap.responses[].[].ip_addressstring
    • tap.responses[].[].user_agentstring
    • tap.responses[].[].created_atstring (date-time)required
    • tap.tagsstring[]
    • tap.idempotency_keystring
    • tap.created_atstring (date-time)required
    • tap.updated_atstring (date-time)required
  • 404Not found in your tenant
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/taps/taps/$ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Cancel a tap

DELETE/v1/taps/taps/{id}

taps:writeTested with an API keytaps_cancelTap

Needs taps:write (Taps permission taps.taps.delete). Moves an open tap to cancelled and records who cancelled it. A tap that is already resolved is refused.

Parameters

  • idpath · stringrequired

Responses

  • 204Cancelled
  • 404Not found in your tenant
  • 409Already resolved
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/taps/taps/$ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Events

List a tap's audit events

GET/v1/taps/taps/{id}/events

taps:readTested with an API keytaps_listTapEvents

Needs taps:read (Taps permission taps.taps.read).

Parameters

  • idpath · stringrequired

Responses

  • 200Audit trail, oldest first
    Response fields
    • eventsobject[]required
    • events[].[].idstring (uuid)required
    • events[].[].tap_idstring (uuid)required
    • events[].[].kindanyrequired

      created, expired or forgotten as a string, or a one-key object such as {"responded": {"option_key", "source"}}, {"status_changed": {"from", "to"}}, {"routed": {"to_user_id", "rule_id"}} or {"cancelled": {"reason"}}

    • events[].[].actorobjectrequired

      Tagged by type: user (user_id), agent (agent_id) or system

    • events[].[].actor.type"user" | "agent" | "system"required
    • events[].[].actor.user_idstring (uuid)
    • events[].[].actor.agent_idstring
    • events[].[].org_idstring (uuid)required
    • events[].[].timestampstring (date-time)required
    • events[].[].detailany
    • events[].[].request_idstring
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/taps/taps/$ID/events" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Forget

Forget your own answer to one tap (human only)

POST/v1/taps/taps/{id}/forget

taps:writetaps_forgetTapResponse

Human only: a genesis login session. An org API key gets 403 human_required; an agent or service gets 403 from Taps. Needs taps:write (Taps permission taps.responses.create, the same as answering). No request body. Only the person who answered may forget it (the tap's only assignee may also forget an answer the chat-platform bridge recorded for them, never any other answer); anyone else gets 404, as for a tap that does not exist. Taps blanks every stored copy of the answer (the response, its audit events, the sealed text of an agent's question) in one step; the tap keeps its status and timestamps and its history gains one forgotten event. When something was done with the answer (a consent a lane acted on), the decision word stays as the record of that consent: kept lists decision and reason says why. surface always stays. A repeat answers 200 with the same body and changes nothing. Copies already delivered by webhook or notification are not recalled. Up to 30 a minute per person.

Parameters

  • idpath · stringrequired

Responses

  • 200Answer forgotten (or already forgotten)
    Response fields
    • tap_idstring (uuid)required
    • forgotten_atstring (date-time)required
    • kept"decision" | "outcome" | "surface"[]required

      What the forget kept: decision (a consent something was done with), outcome (an agent question's record of what kind of answer it got, never the words), surface (the app the answer came from, never what was said).

    • reasonstring

      Why the decision was kept, when it was.

    • not_recalledstringrequired

      Always: copies already delivered by webhook or notification are not recalled.

  • 403FORBIDDEN human_required (org API key), or not a human principal
  • 404Not found, or not your answer
  • 409NOTHING_TO_FORGET (nobody answered; cancel it instead) or TAP_STILL_OPEN (several approvers still deciding)
  • 429More than 30 forgets a minute
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/taps/taps/$ID/forget" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Record

Read a tap's signed record (drafted, approved, sent)

GET/v1/taps/taps/{id}/record

taps:readtaps_getTapRecord

Each step with its actor, time and event id: drafted (the principal that raised it), approved or denied (the person, plus the delegated key that answered for them), sent (the raising principal, with the message id). Bound to the sha-256 of the released content and of the card the person read. record_jws is a compact EdDSA JWS (typ taps-release-record+jwt) whose payload is exactly record; verify it with the key of its kid at /v1/taps/.well-known/jwks.json. Needs taps:read (Taps permission taps.taps.read).

Parameters

  • idpath · stringrequired

Responses

  • 200The record and its signature
    Response fields
    • recordobjectrequired
    • record.iss"did:oas:one:service:taps"required
    • record.contract"taps.release_record.v1"required
    • record.orgstring (uuid)required
    • record.tap_idstring (uuid)required
    • record.statusstringrequired
    • record.card_sha256stringrequired

      Hex sha-256 of the card the person read (title and text, RFC 8785 JSON).

    • record.message_idstring | null
    • record.message_sha256string | null
    • record.completebooleanrequired

      True once the release is recorded.

    • record.stepsobject[]required
    • record.steps[].[].step"drafted" | "approved" | "denied" | "sent"required
    • record.steps[].[].actorstring | nullrequired

      The principal: an org key id, a person (h_...), or user:<id> for a person without a subject.

    • record.steps[].[].atstring (date-time)required
    • record.steps[].[].event_idstring | null (uuid)
    • record.steps[].[].user_idstring | null (uuid)
    • record.steps[].[].delegatestring

      The org key that answered for the person under an approval delegation.

    • record.steps[].[].delegation_idstring (uuid)
    • record.steps[].[].message_idstring | null
    • record.iatintegerrequired

      Unix time of the latest step.

    • record_jwsstring | nullrequired
  • 404No tap of yours has this id
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/taps/taps/$ID/record" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Released

Record that you released what your approved tap held

POST/v1/taps/taps/{id}/released

taps:writetaps_recordTapRelease

The principal that raised an approved tap records that it released what the tap held (for a held Boxes send the gateway does this itself after Boxes sends it). Only the raising principal (403 for another reader, 404 for anyone who can't read the tap), only while the tap is approved (409 TAP_NOT_APPROVED); a second release is 409 TAP_ALREADY_RELEASED. The release becomes the record's signed sent step. Needs taps:write (Taps permission taps.taps.create).

Parameters

  • idpath · stringrequired

Request body application/json

  • message_sha256stringrequired

    Hex sha-256 of the exact content released. pattern ^[0-9a-f]{64}$

  • message_idstring

    The id of what the release made, such as a sent message's id. min length 1 · max length 256

Responses

  • 201Recorded; the tap's record with its signature
    Response fields
    • releasedobjectrequired
    • released.idstring (uuid)required
    • released.tap_idstring (uuid)required
    • released.kindanyrequired

      created, expired or forgotten as a string, or a one-key object such as {"responded": {"option_key", "source"}}, {"status_changed": {"from", "to"}}, {"routed": {"to_user_id", "rule_id"}} or {"cancelled": {"reason"}}

    • released.actorobjectrequired

      Tagged by type: user (user_id), agent (agent_id) or system

    • released.actor.type"user" | "agent" | "system"required
    • released.actor.user_idstring (uuid)
    • released.actor.agent_idstring
    • released.org_idstring (uuid)required
    • released.timestampstring (date-time)required
    • released.detailany
    • released.request_idstring
    • recordobjectrequired
    • record.iss"did:oas:one:service:taps"required
    • record.contract"taps.release_record.v1"required
    • record.orgstring (uuid)required
    • record.tap_idstring (uuid)required
    • record.statusstringrequired
    • record.card_sha256stringrequired

      Hex sha-256 of the card the person read (title and text, RFC 8785 JSON).

    • record.message_idstring | null
    • record.message_sha256string | null
    • record.completebooleanrequired

      True once the release is recorded.

    • record.stepsobject[]required
    • record.steps[].[].step"drafted" | "approved" | "denied" | "sent"required
    • record.steps[].[].actorstring | nullrequired

      The principal: an org key id, a person (h_...), or user:<id> for a person without a subject.

    • record.steps[].[].atstring (date-time)required
    • record.steps[].[].event_idstring | null (uuid)
    • record.steps[].[].user_idstring | null (uuid)
    • record.steps[].[].delegatestring

      The org key that answered for the person under an approval delegation.

    • record.steps[].[].delegation_idstring (uuid)
    • record.steps[].[].message_idstring | null
    • record.iatintegerrequired

      Unix time of the latest step.

    • record_jwsstring | nullrequired

      Compact EdDSA JWS whose payload is exactly record; null when Taps has no signing key.

  • 403Only the principal that raised the tap records its release
  • 404No tap of yours has this id
  • 409The tap is not approved, or was already released
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/taps/taps/$ID/released" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "message_sha256": "string"
  }'

Respond

Respond to a tap (a person, or a key a person delegated approval to)

POST/v1/taps/taps/{id}/respond

taps:writeSigned-in sessiontaps_respondToTap

A person's genesis login session, or an org API key a person delegated approval to with createApprovalDelegation. A delegated key answers as that person (the response is theirs, source is api, no biometric or surface proof), never a tap it raised itself, and never a Henry, typed-code, grant, HITL or command item; a delegated_response event records the key. Any other key gets 403 human_required. When the tap holds a Boxes send, an approve's answer also carries boxes_send: approved (the key's retry with x-taps-approval now sends), already_released, or not_sent with a reason. The approve itself never sends. Needs taps:write (Taps permission taps.responses.create). The tap's approval policy is enforced first (reason, biometric, surface, number of approvers); a violation is 422 and nothing is recorded. Selecting deny resolves the tap; approve resolves it once min_approvers have approved.

Parameters

  • idpath · stringrequired

Request body application/json

  • payloadobjectrequired

    Tagged by type: selection (option_key), text (value) or form (fields)

  • payload.type"selection" | "text" | "form"required
  • payload.option_keystring
  • payload.valuestring
  • payload.fieldsobject
  • source"web" | "ios" | "android" | "watch_os" | "wear_os" | "mac_os" | "windows" | "linux" | "browser_extension" | "slack" | "discord" | "teams" | "telegram" | "webhook" | "voice" | "api"required
  • reasonstring
  • biometric_confirmedboolean

    default false

Responses

  • 200Response recorded
    Response fields
    • responseobjectrequired
    • response.idstring (uuid)required
    • response.tap_idstring (uuid)required
    • response.responder_idstring (uuid)required
    • response.payloadobjectrequired

      Tagged by type: selection (option_key), text (value) or form (fields)

    • response.payload.type"selection" | "text" | "form"required
    • response.payload.option_keystring
    • response.payload.valuestring
    • response.payload.fieldsobject
    • response.source"web" | "ios" | "android" | "watch_os" | "wear_os" | "mac_os" | "windows" | "linux" | "browser_extension" | "slack" | "discord" | "teams" | "telegram" | "webhook" | "voice" | "api"required
    • response.reasonstring
    • response.biometric_confirmedboolean
    • response.ip_addressstring
    • response.user_agentstring
    • response.created_atstring (date-time)required
    • tapobjectrequired
    • tap.idstring (uuid)required
    • tap.status"created" | "pending" | "approved" | "denied" | "escalated" | "expired" | "cancelled"required
    • tap.tap_type"approval" | "choice" | "input" | "acknowledgment" | "form"required
    • tap.priority"low" | "normal" | "high" | "critical"required
    • tap.titlestringrequired
    • tap.descriptionstring
    • tap.agentobjectrequired
    • tap.agent.idstringrequired

      Agent identifier, for example deploy-bot

    • tap.agent.namestring
    • tap.agent.org_idstring (uuid)
    • tap.agent.didstring
    • tap.agent.avatar_urlstring
    • tap.agent.frameworkstring
    • tap.agent.metadataobject
    • tap.org_idstring (uuid)required
    • tap.assigneesstring (uuid)[]required
    • tap.optionsobject[]required
    • tap.options[].[].keystringrequired

      Machine key, for example approve or deny

    • tap.options[].[].labelstringrequired
    • tap.options[].[].stylestring

      Rendering hint: primary, danger or default

    • tap.options[].[].descriptionstring
    • tap.risk_level"none" | "low" | "medium" | "high" | "critical"
    • tap.approval_policyobject
    • tap.approval_policy.min_approversinteger

      min 1 · default 1

    • tap.approval_policy.require_biometricboolean

      default false

    • tap.approval_policy.required_surfacestring
    • tap.approval_policy.require_reasonboolean

      default false

    • tap.approval_policy.monetary_thresholdnumber
    • tap.approval_policy.monetary_currencystring
    • tap.contextany
    • tap.metadataobject
    • tap.expires_atstring (date-time)
    • tap.callback_urlstring
    • tap.responsesobject[]
    • tap.responses[].[].idstring (uuid)required
    • tap.responses[].[].tap_idstring (uuid)required
    • tap.responses[].[].responder_idstring (uuid)required
    • tap.responses[].[].payloadobjectrequired

      Tagged by type: selection (option_key), text (value) or form (fields)

    • tap.responses[].[].payload.type"selection" | "text" | "form"required
    • tap.responses[].[].payload.option_keystring
    • tap.responses[].[].payload.valuestring
    • tap.responses[].[].payload.fieldsobject
    • tap.responses[].[].source"web" | "ios" | "android" | "watch_os" | "wear_os" | "mac_os" | "windows" | "linux" | "browser_extension" | "slack" | "discord" | "teams" | "telegram" | "webhook" | "voice" | "api"required
    • tap.responses[].[].reasonstring
    • tap.responses[].[].biometric_confirmedboolean
    • tap.responses[].[].ip_addressstring
    • tap.responses[].[].user_agentstring
    • tap.responses[].[].created_atstring (date-time)required
    • tap.tagsstring[]
    • tap.idempotency_keystring
    • tap.created_atstring (date-time)required
    • tap.updated_atstring (date-time)required
  • 403FORBIDDEN human_required (an org API key with no live delegation, a tap the key raised, or an item answered only by the person)
  • 404Not found in your tenant
  • 409Already resolved
  • 410Expired
  • 422Approval policy not met
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/taps/taps/$ID/respond" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "payload": {
      "type": "selection"
    },
    "source": "web"
  }'

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