OneOS Docs
Genesis 0.3.1 Console

API reference

Pacts

Agreements: clauses, parties, signatures, obligations and due dates, approvals and evidence.

Operations
144
Base path
https://os.one.ml/api/v1/pacts
Scopes
pacts:read pacts:sign pacts:write
API keys
—
SDK
genesis.call('pacts_listDelegations', …)
CLI
Through the SDK (genesis.call)
MCP
110 tools; the other 34 through genesis_call

Operations

OperationEndpointAPI key
List delegationsGET/agent-delegations—
Create delegationPOST/agent-delegations—
Get delegationGET/agent-delegations/{delegation_id}—
Update delegationPATCH/agent-delegations/{delegation_id}—
Activate delegationPOST/agent-delegations/{delegation_id}/activate—
Revoke delegationPOST/agent-delegations/{delegation_id}/revoke—
Get approvalGET/approvals/{approval_id}—
Approve, pinning the content hash of the version as it is nowPOST/approvals/{approval_id}/approve—
Reject, recording the reason the requester needs to act onPOST/approvals/{approval_id}/reject—
Revoke a decided approvalPOST/approvals/{approval_id}/revoke—
Waive a pending approval — say why, recorded as the reasonPOST/approvals/{approval_id}/waive—
List grantsGET/authority-grants—
Create grantPOST/authority-grants—
Get grantGET/authority-grants/{grant_id}—
Update grantPATCH/authority-grants/{grant_id}—
Revoke grantPOST/authority-grants/{grant_id}/revoke—
Verify grantPOST/authority-grants/{grant_id}/verify—
Answer whether an actor may take an action for a partyPOST/authority/check—
Record that the signer was authenticated, naming the methodPOST/ceremony/{ceremony_id}/authenticate—
Record that the signer consented to electronic recordsPOST/ceremony/{ceremony_id}/consent—
Record that the signer was shown the disclosurePOST/ceremony/{ceremony_id}/disclosure—
Record that the signer affirmed their intent to signPOST/ceremony/{ceremony_id}/intent—
List librariesGET/clause-libraries—
Create libraryPOST/clause-libraries—
Get libraryGET/clause-libraries/{library_id}—
Update libraryPATCH/clause-libraries/{library_id}—
List clausesGET/clauses—
Create clausePOST/clauses—
Get clauseGET/clauses/{clause_id}—
Update clausePATCH/clauses/{clause_id}—
Approve a clausePOST/clauses/{clause_id}/approve—
Deprecate a clausePOST/clauses/{clause_id}/deprecate—
List evidenceGET/evidence—
Record an evidence referencePOST/evidence—
Get evidenceGET/evidence/{evidence_id}—
Assemble an evidence bundle: the content-addressed, ordered set of refs, signed and (when asked) anchored, written in one transactionPOST/evidence/bundles—
A bundle with its refs in order and its manifest — the API viewGET/evidence/bundles/{bundle_id}—
Download the self-contained export: the bundle record, its manifest, every referenced evidence ref, and the signature and anchor when presenGET/evidence/bundles/{bundle_id}/download—
Seal a bundle: anchor its manifest digestPOST/evidence/bundles/{bundle_id}/seal—
Verify a bundle: rebuild the export from the immutable records and run the same offline verification the CLI runs against the exported bytesPOST/evidence/bundles/{bundle_id}/verify—
List holdsGET/legal-holds—
Place a legal holdPOST/legal-holds—
Get holdGET/legal-holds/{hold_id}—
Amend an active hold: its name, basis, counsel, or advisory expiryPATCH/legal-holds/{hold_id}—
Release a hold, with the reason the release will answer forPOST/legal-holds/{hold_id}/release—
List mattersGET/matters—
Create a matterPOST/matters—
Get matterGET/matters/{matter_id}—
Update matterPATCH/matters/{matter_id}—
Archive matterPOST/matters/{matter_id}/archive—
Get matter auditGET/matters/{matter_id}/audit—
Close matterPOST/matters/{matter_id}/close—
Evidence about a matterGET/matters/{matter_id}/evidence—
List obligationsGET/obligations—
Get obligationGET/obligations/{obligation_id}—
Update obligationPATCH/obligations/{obligation_id}—
Assign an obligation to a responsible actorPOST/obligations/{obligation_id}/assign—
Complete an obligation, optionally attaching evidence of completionPOST/obligations/{obligation_id}/complete—
Confirm an obligation, moving it from draft to activePOST/obligations/{obligation_id}/confirm—
Dispute an obligation, with the reasonPOST/obligations/{obligation_id}/dispute—
Start the obligation monitor: dispatch `pacts.obligation.monitor` through the workflow plane and bind the run to the obligationPOST/obligations/{obligation_id}/start-workflow—
Waive an obligation, with the reason a dispute will turn onPOST/obligations/{obligation_id}/waive—
Obligations falling due within the calendar horizonGET/obligations/calendar—
Obligations at riskGET/obligations/risk—
List pactsGET/pacts—
Create a pact (draft-only unless a legal-effect mode is set)POST/pacts—
Get a pactGET/pacts/{pact_id}—
Update a pactPATCH/pacts/{pact_id}—
Answer a question about a pact (AI run with citations)POST/pacts/{pact_id}/ai/answer-question—
Classify a pact (AI run)POST/pacts/{pact_id}/ai/classify—
Extract the key terms of a pact (AI run)POST/pacts/{pact_id}/ai/extract-terms—
Generate a draft of a pact (AI run; enters human review)POST/pacts/{pact_id}/ai/generate-draft—
Review the risk in a pact (AI run)POST/pacts/{pact_id}/ai/review-risk—
Get an AI run over a pact, with its output and citationsGET/pacts/{pact_id}/ai/runs/{run_id}—
Suggest redlines on a pact (AI run)POST/pacts/{pact_id}/ai/suggest-redlines—
Summarize a pact (AI run)POST/pacts/{pact_id}/ai/summarize—
Validate citations: every citation in an output must resolve to a real document, version, clause, or reference in scopePOST/pacts/{pact_id}/ai/validate-citations—
List approvalsGET/pacts/{pact_id}/approvals—
Create approvalPOST/pacts/{pact_id}/approvals—
Archive a pactPOST/pacts/{pact_id}/archive—
Get pact auditGET/pacts/{pact_id}/audit—
Bind the pact's signatures to an Auto org (docs/systems/charter-gate.md)PUT/pacts/{pact_id}/authority-org—
List documentsGET/pacts/{pact_id}/documents—
Store a document (base64 bytes) on a pact versionPOST/pacts/{pact_id}/documents—
Get documentGET/pacts/{pact_id}/documents/{document_id}—
Extract text from a stored documentPOST/pacts/{pact_id}/documents/{document_id}/extract-text—
Evidence about a pact: the subject-scoped listing a bundle is assembled fromGET/pacts/{pact_id}/evidence—
Accept extracted obligations, in draftPOST/pacts/{pact_id}/obligations/extract—
List reviewsGET/pacts/{pact_id}/reviews—
Create reviewPOST/pacts/{pact_id}/reviews—
List a pact's signature packagesGET/pacts/{pact_id}/signature-packages—
Create a signature package for a version (signers, level, order)POST/pacts/{pact_id}/signature-packages—
Submit for approvalPOST/pacts/{pact_id}/submit-for-approval—
Submit for reviewPOST/pacts/{pact_id}/submit-for-review—
List versionsGET/pacts/{pact_id}/versions—
Create a version of a pactPOST/pacts/{pact_id}/versions—
Get versionGET/pacts/{pact_id}/versions/{version_id}—
Approve a version for signature: finalize its hash and mark it approvedPOST/pacts/{pact_id}/versions/{version_id}/approve-for-signature—
Compare two versions' document digests, ordinal by ordinalPOST/pacts/{pact_id}/versions/{version_id}/compare—
Start a redline: a new draft version whose base is an existing onePOST/pacts/{pact_id}/versions/{version_id}/redline—
Void a pact, with the reasonPOST/pacts/{pact_id}/void—
List partiesGET/parties—
Create a partyPOST/parties—
Get partyGET/parties/{party_id}—
Update partyPATCH/parties/{party_id}—
Verify partyPOST/parties/{party_id}/verify—
List playbooksGET/playbooks—
Create playbookPOST/playbooks—
Get playbookGET/playbooks/{playbook_id}—
Update playbookPATCH/playbooks/{playbook_id}—
Activate a playbookPOST/playbooks/{playbook_id}/activate—
Deprecate a playbookPOST/playbooks/{playbook_id}/deprecate—
Test a proposed clause set against a playbookPOST/playbooks/{playbook_id}/test—
List policiesGET/retention-policies—
Create policyPOST/retention-policies—
Get policyGET/retention-policies/{policy_id}—
Update policyPATCH/retention-policies/{policy_id}—
Get reviewGET/reviews/{review_id}—
Update reviewPATCH/reviews/{review_id}—
Complete a review, moving it to a terminal statusPOST/reviews/{review_id}/complete—
The caller's own resolved scope (who am I)GET/session—
Get a signature packageGET/signature-packages/{package_id}—
Open a ceremony session for a signer on a packagePOST/signature-packages/{package_id}/ceremony—
Get a signature package's completion certificateGET/signature-packages/{package_id}/certificate—
Seal the package to the version's current hash and mark it sentPOST/signature-packages/{package_id}/send—
Record a signaturePOST/signature-packages/{package_id}/sign—
Verify a package's signatures against their sealed digestsPOST/signature-packages/{package_id}/verify—
Void a signature package, with the reasonPOST/signature-packages/{package_id}/void—
List usageGET/usage—
The billing and usage snapshot: totals per (resource type, unit) with the events behind each and the count the reporter has not drained yetGET/usage/summary—
Deliveries across the scope, newest firstGET/webhook-deliveries—
Get deliveryGET/webhook-deliveries/{delivery_id}—
Put a dead-lettered delivery back on the ladder: `pending`, a fresh retry budget, due nowPOST/webhook-deliveries/{delivery_id}/redeliver—
List endpointsGET/webhook-endpoints—
Register an endpoint: validate, provision the signing secret through the plane, then write the row and its audit event in one transactionPOST/webhook-endpoints—
Get endpointGET/webhook-endpoints/{endpoint_id}—
Soft-delete an endpointDELETE/webhook-endpoints/{endpoint_id}—
Amend an endpoint's fields, or pause/resume itPATCH/webhook-endpoints/{endpoint_id}—
One endpoint's delivery history, newest firstGET/webhook-endpoints/{endpoint_id}/deliveries—
Disable an endpoint, with the reason the schema and a dispute review both demandPOST/webhook-endpoints/{endpoint_id}/disable—
Rotate the endpoint's signing secretPOST/webhook-endpoints/{endpoint_id}/rotate-secret—
Dispatch one of the eleven SPEC workflows against a record in scopePOST/workflows/dispatch—
List runs in scope — everything, one kind, or one subject's historyGET/workflows/runs—
Where a dispatched run standsGET/workflows/runs/{run_id}—

Agent delegations

List delegations

GET/v1/pacts/agent-delegations

pacts:readpacts_listDelegations

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.agentDelegationsobject[]
    • data.agentDelegations[].[].idstringrequired
    • data.agentDelegations[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.agentDelegations[].[].scope.organizationIdstringrequired
    • data.agentDelegations[].[].scope.workspaceIdstringrequired
    • data.agentDelegations[].[].scope.projectIdstring | null
    • data.agentDelegations[].[].scope.environmentIdstringrequired
    • data.agentDelegations[].[].agentActorIdstringrequired
    • data.agentDelegations[].[].agentDidstring | null
    • data.agentDelegations[].[].humanRootActorIdstringrequired
    • data.agentDelegations[].[].authorityGrantIdstringrequired
    • data.agentDelegations[].[].status"draft" | "active" | "suspended" | "revoked" | "expired"required

      The lifecycle of an agent delegation.

    • data.agentDelegations[].[].allowedActions"draft" | "comment" | "redline" | "negotiate" | "approve" | "reject" | "sign" | "countersign" | "send" | "accept_terms" | "delegate" | "amend" | "terminate" | "waive" | "renew"[]required
    • data.agentDelegations[].[].allowedAgreementTypesarray | null
    • data.agentDelegations[].[].valueCeilingobject | null
    • data.agentDelegations[].[].jurisdictionLimitsstring[]required
    • data.agentDelegations[].[].humanApprovalThresholdobject | null
    • data.agentDelegations[].[].requiresHumanCountersignaturebooleanrequired
    • data.agentDelegations[].[].effectiveAtstring (date-time)required
    • data.agentDelegations[].[].expiresAtstring | null (date-time)
    • data.agentDelegations[].[].revokedAtstring | null (date-time)
    • data.agentDelegations[].[].revokedByActorIdstring | null
    • data.agentDelegations[].[].createdByActorIdstringrequired
    • data.agentDelegations[].[].createdAtstring (date-time)required
    • data.agentDelegations[].[].updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/agent-delegations" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create delegation

POST/v1/pacts/agent-delegations

Idempotency-Key requiredPerson onlypacts_createDelegation

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Parameters

  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • agentActorIdstringrequired
  • agentDidstring | null
  • humanRootActorIdstringrequired
  • authorityGrantIdstringrequired
  • allowedActions"draft" | "comment" | "redline" | "negotiate" | "approve" | "reject" | "sign" | "countersign" | "send" | "accept_terms" | "delegate" | "amend" | "terminate" | "waive" | "renew"[]required
  • allowedAgreementTypesarray | null
  • valueCeilingobject | null
  • jurisdictionLimitsarray | null
  • humanApprovalThresholdobject | null
  • requiresHumanCountersignatureboolean | null
  • effectiveAtstring | null (date-time)
  • expiresAtstring | null (date-time)

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      What an agent may do, traced to the human accountable for it. human_root_actor_id is always present: an agent whose authority traces to nobody is an agent no one answers for, which SPEC.md forbids.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.agentActorIdstringrequired
    • data.agentDidstring | null
    • data.humanRootActorIdstringrequired
    • data.authorityGrantIdstringrequired
    • data.status"draft" | "active" | "suspended" | "revoked" | "expired"required

      The lifecycle of an agent delegation.

    • data.allowedActions"draft" | "comment" | "redline" | "negotiate" | "approve" | "reject" | "sign" | "countersign" | "send" | "accept_terms" | "delegate" | "amend" | "terminate" | "waive" | "renew"[]required
    • data.allowedAgreementTypesarray | null
    • data.valueCeilingobject | null
    • data.jurisdictionLimitsstring[]required
    • data.humanApprovalThresholdobject | null
    • data.requiresHumanCountersignaturebooleanrequired
    • data.effectiveAtstring (date-time)required
    • data.expiresAtstring | null (date-time)
    • data.revokedAtstring | null (date-time)
    • data.revokedByActorIdstring | null
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/agent-delegations" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "agentActorId": "string",
    "humanRootActorId": "string",
    "authorityGrantId": "string",
    "allowedActions": []
  }'

Get delegation

GET/v1/pacts/agent-delegations/{delegation_id}

pacts:readpacts_getDelegation

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • delegation_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      What an agent may do, traced to the human accountable for it. human_root_actor_id is always present: an agent whose authority traces to nobody is an agent no one answers for, which SPEC.md forbids.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.agentActorIdstringrequired
    • data.agentDidstring | null
    • data.humanRootActorIdstringrequired
    • data.authorityGrantIdstringrequired
    • data.status"draft" | "active" | "suspended" | "revoked" | "expired"required

      The lifecycle of an agent delegation.

    • data.allowedActions"draft" | "comment" | "redline" | "negotiate" | "approve" | "reject" | "sign" | "countersign" | "send" | "accept_terms" | "delegate" | "amend" | "terminate" | "waive" | "renew"[]required
    • data.allowedAgreementTypesarray | null
    • data.valueCeilingobject | null
    • data.jurisdictionLimitsstring[]required
    • data.humanApprovalThresholdobject | null
    • data.requiresHumanCountersignaturebooleanrequired
    • data.effectiveAtstring (date-time)required
    • data.expiresAtstring | null (date-time)
    • data.revokedAtstring | null (date-time)
    • data.revokedByActorIdstring | null
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/agent-delegations/$DELEGATION_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Update delegation

PATCH/v1/pacts/agent-delegations/{delegation_id}

Idempotency-Key requiredPerson onlypacts_updateDelegation

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Parameters

  • delegation_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • allowedActionsarray | null
  • allowedAgreementTypesarray | null
  • valueCeilingobject | null
  • humanApprovalThresholdobject | null
  • requiresHumanCountersignatureboolean | null
  • expiresAtstring | null (date-time)

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      What an agent may do, traced to the human accountable for it. human_root_actor_id is always present: an agent whose authority traces to nobody is an agent no one answers for, which SPEC.md forbids.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.agentActorIdstringrequired
    • data.agentDidstring | null
    • data.humanRootActorIdstringrequired
    • data.authorityGrantIdstringrequired
    • data.status"draft" | "active" | "suspended" | "revoked" | "expired"required

      The lifecycle of an agent delegation.

    • data.allowedActions"draft" | "comment" | "redline" | "negotiate" | "approve" | "reject" | "sign" | "countersign" | "send" | "accept_terms" | "delegate" | "amend" | "terminate" | "waive" | "renew"[]required
    • data.allowedAgreementTypesarray | null
    • data.valueCeilingobject | null
    • data.jurisdictionLimitsstring[]required
    • data.humanApprovalThresholdobject | null
    • data.requiresHumanCountersignaturebooleanrequired
    • data.effectiveAtstring (date-time)required
    • data.expiresAtstring | null (date-time)
    • data.revokedAtstring | null (date-time)
    • data.revokedByActorIdstring | null
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/pacts/agent-delegations/$DELEGATION_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Activate

Activate delegation

POST/v1/pacts/agent-delegations/{delegation_id}/activate

Idempotency-Key requiredPerson onlypacts_activateDelegation

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Parameters

  • delegation_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      What an agent may do, traced to the human accountable for it. human_root_actor_id is always present: an agent whose authority traces to nobody is an agent no one answers for, which SPEC.md forbids.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.agentActorIdstringrequired
    • data.agentDidstring | null
    • data.humanRootActorIdstringrequired
    • data.authorityGrantIdstringrequired
    • data.status"draft" | "active" | "suspended" | "revoked" | "expired"required

      The lifecycle of an agent delegation.

    • data.allowedActions"draft" | "comment" | "redline" | "negotiate" | "approve" | "reject" | "sign" | "countersign" | "send" | "accept_terms" | "delegate" | "amend" | "terminate" | "waive" | "renew"[]required
    • data.allowedAgreementTypesarray | null
    • data.valueCeilingobject | null
    • data.jurisdictionLimitsstring[]required
    • data.humanApprovalThresholdobject | null
    • data.requiresHumanCountersignaturebooleanrequired
    • data.effectiveAtstring (date-time)required
    • data.expiresAtstring | null (date-time)
    • data.revokedAtstring | null (date-time)
    • data.revokedByActorIdstring | null
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/agent-delegations/$DELEGATION_ID/activate" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY"

Activate a playbook

POST/v1/pacts/playbooks/{playbook_id}/activate

Idempotency-Key requiredPerson onlypacts_activatePlaybook

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Activate a playbook. Activation is the last cheap refusal point: every clause the playbook names as an approved position must exist and be approved, or the playbook would govern drafts with text that is not actually a position.

Parameters

  • playbook_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

A JSON object; see the description above.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A playbook: the positions and rules that govern a class of agreements. fallback_positions and escalation_rules are structured policy data interpreted by the policy engine, not by this service; they are carried as JSON so the engine's grammar can evolve without a schema migration.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.namestringrequired
    • data.agreementTypes"msa" | "order_form" | "sow" | "nda" | "dpa" | "baa" | "sla" | "terms_of_service" | "privacy_policy" | "employment_agreement" | "contractor_agreement" | "ip_assignment" | "licensing_agreement" | "reseller_agreement" | "partnership_agreement" | "investment_document" | "board_consent" | "procurement_terms" | "agent_delegation_policy" | "agent_service_agreement" | "settlement" | "amendment" | "termination_notice" | "other"[]required
    • data.jurisdictionstring | null
    • data.partyRole"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other" | null
    • data.ownerActorIdstringrequired
    • data.status"draft" | "active" | "deprecated"required

      Where a playbook sits in its working life.

    • data.approvedClauseIdsstring[]required
    • data.blockedClausePatternsstring[]required
    • data.fallbackPositionsanyrequired
    • data.escalationRulesanyrequired
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/playbooks/$PLAYBOOK_ID/activate" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '"string"'

Revoke

Revoke delegation

POST/v1/pacts/agent-delegations/{delegation_id}/revoke

Idempotency-Key requiredPerson onlypacts_revokeDelegation

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Parameters

  • delegation_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      What an agent may do, traced to the human accountable for it. human_root_actor_id is always present: an agent whose authority traces to nobody is an agent no one answers for, which SPEC.md forbids.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.agentActorIdstringrequired
    • data.agentDidstring | null
    • data.humanRootActorIdstringrequired
    • data.authorityGrantIdstringrequired
    • data.status"draft" | "active" | "suspended" | "revoked" | "expired"required

      The lifecycle of an agent delegation.

    • data.allowedActions"draft" | "comment" | "redline" | "negotiate" | "approve" | "reject" | "sign" | "countersign" | "send" | "accept_terms" | "delegate" | "amend" | "terminate" | "waive" | "renew"[]required
    • data.allowedAgreementTypesarray | null
    • data.valueCeilingobject | null
    • data.jurisdictionLimitsstring[]required
    • data.humanApprovalThresholdobject | null
    • data.requiresHumanCountersignaturebooleanrequired
    • data.effectiveAtstring (date-time)required
    • data.expiresAtstring | null (date-time)
    • data.revokedAtstring | null (date-time)
    • data.revokedByActorIdstring | null
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/agent-delegations/$DELEGATION_ID/revoke" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY"

Revoke a decided approval

POST/v1/pacts/approvals/{approval_id}/revoke

Idempotency-Key requiredPerson onlypacts_revokeApproval

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Revoke a decided approval. The decision stays visible, marked revoked — the only transition out of a decided state the schema permits.

Parameters

  • approval_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

A JSON object; see the description above.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      An approval: a decision that binds to a version, not to a pact. That distinction is the whole point. Approving "the Acme MSA" means nothing if the text can change afterwards, so version_id is required and approved_content_hash records what the approver actually saw. A later signature compares against that hash and refuses when the paper has moved. A decided approval is final: the schema refuses to re-decide in place.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.pactIdstringrequired
    • data.versionIdstringrequired
    • data.requestedByActorIdstringrequired
    • data.approverActorIdstringrequired
    • data.approvalType"legal" | "commercial" | "privacy" | "security" | "finance" | "procurement" | "executive" | "signature_authority" | "agent_delegation" | "exception"required

      The kind of approval.

    • data.status"pending" | "approved" | "rejected" | "expired" | "revoked"required

      The state of an approval.

    • data.authorityGrantIdstring | null
    • data.approvedContentHashstring | null
    • data.reasonstring | null
    • data.decidedAtstring | null (date-time)
    • data.expiresAtstring | null (date-time)
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/approvals/$APPROVAL_ID/revoke" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '"string"'

Revoke grant

POST/v1/pacts/authority-grants/{grant_id}/revoke

Idempotency-Key requiredPerson onlypacts_revokeGrant

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Parameters

  • grant_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • reasonstringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      An authority grant: the basis on which an actor may act for a party. SPEC.md: "No approval or signature is valid inside Pacts without an authority basis." This is that basis. The fields that bound what the principal may do — value ceiling, allowed agreement types, allowed actions — are checked at decision time by [crate::authority], not merely stored.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.principalActorIdstringrequired
    • data.principalActorType"human" | "agent" | "service" | "counterparty_human" | "counterparty_agent" | "outside_counsel" | "system"required

      The kind of principal acting. Mirrors pacts_actor_type. An agent acting under delegation is a distinct kind from the human who granted it, because "who signed this" and "on whose authority" are different questions.

    • data.representedPartyIdstringrequired
    • data.grantType"role" | "board_resolution" | "power_of_attorney" | "employment_authority" | "outside_counsel_engagement" | "procurement_policy" | "agent_delegation" | "service_account_policy" | "verifiable_credential" | "manual_counsel_override"required

      The kind of authority basis a grant rests on.

    • data.sourceEvidenceRefIdstringrequired
    • data.maxContractValueobject | null
    • data.allowedAgreementTypesarray | null

      None means all agreement types. An empty vec means none — a grant that authorizes nothing, distinguishable from unlimited on purpose.

    • data.allowedActions"draft" | "comment" | "redline" | "negotiate" | "approve" | "reject" | "sign" | "countersign" | "send" | "accept_terms" | "delegate" | "amend" | "terminate" | "waive" | "renew"[]required
    • data.jurisdictionstring | null
    • data.effectiveAtstring (date-time)required
    • data.expiresAtstring | null (date-time)
    • data.revokedAtstring | null (date-time)
    • data.revokedByActorIdstring | null
    • data.revocationReasonstring | null
    • data.verifiedByActorIdstring | null
    • data.verifiedAtstring | null (date-time)
    • data.verificationStatus"unverified" | "verified" | "disputed" | "expired" | "revoked" | "blocked"required

      The verification state of a party, grant, or contact.

    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/authority-grants/$GRANT_ID/revoke" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "string"
  }'

Approvals

Get approval

GET/v1/pacts/approvals/{approval_id}

pacts:readpacts_getApproval

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • approval_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      An approval: a decision that binds to a version, not to a pact. That distinction is the whole point. Approving "the Acme MSA" means nothing if the text can change afterwards, so version_id is required and approved_content_hash records what the approver actually saw. A later signature compares against that hash and refuses when the paper has moved. A decided approval is final: the schema refuses to re-decide in place.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.pactIdstringrequired
    • data.versionIdstringrequired
    • data.requestedByActorIdstringrequired
    • data.approverActorIdstringrequired
    • data.approvalType"legal" | "commercial" | "privacy" | "security" | "finance" | "procurement" | "executive" | "signature_authority" | "agent_delegation" | "exception"required

      The kind of approval.

    • data.status"pending" | "approved" | "rejected" | "expired" | "revoked"required

      The state of an approval.

    • data.authorityGrantIdstring | null
    • data.approvedContentHashstring | null
    • data.reasonstring | null
    • data.decidedAtstring | null (date-time)
    • data.expiresAtstring | null (date-time)
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/approvals/$APPROVAL_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

List approvals

GET/v1/pacts/pacts/{pact_id}/approvals

pacts:readpacts_listApprovals

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • pact_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.approvalsobject[]
    • data.approvals[].[].idstringrequired
    • data.approvals[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.approvals[].[].scope.organizationIdstringrequired
    • data.approvals[].[].scope.workspaceIdstringrequired
    • data.approvals[].[].scope.projectIdstring | null
    • data.approvals[].[].scope.environmentIdstringrequired
    • data.approvals[].[].pactIdstringrequired
    • data.approvals[].[].versionIdstringrequired
    • data.approvals[].[].requestedByActorIdstringrequired
    • data.approvals[].[].approverActorIdstringrequired
    • data.approvals[].[].approvalType"legal" | "commercial" | "privacy" | "security" | "finance" | "procurement" | "executive" | "signature_authority" | "agent_delegation" | "exception"required

      The kind of approval.

    • data.approvals[].[].status"pending" | "approved" | "rejected" | "expired" | "revoked"required

      The state of an approval.

    • data.approvals[].[].authorityGrantIdstring | null
    • data.approvals[].[].approvedContentHashstring | null
    • data.approvals[].[].reasonstring | null
    • data.approvals[].[].decidedAtstring | null (date-time)
    • data.approvals[].[].expiresAtstring | null (date-time)
    • data.approvals[].[].createdAtstring (date-time)required
    • data.approvals[].[].updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/approvals" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create approval

POST/v1/pacts/pacts/{pact_id}/approvals

pacts:writeIdempotency-Key requiredpacts_createApproval

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • pact_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • versionIdstringrequired
  • approverActorIdstringrequired
  • approvalType"legal" | "commercial" | "privacy" | "security" | "finance" | "procurement" | "executive" | "signature_authority" | "agent_delegation" | "exception"required

    The kind of approval.

  • authorityGrantIdstring | null
  • expiresAtstring | null (date-time)

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      An approval: a decision that binds to a version, not to a pact. That distinction is the whole point. Approving "the Acme MSA" means nothing if the text can change afterwards, so version_id is required and approved_content_hash records what the approver actually saw. A later signature compares against that hash and refuses when the paper has moved. A decided approval is final: the schema refuses to re-decide in place.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.pactIdstringrequired
    • data.versionIdstringrequired
    • data.requestedByActorIdstringrequired
    • data.approverActorIdstringrequired
    • data.approvalType"legal" | "commercial" | "privacy" | "security" | "finance" | "procurement" | "executive" | "signature_authority" | "agent_delegation" | "exception"required

      The kind of approval.

    • data.status"pending" | "approved" | "rejected" | "expired" | "revoked"required

      The state of an approval.

    • data.authorityGrantIdstring | null
    • data.approvedContentHashstring | null
    • data.reasonstring | null
    • data.decidedAtstring | null (date-time)
    • data.expiresAtstring | null (date-time)
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/approvals" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "versionId": "string",
    "approverActorId": "string",
    "approvalType": "legal"
  }'

Approve

Approve, pinning the content hash of the version as it is now

POST/v1/pacts/approvals/{approval_id}/approve

Idempotency-Key requiredPerson onlypacts_approveApproval

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Approve, pinning the content hash of the version as it is now.

Parameters

  • approval_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • reasonstring | null

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      An approval: a decision that binds to a version, not to a pact. That distinction is the whole point. Approving "the Acme MSA" means nothing if the text can change afterwards, so version_id is required and approved_content_hash records what the approver actually saw. A later signature compares against that hash and refuses when the paper has moved. A decided approval is final: the schema refuses to re-decide in place.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.pactIdstringrequired
    • data.versionIdstringrequired
    • data.requestedByActorIdstringrequired
    • data.approverActorIdstringrequired
    • data.approvalType"legal" | "commercial" | "privacy" | "security" | "finance" | "procurement" | "executive" | "signature_authority" | "agent_delegation" | "exception"required

      The kind of approval.

    • data.status"pending" | "approved" | "rejected" | "expired" | "revoked"required

      The state of an approval.

    • data.authorityGrantIdstring | null
    • data.approvedContentHashstring | null
    • data.reasonstring | null
    • data.decidedAtstring | null (date-time)
    • data.expiresAtstring | null (date-time)
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/approvals/$APPROVAL_ID/approve" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Approve a clause

POST/v1/pacts/clauses/{clause_id}/approve

Idempotency-Key requiredPerson onlypacts_approveClause

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Approve a clause. The approver is the authenticated caller — the schema requires the attribution, because "who signed off on this text" is the question the record exists to answer.

Parameters

  • clause_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

A JSON object; see the description above.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A clause: versioned reusable legal text with an approval state. body_sha256 is computed by the service from body, never accepted from a caller — a clause cited in an executed agreement can then be shown to be the text that was actually inserted. fallback_clause_ids is the ordered ladder to retreat to when the counterparty rejects this position.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.libraryIdstringrequired
    • data.namestringrequired
    • data.clauseType"confidentiality" | "payment" | "term" | "termination" | "renewal" | "limitation_of_liability" | "indemnity" | "warranty" | "ip" | "data_processing" | "security" | "subprocessors" | "audit_rights" | "governing_law" | "venue" | "assignment" | "change_of_control" | "force_majeure" | "sla" | "support" | "compliance" | "insurance" | "publicity" | "agent_authority" | "other"required

      The kind of reusable legal text a clause is.

    • data.bodystringrequired
    • data.bodySha256stringrequired
    • data.jurisdictionstring | null
    • data.languagestringrequired
    • data.clauseVersionstringrequired
    • data.status"draft" | "approved" | "deprecated" | "blocked"required

      The approval state of a clause. The state exists at the storage layer — rather than as an edit hint — because a playbook that cites a clause which was later deprecated must not silently keep proposing it. Approved is the only state a playbook may treat as a position; the schema requires an approved clause to name its approver.

    • data.ownerActorIdstringrequired
    • data.approvedByActorIdstring | null
    • data.approvedAtstring | null (date-time)
    • data.fallbackClauseIdsstring[]required
    • data.riskTagsstring[]required
    • data.dataClasses"none" | "personal_data" | "sensitive_personal_data" | "health_data" | "financial_data" | "payment_data" | "biometric_data" | "children_data" | "employee_data" | "trade_secret" | "source_code" | "security_finding" | "government_data"[]required
    • data.effectiveAtstring | null (date-time)
    • data.expiresAtstring | null (date-time)
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/clauses/$CLAUSE_ID/approve" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '"string"'

Reject

Reject, recording the reason the requester needs to act on

POST/v1/pacts/approvals/{approval_id}/reject

Idempotency-Key requiredPerson onlypacts_rejectApproval

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Reject, recording the reason the requester needs to act on.

Parameters

  • approval_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • reasonstring | null

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      An approval: a decision that binds to a version, not to a pact. That distinction is the whole point. Approving "the Acme MSA" means nothing if the text can change afterwards, so version_id is required and approved_content_hash records what the approver actually saw. A later signature compares against that hash and refuses when the paper has moved. A decided approval is final: the schema refuses to re-decide in place.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.pactIdstringrequired
    • data.versionIdstringrequired
    • data.requestedByActorIdstringrequired
    • data.approverActorIdstringrequired
    • data.approvalType"legal" | "commercial" | "privacy" | "security" | "finance" | "procurement" | "executive" | "signature_authority" | "agent_delegation" | "exception"required

      The kind of approval.

    • data.status"pending" | "approved" | "rejected" | "expired" | "revoked"required

      The state of an approval.

    • data.authorityGrantIdstring | null
    • data.approvedContentHashstring | null
    • data.reasonstring | null
    • data.decidedAtstring | null (date-time)
    • data.expiresAtstring | null (date-time)
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/approvals/$APPROVAL_ID/reject" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Waive

Waive a pending approval — say why, recorded as the reason

POST/v1/pacts/approvals/{approval_id}/waive

Idempotency-Key requiredPerson onlypacts_waiveApproval

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Waive a pending approval — say why, recorded as the reason.

Parameters

  • approval_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • reasonstring | null

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      An approval: a decision that binds to a version, not to a pact. That distinction is the whole point. Approving "the Acme MSA" means nothing if the text can change afterwards, so version_id is required and approved_content_hash records what the approver actually saw. A later signature compares against that hash and refuses when the paper has moved. A decided approval is final: the schema refuses to re-decide in place.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.pactIdstringrequired
    • data.versionIdstringrequired
    • data.requestedByActorIdstringrequired
    • data.approverActorIdstringrequired
    • data.approvalType"legal" | "commercial" | "privacy" | "security" | "finance" | "procurement" | "executive" | "signature_authority" | "agent_delegation" | "exception"required

      The kind of approval.

    • data.status"pending" | "approved" | "rejected" | "expired" | "revoked"required

      The state of an approval.

    • data.authorityGrantIdstring | null
    • data.approvedContentHashstring | null
    • data.reasonstring | null
    • data.decidedAtstring | null (date-time)
    • data.expiresAtstring | null (date-time)
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/approvals/$APPROVAL_ID/waive" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Waive an obligation, with the reason a dispute will turn on

POST/v1/pacts/obligations/{obligation_id}/waive

pacts:writeIdempotency-Key requiredpacts_waiveObligation

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Waive an obligation, with the reason a dispute will turn on.

Parameters

  • obligation_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • reasonstringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      An obligation: a duty an agreement imposes after signature. Extraction is a model output, so confidence is stored and an extracted obligation stays in draft until a human confirms it — an unreviewed model extraction never becomes an operational fact. Status changes are events, not overwrites: "this was waived by X for reason Y" is the record a dispute turns on, and it outlives the next status change.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.pactIdstringrequired
    • data.sourceVersionIdstringrequired
    • data.sourceClauseRefanyrequired
    • data.obligationType"payment" | "renewal_notice" | "termination_notice" | "sla" | "support" | "security_control" | "privacy_request" | "subprocessor_notice" | "audit_right" | "reporting" | "insurance" | "confidentiality" | "data_deletion" | "data_return" | "tax" | "compliance_certification" | "warranty" | "delivery" | "milestone" | "other"required

      The kind of duty an obligation is.

    • data.owedByPartyIdstringrequired
    • data.owedToPartyIdstringrequired
    • data.responsibleActorIdstring | null
    • data.descriptionstringrequired
    • data.trigger"effective_date" | "signature_date" | "calendar_date" | "renewal_window" | "notice_received" | "incident" | "invoice" | "milestone" | "manual"required

      What fires an obligation into action.

    • data.dueAtstring | null (date-time)
    • data.recurrenceany
    • data.status"draft" | "active" | "due_soon" | "overdue" | "fulfilled" | "waived" | "breached" | "disputed" | "terminated"required

      The state of an obligation.

    • data.confidencenumberrequired
    • data.extractedByModelstring | null
    • data.confirmedByActorIdstring | null
    • data.confirmedAtstring | null (date-time)
    • data.workflowRunIdstring | null
    • data.lastCheckedAtstring | null (date-time)
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/obligations/$OBLIGATION_ID/waive" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "string"
  }'

Authority grants

List grants

GET/v1/pacts/authority-grants

pacts:readpacts_listGrants

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.authorityGrantsobject[]
    • data.authorityGrants[].[].idstringrequired
    • data.authorityGrants[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.authorityGrants[].[].scope.organizationIdstringrequired
    • data.authorityGrants[].[].scope.workspaceIdstringrequired
    • data.authorityGrants[].[].scope.projectIdstring | null
    • data.authorityGrants[].[].scope.environmentIdstringrequired
    • data.authorityGrants[].[].principalActorIdstringrequired
    • data.authorityGrants[].[].principalActorType"human" | "agent" | "service" | "counterparty_human" | "counterparty_agent" | "outside_counsel" | "system"required

      The kind of principal acting. Mirrors pacts_actor_type. An agent acting under delegation is a distinct kind from the human who granted it, because "who signed this" and "on whose authority" are different questions.

    • data.authorityGrants[].[].representedPartyIdstringrequired
    • data.authorityGrants[].[].grantType"role" | "board_resolution" | "power_of_attorney" | "employment_authority" | "outside_counsel_engagement" | "procurement_policy" | "agent_delegation" | "service_account_policy" | "verifiable_credential" | "manual_counsel_override"required

      The kind of authority basis a grant rests on.

    • data.authorityGrants[].[].sourceEvidenceRefIdstringrequired
    • data.authorityGrants[].[].maxContractValueobject | null
    • data.authorityGrants[].[].allowedAgreementTypesarray | null

      None means all agreement types. An empty vec means none — a grant that authorizes nothing, distinguishable from unlimited on purpose.

    • data.authorityGrants[].[].allowedActions"draft" | "comment" | "redline" | "negotiate" | "approve" | "reject" | "sign" | "countersign" | "send" | "accept_terms" | "delegate" | "amend" | "terminate" | "waive" | "renew"[]required
    • data.authorityGrants[].[].jurisdictionstring | null
    • data.authorityGrants[].[].effectiveAtstring (date-time)required
    • data.authorityGrants[].[].expiresAtstring | null (date-time)
    • data.authorityGrants[].[].revokedAtstring | null (date-time)
    • data.authorityGrants[].[].revokedByActorIdstring | null
    • data.authorityGrants[].[].revocationReasonstring | null
    • data.authorityGrants[].[].verifiedByActorIdstring | null
    • data.authorityGrants[].[].verifiedAtstring | null (date-time)
    • data.authorityGrants[].[].verificationStatus"unverified" | "verified" | "disputed" | "expired" | "revoked" | "blocked"required

      The verification state of a party, grant, or contact.

    • data.authorityGrants[].[].createdByActorIdstringrequired
    • data.authorityGrants[].[].createdAtstring (date-time)required
    • data.authorityGrants[].[].updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/authority-grants" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create grant

POST/v1/pacts/authority-grants

Idempotency-Key requiredPerson onlypacts_createGrant

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Parameters

  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • principalActorIdstringrequired
  • principalActorType"human" | "agent" | "service" | "counterparty_human" | "counterparty_agent" | "outside_counsel" | "system" | null
  • representedPartyIdstringrequired
  • grantType"role" | "board_resolution" | "power_of_attorney" | "employment_authority" | "outside_counsel_engagement" | "procurement_policy" | "agent_delegation" | "service_account_policy" | "verifiable_credential" | "manual_counsel_override"required

    The kind of authority basis a grant rests on.

  • sourceEvidenceRefIdstringrequired
  • maxContractValueobject | null
  • allowedAgreementTypesarray | null
  • allowedActions"draft" | "comment" | "redline" | "negotiate" | "approve" | "reject" | "sign" | "countersign" | "send" | "accept_terms" | "delegate" | "amend" | "terminate" | "waive" | "renew"[]required
  • jurisdictionstring | null
  • effectiveAtstring | null (date-time)
  • expiresAtstring | null (date-time)

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      An authority grant: the basis on which an actor may act for a party. SPEC.md: "No approval or signature is valid inside Pacts without an authority basis." This is that basis. The fields that bound what the principal may do — value ceiling, allowed agreement types, allowed actions — are checked at decision time by [crate::authority], not merely stored.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.principalActorIdstringrequired
    • data.principalActorType"human" | "agent" | "service" | "counterparty_human" | "counterparty_agent" | "outside_counsel" | "system"required

      The kind of principal acting. Mirrors pacts_actor_type. An agent acting under delegation is a distinct kind from the human who granted it, because "who signed this" and "on whose authority" are different questions.

    • data.representedPartyIdstringrequired
    • data.grantType"role" | "board_resolution" | "power_of_attorney" | "employment_authority" | "outside_counsel_engagement" | "procurement_policy" | "agent_delegation" | "service_account_policy" | "verifiable_credential" | "manual_counsel_override"required

      The kind of authority basis a grant rests on.

    • data.sourceEvidenceRefIdstringrequired
    • data.maxContractValueobject | null
    • data.allowedAgreementTypesarray | null

      None means all agreement types. An empty vec means none — a grant that authorizes nothing, distinguishable from unlimited on purpose.

    • data.allowedActions"draft" | "comment" | "redline" | "negotiate" | "approve" | "reject" | "sign" | "countersign" | "send" | "accept_terms" | "delegate" | "amend" | "terminate" | "waive" | "renew"[]required
    • data.jurisdictionstring | null
    • data.effectiveAtstring (date-time)required
    • data.expiresAtstring | null (date-time)
    • data.revokedAtstring | null (date-time)
    • data.revokedByActorIdstring | null
    • data.revocationReasonstring | null
    • data.verifiedByActorIdstring | null
    • data.verifiedAtstring | null (date-time)
    • data.verificationStatus"unverified" | "verified" | "disputed" | "expired" | "revoked" | "blocked"required

      The verification state of a party, grant, or contact.

    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/authority-grants" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "principalActorId": "string",
    "representedPartyId": "string",
    "grantType": "role",
    "sourceEvidenceRefId": "string",
    "allowedActions": []
  }'

Get grant

GET/v1/pacts/authority-grants/{grant_id}

pacts:readpacts_getGrant

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • grant_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      An authority grant: the basis on which an actor may act for a party. SPEC.md: "No approval or signature is valid inside Pacts without an authority basis." This is that basis. The fields that bound what the principal may do — value ceiling, allowed agreement types, allowed actions — are checked at decision time by [crate::authority], not merely stored.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.principalActorIdstringrequired
    • data.principalActorType"human" | "agent" | "service" | "counterparty_human" | "counterparty_agent" | "outside_counsel" | "system"required

      The kind of principal acting. Mirrors pacts_actor_type. An agent acting under delegation is a distinct kind from the human who granted it, because "who signed this" and "on whose authority" are different questions.

    • data.representedPartyIdstringrequired
    • data.grantType"role" | "board_resolution" | "power_of_attorney" | "employment_authority" | "outside_counsel_engagement" | "procurement_policy" | "agent_delegation" | "service_account_policy" | "verifiable_credential" | "manual_counsel_override"required

      The kind of authority basis a grant rests on.

    • data.sourceEvidenceRefIdstringrequired
    • data.maxContractValueobject | null
    • data.allowedAgreementTypesarray | null

      None means all agreement types. An empty vec means none — a grant that authorizes nothing, distinguishable from unlimited on purpose.

    • data.allowedActions"draft" | "comment" | "redline" | "negotiate" | "approve" | "reject" | "sign" | "countersign" | "send" | "accept_terms" | "delegate" | "amend" | "terminate" | "waive" | "renew"[]required
    • data.jurisdictionstring | null
    • data.effectiveAtstring (date-time)required
    • data.expiresAtstring | null (date-time)
    • data.revokedAtstring | null (date-time)
    • data.revokedByActorIdstring | null
    • data.revocationReasonstring | null
    • data.verifiedByActorIdstring | null
    • data.verifiedAtstring | null (date-time)
    • data.verificationStatus"unverified" | "verified" | "disputed" | "expired" | "revoked" | "blocked"required

      The verification state of a party, grant, or contact.

    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/authority-grants/$GRANT_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Update grant

PATCH/v1/pacts/authority-grants/{grant_id}

Idempotency-Key requiredPerson onlypacts_updateGrant

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Parameters

  • grant_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • maxContractValueobject | null
  • allowedAgreementTypesarray | null
  • allowedActionsarray | null
  • jurisdictionstring | null
  • expiresAtstring | null (date-time)

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      An authority grant: the basis on which an actor may act for a party. SPEC.md: "No approval or signature is valid inside Pacts without an authority basis." This is that basis. The fields that bound what the principal may do — value ceiling, allowed agreement types, allowed actions — are checked at decision time by [crate::authority], not merely stored.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.principalActorIdstringrequired
    • data.principalActorType"human" | "agent" | "service" | "counterparty_human" | "counterparty_agent" | "outside_counsel" | "system"required

      The kind of principal acting. Mirrors pacts_actor_type. An agent acting under delegation is a distinct kind from the human who granted it, because "who signed this" and "on whose authority" are different questions.

    • data.representedPartyIdstringrequired
    • data.grantType"role" | "board_resolution" | "power_of_attorney" | "employment_authority" | "outside_counsel_engagement" | "procurement_policy" | "agent_delegation" | "service_account_policy" | "verifiable_credential" | "manual_counsel_override"required

      The kind of authority basis a grant rests on.

    • data.sourceEvidenceRefIdstringrequired
    • data.maxContractValueobject | null
    • data.allowedAgreementTypesarray | null

      None means all agreement types. An empty vec means none — a grant that authorizes nothing, distinguishable from unlimited on purpose.

    • data.allowedActions"draft" | "comment" | "redline" | "negotiate" | "approve" | "reject" | "sign" | "countersign" | "send" | "accept_terms" | "delegate" | "amend" | "terminate" | "waive" | "renew"[]required
    • data.jurisdictionstring | null
    • data.effectiveAtstring (date-time)required
    • data.expiresAtstring | null (date-time)
    • data.revokedAtstring | null (date-time)
    • data.revokedByActorIdstring | null
    • data.revocationReasonstring | null
    • data.verifiedByActorIdstring | null
    • data.verifiedAtstring | null (date-time)
    • data.verificationStatus"unverified" | "verified" | "disputed" | "expired" | "revoked" | "blocked"required

      The verification state of a party, grant, or contact.

    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/pacts/authority-grants/$GRANT_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Verify

Verify grant

POST/v1/pacts/authority-grants/{grant_id}/verify

Idempotency-Key requiredPerson onlypacts_verifyGrant

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Parameters

  • grant_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

A JSON object; see the description above.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      An authority grant: the basis on which an actor may act for a party. SPEC.md: "No approval or signature is valid inside Pacts without an authority basis." This is that basis. The fields that bound what the principal may do — value ceiling, allowed agreement types, allowed actions — are checked at decision time by [crate::authority], not merely stored.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.principalActorIdstringrequired
    • data.principalActorType"human" | "agent" | "service" | "counterparty_human" | "counterparty_agent" | "outside_counsel" | "system"required

      The kind of principal acting. Mirrors pacts_actor_type. An agent acting under delegation is a distinct kind from the human who granted it, because "who signed this" and "on whose authority" are different questions.

    • data.representedPartyIdstringrequired
    • data.grantType"role" | "board_resolution" | "power_of_attorney" | "employment_authority" | "outside_counsel_engagement" | "procurement_policy" | "agent_delegation" | "service_account_policy" | "verifiable_credential" | "manual_counsel_override"required

      The kind of authority basis a grant rests on.

    • data.sourceEvidenceRefIdstringrequired
    • data.maxContractValueobject | null
    • data.allowedAgreementTypesarray | null

      None means all agreement types. An empty vec means none — a grant that authorizes nothing, distinguishable from unlimited on purpose.

    • data.allowedActions"draft" | "comment" | "redline" | "negotiate" | "approve" | "reject" | "sign" | "countersign" | "send" | "accept_terms" | "delegate" | "amend" | "terminate" | "waive" | "renew"[]required
    • data.jurisdictionstring | null
    • data.effectiveAtstring (date-time)required
    • data.expiresAtstring | null (date-time)
    • data.revokedAtstring | null (date-time)
    • data.revokedByActorIdstring | null
    • data.revocationReasonstring | null
    • data.verifiedByActorIdstring | null
    • data.verifiedAtstring | null (date-time)
    • data.verificationStatus"unverified" | "verified" | "disputed" | "expired" | "revoked" | "blocked"required

      The verification state of a party, grant, or contact.

    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/authority-grants/$GRANT_ID/verify" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '"string"'

Verify party

POST/v1/pacts/parties/{party_id}/verify

pacts:writeIdempotency-Key requiredpacts_verifyParty

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • party_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • status"unverified" | "verified" | "disputed" | "expired" | "revoked" | "blocked"required

    The verification state of a party, grant, or contact.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A party: the entity that signs or is represented.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.namestringrequired
    • data.partyType"legal_entity" | "individual" | "agent" | "government" | "trust" | "other"required

      The legal form of a party.

    • data.role"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other"required

      A party's role in an agreement.

    • data.legalEntityIdstring | null
    • data.jurisdictionstring | null
    • data.addressany
    • data.externalPartybooleanrequired
    • data.verificationStatus"unverified" | "verified" | "disputed" | "expired" | "revoked" | "blocked"required

      The verification state of a party, grant, or contact.

    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/parties/$PARTY_ID/verify" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "status": "unverified"
  }'

Verify a package's signatures against their sealed digests

POST/v1/pacts/signature-packages/{package_id}/verify

pacts:writeIdempotency-Key requiredpacts_verifyPackage

Scope pacts:read. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Verify a package's signatures against their sealed digests.

Parameters

  • package_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

A JSON object; see the description above.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.packageIdstring
    • data.statusany
    • data.sealedContentHashany
    • data.sealedMatchesCurrentVersionany
    • data.signerCountinteger
    • data.signatureCountinteger
    • data.signaturesVerifiedany
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/signature-packages/$PACKAGE_ID/verify" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '"string"'

Authority

Answer whether an actor may take an action for a party

POST/v1/pacts/authority/check

pacts:writeIdempotency-Key requiredpacts_checkAuthority

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Answer whether an actor may take an action for a party.

Parameters

  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • principalActorIdstringrequired
  • representedPartyIdstringrequired
  • action"draft" | "comment" | "redline" | "negotiate" | "approve" | "reject" | "sign" | "countersign" | "send" | "accept_terms" | "delegate" | "amend" | "terminate" | "waive" | "renew"required

    An action an authority grant may permit.

  • agreementType"msa" | "order_form" | "sow" | "nda" | "dpa" | "baa" | "sla" | "terms_of_service" | "privacy_policy" | "employment_agreement" | "contractor_agreement" | "ip_assignment" | "licensing_agreement" | "reseller_agreement" | "partnership_agreement" | "investment_document" | "board_consent" | "procurement_terms" | "agent_delegation_policy" | "agent_service_agreement" | "settlement" | "amendment" | "termination_notice" | "other" | null
  • contractValueinteger | null (int64)

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.permittedboolean
    • data.grantIdstring
    • data.blockany
    • data.evaluatedAtany
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/authority/check" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "principalActorId": "string",
    "representedPartyId": "string",
    "action": "draft"
  }'

Authenticate

Record that the signer was authenticated, naming the method

POST/v1/pacts/ceremony/{ceremony_id}/authenticate

pacts:writeIdempotency-Key requiredpacts_recordAuthenticate

Scope pacts:sign at Pacts (exact: pacts:write never implies it); the gateway also requires pacts:write on this route. A delegated principal (One acting for a person in a company) may call it. Idempotency-Key is required.

Record that the signer was authenticated, naming the method.

Parameters

  • ceremony_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • methodstringrequired

    How the signer was authenticated (oidc, webauthn, aal2, etc.).

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A signing ceremony session: one signer's act of signing one package. The ceremony produces the evidence a signature's flags assert. Before this, intent_captured, consent_captured, and signer_authenticated were booleans the caller set. Here they are read from the session's recorded evidence — a signature cannot claim a ceremony the session did not record.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.signaturePackageIdstringrequired
    • data.signerActorIdstringrequired
    • data.sealedContentHashstringrequired

      The sealed hash the ceremony ran against. A signature can only draw on a session whose hash matches the package's current sealed hash.

    • data.status"open" | "completed" | "abandoned" | "expired"required

      The state of a ceremony session.

    • data.disclosureShownAtstring | null (date-time)
    • data.consentGivenAtstring | null (date-time)
    • data.authenticatedAtstring | null (date-time)
    • data.authenticationMethodstring | null
    • data.intentToSignAtstring | null (date-time)
    • data.ipAddressHashstring | null
    • data.userAgentHashstring | null
    • data.expiresAtstring (date-time)required
    • data.createdAtstring (date-time)required
    • data.completedAtstring | null (date-time)
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/ceremony/$CEREMONY_ID/authenticate" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "method": "string"
  }'

Record that the signer consented to electronic records

POST/v1/pacts/ceremony/{ceremony_id}/consent

pacts:writeIdempotency-Key requiredpacts_recordConsent

Scope pacts:sign at Pacts (exact: pacts:write never implies it); the gateway also requires pacts:write on this route. A delegated principal (One acting for a person in a company) may call it. Idempotency-Key is required.

Record that the signer consented to electronic records.

Parameters

  • ceremony_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • consentHashstringrequired

    The sha-256 of the consent statement the signer affirmed.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A signing ceremony session: one signer's act of signing one package. The ceremony produces the evidence a signature's flags assert. Before this, intent_captured, consent_captured, and signer_authenticated were booleans the caller set. Here they are read from the session's recorded evidence — a signature cannot claim a ceremony the session did not record.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.signaturePackageIdstringrequired
    • data.signerActorIdstringrequired
    • data.sealedContentHashstringrequired

      The sealed hash the ceremony ran against. A signature can only draw on a session whose hash matches the package's current sealed hash.

    • data.status"open" | "completed" | "abandoned" | "expired"required

      The state of a ceremony session.

    • data.disclosureShownAtstring | null (date-time)
    • data.consentGivenAtstring | null (date-time)
    • data.authenticatedAtstring | null (date-time)
    • data.authenticationMethodstring | null
    • data.intentToSignAtstring | null (date-time)
    • data.ipAddressHashstring | null
    • data.userAgentHashstring | null
    • data.expiresAtstring (date-time)required
    • data.createdAtstring (date-time)required
    • data.completedAtstring | null (date-time)
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/ceremony/$CEREMONY_ID/consent" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "consentHash": "string"
  }'

Disclosure

Record that the signer was shown the disclosure

POST/v1/pacts/ceremony/{ceremony_id}/disclosure

pacts:writeIdempotency-Key requiredpacts_recordDisclosure

Scope pacts:sign at Pacts (exact: pacts:write never implies it); the gateway also requires pacts:write on this route. A delegated principal (One acting for a person in a company) may call it. Idempotency-Key is required.

Record that the signer was shown the disclosure.

Parameters

  • ceremony_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • disclosureHashstringrequired

    The sha-256 of the disclosure text the signer was shown. Hashed because the full text is evidence stored elsewhere; the hash pins which one.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A signing ceremony session: one signer's act of signing one package. The ceremony produces the evidence a signature's flags assert. Before this, intent_captured, consent_captured, and signer_authenticated were booleans the caller set. Here they are read from the session's recorded evidence — a signature cannot claim a ceremony the session did not record.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.signaturePackageIdstringrequired
    • data.signerActorIdstringrequired
    • data.sealedContentHashstringrequired

      The sealed hash the ceremony ran against. A signature can only draw on a session whose hash matches the package's current sealed hash.

    • data.status"open" | "completed" | "abandoned" | "expired"required

      The state of a ceremony session.

    • data.disclosureShownAtstring | null (date-time)
    • data.consentGivenAtstring | null (date-time)
    • data.authenticatedAtstring | null (date-time)
    • data.authenticationMethodstring | null
    • data.intentToSignAtstring | null (date-time)
    • data.ipAddressHashstring | null
    • data.userAgentHashstring | null
    • data.expiresAtstring (date-time)required
    • data.createdAtstring (date-time)required
    • data.completedAtstring | null (date-time)
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/ceremony/$CEREMONY_ID/disclosure" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "disclosureHash": "string"
  }'

Intent

Record that the signer affirmed their intent to sign

POST/v1/pacts/ceremony/{ceremony_id}/intent

pacts:writeIdempotency-Key requiredpacts_recordIntent

Scope pacts:sign at Pacts (exact: pacts:write never implies it); the gateway also requires pacts:write on this route. A delegated principal (One acting for a person in a company) may call it. Idempotency-Key is required.

Record that the signer affirmed their intent to sign.

Parameters

  • ceremony_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

A JSON object; see the description above.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A signing ceremony session: one signer's act of signing one package. The ceremony produces the evidence a signature's flags assert. Before this, intent_captured, consent_captured, and signer_authenticated were booleans the caller set. Here they are read from the session's recorded evidence — a signature cannot claim a ceremony the session did not record.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.signaturePackageIdstringrequired
    • data.signerActorIdstringrequired
    • data.sealedContentHashstringrequired

      The sealed hash the ceremony ran against. A signature can only draw on a session whose hash matches the package's current sealed hash.

    • data.status"open" | "completed" | "abandoned" | "expired"required

      The state of a ceremony session.

    • data.disclosureShownAtstring | null (date-time)
    • data.consentGivenAtstring | null (date-time)
    • data.authenticatedAtstring | null (date-time)
    • data.authenticationMethodstring | null
    • data.intentToSignAtstring | null (date-time)
    • data.ipAddressHashstring | null
    • data.userAgentHashstring | null
    • data.expiresAtstring (date-time)required
    • data.createdAtstring (date-time)required
    • data.completedAtstring | null (date-time)
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/ceremony/$CEREMONY_ID/intent" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '"string"'

Clause libraries

List libraries

GET/v1/pacts/clause-libraries

pacts:readpacts_listLibraries

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.librariesobject[]
    • data.libraries[].[].idstringrequired
    • data.libraries[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.libraries[].[].scope.organizationIdstringrequired
    • data.libraries[].[].scope.workspaceIdstringrequired
    • data.libraries[].[].scope.projectIdstring | null
    • data.libraries[].[].scope.environmentIdstringrequired
    • data.libraries[].[].namestringrequired
    • data.libraries[].[].descriptionstring | null
    • data.libraries[].[].ownerActorIdstringrequired
    • data.libraries[].[].jurisdictionstring | null
    • data.libraries[].[].languagestringrequired
    • data.libraries[].[].isDefaultbooleanrequired
    • data.libraries[].[].createdByActorIdstringrequired
    • data.libraries[].[].createdAtstring (date-time)required
    • data.libraries[].[].updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/clause-libraries" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create library

POST/v1/pacts/clause-libraries

Idempotency-Key requiredPerson onlypacts_createLibrary

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Parameters

  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • namestringrequired
  • descriptionstring | null
  • ownerActorIdstring | null

    Defaults to the caller: a library's owner is whoever created it unless the caller names another owner.

  • jurisdictionstring | null
  • languagestring | null
  • isDefaultboolean | null

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A clause library: a named, owned collection of reusable clauses. At most one library per scope may be the default (a partial unique index enforces it), so clause resolution is deterministic — "the library" never means two things.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.namestringrequired
    • data.descriptionstring | null
    • data.ownerActorIdstringrequired
    • data.jurisdictionstring | null
    • data.languagestringrequired
    • data.isDefaultbooleanrequired
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/clause-libraries" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string"
  }'

Get library

GET/v1/pacts/clause-libraries/{library_id}

pacts:readpacts_getLibrary

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • library_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A clause library: a named, owned collection of reusable clauses. At most one library per scope may be the default (a partial unique index enforces it), so clause resolution is deterministic — "the library" never means two things.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.namestringrequired
    • data.descriptionstring | null
    • data.ownerActorIdstringrequired
    • data.jurisdictionstring | null
    • data.languagestringrequired
    • data.isDefaultbooleanrequired
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/clause-libraries/$LIBRARY_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Update library

PATCH/v1/pacts/clause-libraries/{library_id}

Idempotency-Key requiredPerson onlypacts_updateLibrary

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Parameters

  • library_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • namestring | null
  • descriptionstring | null
  • ownerActorIdstring | null
  • jurisdictionstring | null
  • languagestring | null
  • isDefaultboolean | null

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A clause library: a named, owned collection of reusable clauses. At most one library per scope may be the default (a partial unique index enforces it), so clause resolution is deterministic — "the library" never means two things.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.namestringrequired
    • data.descriptionstring | null
    • data.ownerActorIdstringrequired
    • data.jurisdictionstring | null
    • data.languagestringrequired
    • data.isDefaultbooleanrequired
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/pacts/clause-libraries/$LIBRARY_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Clauses

List clauses

GET/v1/pacts/clauses

pacts:readpacts_listClauses

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • libraryIdquery · string
  • clauseTypequery · "confidentiality" | "payment" | "term" | "termination" | "renewal" | "limitation_of_liability" | "indemnity" | "warranty" | "ip" | "data_processing" | "security" | "subprocessors" | "audit_rights" | "governing_law" | "venue" | "assignment" | "change_of_control" | "force_majeure" | "sla" | "support" | "compliance" | "insurance" | "publicity" | "agent_authority" | "other"
  • statusquery · "draft" | "approved" | "deprecated" | "blocked"

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.clausesobject[]
    • data.clauses[].[].idstringrequired
    • data.clauses[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.clauses[].[].scope.organizationIdstringrequired
    • data.clauses[].[].scope.workspaceIdstringrequired
    • data.clauses[].[].scope.projectIdstring | null
    • data.clauses[].[].scope.environmentIdstringrequired
    • data.clauses[].[].libraryIdstringrequired
    • data.clauses[].[].namestringrequired
    • data.clauses[].[].clauseType"confidentiality" | "payment" | "term" | "termination" | "renewal" | "limitation_of_liability" | "indemnity" | "warranty" | "ip" | "data_processing" | "security" | "subprocessors" | "audit_rights" | "governing_law" | "venue" | "assignment" | "change_of_control" | "force_majeure" | "sla" | "support" | "compliance" | "insurance" | "publicity" | "agent_authority" | "other"required

      The kind of reusable legal text a clause is.

    • data.clauses[].[].bodystringrequired
    • data.clauses[].[].bodySha256stringrequired
    • data.clauses[].[].jurisdictionstring | null
    • data.clauses[].[].languagestringrequired
    • data.clauses[].[].clauseVersionstringrequired
    • data.clauses[].[].status"draft" | "approved" | "deprecated" | "blocked"required

      The approval state of a clause. The state exists at the storage layer — rather than as an edit hint — because a playbook that cites a clause which was later deprecated must not silently keep proposing it. Approved is the only state a playbook may treat as a position; the schema requires an approved clause to name its approver.

    • data.clauses[].[].ownerActorIdstringrequired
    • data.clauses[].[].approvedByActorIdstring | null
    • data.clauses[].[].approvedAtstring | null (date-time)
    • data.clauses[].[].fallbackClauseIdsstring[]required
    • data.clauses[].[].riskTagsstring[]required
    • data.clauses[].[].dataClasses"none" | "personal_data" | "sensitive_personal_data" | "health_data" | "financial_data" | "payment_data" | "biometric_data" | "children_data" | "employee_data" | "trade_secret" | "source_code" | "security_finding" | "government_data"[]required
    • data.clauses[].[].effectiveAtstring | null (date-time)
    • data.clauses[].[].expiresAtstring | null (date-time)
    • data.clauses[].[].createdByActorIdstringrequired
    • data.clauses[].[].createdAtstring (date-time)required
    • data.clauses[].[].updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/clauses" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create clause

POST/v1/pacts/clauses

pacts:writeIdempotency-Key requiredpacts_createClause

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • libraryIdstringrequired
  • namestringrequired
  • clauseType"confidentiality" | "payment" | "term" | "termination" | "renewal" | "limitation_of_liability" | "indemnity" | "warranty" | "ip" | "data_processing" | "security" | "subprocessors" | "audit_rights" | "governing_law" | "venue" | "assignment" | "change_of_control" | "force_majeure" | "sla" | "support" | "compliance" | "insurance" | "publicity" | "agent_authority" | "other"required

    The kind of reusable legal text a clause is.

  • bodystringrequired

    The clause text. The digest is computed from this server-side; there is no digest field to supply.

  • jurisdictionstring | null
  • languagestring | null
  • clauseVersionstring | null
  • ownerActorIdstring | null
  • fallbackClauseIdsstring[]
  • riskTagsstring[]
  • dataClasses"none" | "personal_data" | "sensitive_personal_data" | "health_data" | "financial_data" | "payment_data" | "biometric_data" | "children_data" | "employee_data" | "trade_secret" | "source_code" | "security_finding" | "government_data"[]
  • effectiveAtstring | null (date-time)
  • expiresAtstring | null (date-time)

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A clause: versioned reusable legal text with an approval state. body_sha256 is computed by the service from body, never accepted from a caller — a clause cited in an executed agreement can then be shown to be the text that was actually inserted. fallback_clause_ids is the ordered ladder to retreat to when the counterparty rejects this position.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.libraryIdstringrequired
    • data.namestringrequired
    • data.clauseType"confidentiality" | "payment" | "term" | "termination" | "renewal" | "limitation_of_liability" | "indemnity" | "warranty" | "ip" | "data_processing" | "security" | "subprocessors" | "audit_rights" | "governing_law" | "venue" | "assignment" | "change_of_control" | "force_majeure" | "sla" | "support" | "compliance" | "insurance" | "publicity" | "agent_authority" | "other"required

      The kind of reusable legal text a clause is.

    • data.bodystringrequired
    • data.bodySha256stringrequired
    • data.jurisdictionstring | null
    • data.languagestringrequired
    • data.clauseVersionstringrequired
    • data.status"draft" | "approved" | "deprecated" | "blocked"required

      The approval state of a clause. The state exists at the storage layer — rather than as an edit hint — because a playbook that cites a clause which was later deprecated must not silently keep proposing it. Approved is the only state a playbook may treat as a position; the schema requires an approved clause to name its approver.

    • data.ownerActorIdstringrequired
    • data.approvedByActorIdstring | null
    • data.approvedAtstring | null (date-time)
    • data.fallbackClauseIdsstring[]required
    • data.riskTagsstring[]required
    • data.dataClasses"none" | "personal_data" | "sensitive_personal_data" | "health_data" | "financial_data" | "payment_data" | "biometric_data" | "children_data" | "employee_data" | "trade_secret" | "source_code" | "security_finding" | "government_data"[]required
    • data.effectiveAtstring | null (date-time)
    • data.expiresAtstring | null (date-time)
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/clauses" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "libraryId": "string",
    "name": "string",
    "clauseType": "confidentiality",
    "body": "string"
  }'

Get clause

GET/v1/pacts/clauses/{clause_id}

pacts:readpacts_getClause

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • clause_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A clause: versioned reusable legal text with an approval state. body_sha256 is computed by the service from body, never accepted from a caller — a clause cited in an executed agreement can then be shown to be the text that was actually inserted. fallback_clause_ids is the ordered ladder to retreat to when the counterparty rejects this position.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.libraryIdstringrequired
    • data.namestringrequired
    • data.clauseType"confidentiality" | "payment" | "term" | "termination" | "renewal" | "limitation_of_liability" | "indemnity" | "warranty" | "ip" | "data_processing" | "security" | "subprocessors" | "audit_rights" | "governing_law" | "venue" | "assignment" | "change_of_control" | "force_majeure" | "sla" | "support" | "compliance" | "insurance" | "publicity" | "agent_authority" | "other"required

      The kind of reusable legal text a clause is.

    • data.bodystringrequired
    • data.bodySha256stringrequired
    • data.jurisdictionstring | null
    • data.languagestringrequired
    • data.clauseVersionstringrequired
    • data.status"draft" | "approved" | "deprecated" | "blocked"required

      The approval state of a clause. The state exists at the storage layer — rather than as an edit hint — because a playbook that cites a clause which was later deprecated must not silently keep proposing it. Approved is the only state a playbook may treat as a position; the schema requires an approved clause to name its approver.

    • data.ownerActorIdstringrequired
    • data.approvedByActorIdstring | null
    • data.approvedAtstring | null (date-time)
    • data.fallbackClauseIdsstring[]required
    • data.riskTagsstring[]required
    • data.dataClasses"none" | "personal_data" | "sensitive_personal_data" | "health_data" | "financial_data" | "payment_data" | "biometric_data" | "children_data" | "employee_data" | "trade_secret" | "source_code" | "security_finding" | "government_data"[]required
    • data.effectiveAtstring | null (date-time)
    • data.expiresAtstring | null (date-time)
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/clauses/$CLAUSE_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Update clause

PATCH/v1/pacts/clauses/{clause_id}

pacts:writeIdempotency-Key requiredpacts_updateClause

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • clause_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • namestring | null
  • bodystring | null

    A new body. Only a draft clause's body may change; anything past draft is text a counterparty may already have seen, and a revision is a new clause version.

  • jurisdictionstring | null
  • languagestring | null
  • clauseVersionstring | null
  • ownerActorIdstring | null
  • fallbackClauseIdsarray | null
  • riskTagsarray | null
  • dataClassesarray | null
  • effectiveAtstring | null (date-time)
  • expiresAtstring | null (date-time)

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A clause: versioned reusable legal text with an approval state. body_sha256 is computed by the service from body, never accepted from a caller — a clause cited in an executed agreement can then be shown to be the text that was actually inserted. fallback_clause_ids is the ordered ladder to retreat to when the counterparty rejects this position.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.libraryIdstringrequired
    • data.namestringrequired
    • data.clauseType"confidentiality" | "payment" | "term" | "termination" | "renewal" | "limitation_of_liability" | "indemnity" | "warranty" | "ip" | "data_processing" | "security" | "subprocessors" | "audit_rights" | "governing_law" | "venue" | "assignment" | "change_of_control" | "force_majeure" | "sla" | "support" | "compliance" | "insurance" | "publicity" | "agent_authority" | "other"required

      The kind of reusable legal text a clause is.

    • data.bodystringrequired
    • data.bodySha256stringrequired
    • data.jurisdictionstring | null
    • data.languagestringrequired
    • data.clauseVersionstringrequired
    • data.status"draft" | "approved" | "deprecated" | "blocked"required

      The approval state of a clause. The state exists at the storage layer — rather than as an edit hint — because a playbook that cites a clause which was later deprecated must not silently keep proposing it. Approved is the only state a playbook may treat as a position; the schema requires an approved clause to name its approver.

    • data.ownerActorIdstringrequired
    • data.approvedByActorIdstring | null
    • data.approvedAtstring | null (date-time)
    • data.fallbackClauseIdsstring[]required
    • data.riskTagsstring[]required
    • data.dataClasses"none" | "personal_data" | "sensitive_personal_data" | "health_data" | "financial_data" | "payment_data" | "biometric_data" | "children_data" | "employee_data" | "trade_secret" | "source_code" | "security_finding" | "government_data"[]required
    • data.effectiveAtstring | null (date-time)
    • data.expiresAtstring | null (date-time)
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/pacts/clauses/$CLAUSE_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Deprecate

Deprecate a clause

POST/v1/pacts/clauses/{clause_id}/deprecate

Idempotency-Key requiredPerson onlypacts_deprecateClause

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Deprecate a clause. Playbooks citing it surface the deprecation at test time rather than silently proposing retired text.

Parameters

  • clause_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

A JSON object; see the description above.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A clause: versioned reusable legal text with an approval state. body_sha256 is computed by the service from body, never accepted from a caller — a clause cited in an executed agreement can then be shown to be the text that was actually inserted. fallback_clause_ids is the ordered ladder to retreat to when the counterparty rejects this position.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.libraryIdstringrequired
    • data.namestringrequired
    • data.clauseType"confidentiality" | "payment" | "term" | "termination" | "renewal" | "limitation_of_liability" | "indemnity" | "warranty" | "ip" | "data_processing" | "security" | "subprocessors" | "audit_rights" | "governing_law" | "venue" | "assignment" | "change_of_control" | "force_majeure" | "sla" | "support" | "compliance" | "insurance" | "publicity" | "agent_authority" | "other"required

      The kind of reusable legal text a clause is.

    • data.bodystringrequired
    • data.bodySha256stringrequired
    • data.jurisdictionstring | null
    • data.languagestringrequired
    • data.clauseVersionstringrequired
    • data.status"draft" | "approved" | "deprecated" | "blocked"required

      The approval state of a clause. The state exists at the storage layer — rather than as an edit hint — because a playbook that cites a clause which was later deprecated must not silently keep proposing it. Approved is the only state a playbook may treat as a position; the schema requires an approved clause to name its approver.

    • data.ownerActorIdstringrequired
    • data.approvedByActorIdstring | null
    • data.approvedAtstring | null (date-time)
    • data.fallbackClauseIdsstring[]required
    • data.riskTagsstring[]required
    • data.dataClasses"none" | "personal_data" | "sensitive_personal_data" | "health_data" | "financial_data" | "payment_data" | "biometric_data" | "children_data" | "employee_data" | "trade_secret" | "source_code" | "security_finding" | "government_data"[]required
    • data.effectiveAtstring | null (date-time)
    • data.expiresAtstring | null (date-time)
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/clauses/$CLAUSE_ID/deprecate" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '"string"'

Deprecate a playbook

POST/v1/pacts/playbooks/{playbook_id}/deprecate

Idempotency-Key requiredPerson onlypacts_deprecatePlaybook

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Deprecate a playbook. It governs nothing new from here; what it proposed while active is in the audit trail.

Parameters

  • playbook_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

A JSON object; see the description above.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A playbook: the positions and rules that govern a class of agreements. fallback_positions and escalation_rules are structured policy data interpreted by the policy engine, not by this service; they are carried as JSON so the engine's grammar can evolve without a schema migration.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.namestringrequired
    • data.agreementTypes"msa" | "order_form" | "sow" | "nda" | "dpa" | "baa" | "sla" | "terms_of_service" | "privacy_policy" | "employment_agreement" | "contractor_agreement" | "ip_assignment" | "licensing_agreement" | "reseller_agreement" | "partnership_agreement" | "investment_document" | "board_consent" | "procurement_terms" | "agent_delegation_policy" | "agent_service_agreement" | "settlement" | "amendment" | "termination_notice" | "other"[]required
    • data.jurisdictionstring | null
    • data.partyRole"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other" | null
    • data.ownerActorIdstringrequired
    • data.status"draft" | "active" | "deprecated"required

      Where a playbook sits in its working life.

    • data.approvedClauseIdsstring[]required
    • data.blockedClausePatternsstring[]required
    • data.fallbackPositionsanyrequired
    • data.escalationRulesanyrequired
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/playbooks/$PLAYBOOK_ID/deprecate" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '"string"'

Evidence

List evidence

GET/v1/pacts/evidence

pacts:readpacts_listEvidence

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • sourcequery · "upload" | "email" | "chat" | "api" | "mcp" | "model" | "approval" | "signature" | "workflow" | "audit" | "external"
  • subjectResourceTypequery · string
  • subjectResourceIdquery · string

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.evidenceobject[]
    • data.evidence[].[].idstringrequired
    • data.evidence[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.evidence[].[].scope.organizationIdstringrequired
    • data.evidence[].[].scope.workspaceIdstringrequired
    • data.evidence[].[].scope.projectIdstring | null
    • data.evidence[].[].scope.environmentIdstringrequired
    • data.evidence[].[].uristringrequired
    • data.evidence[].[].artifactIdstring | null
    • data.evidence[].[].sha256stringrequired

      Bare lowercase hex of the content digest, matching the column's shape constraint. The algorithm is always sha-256; the column predates algorithm agility and the constraint pins the width.

    • data.evidence[].[].contentTypestringrequired
    • data.evidence[].[].byteSizeinteger | null (int64)
    • data.evidence[].[].source"upload" | "email" | "chat" | "api" | "mcp" | "model" | "approval" | "signature" | "workflow" | "audit" | "external"required

      Where a piece of evidence came from. The provenance of a reference decides how much of the record a verifier can reconstruct: an upload points at bytes Pacts stored, an external reference is a notarized claim about bytes it never held.

    • data.evidence[].[].redactionState"raw" | "redacted" | "encrypted" | "withheld"required

      Whether the referenced content is in the clear.

    • data.evidence[].[].privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"required

      A privilege assertion. None means none is claimed.

    • data.evidence[].[].subjectResourceTypestring | null

      What this evidence is about, so a bundle can be assembled by subject without a join table per resource type. The pair is complete or absent (pacts_evidence_refs_subject_is_complete).

    • data.evidence[].[].subjectResourceIdstring | null
    • data.evidence[].[].createdByActorIdstring | null

      Nullable in the schema: system-recorded evidence (a model run's output) has no human author.

    • data.evidence[].[].createdAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/evidence" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Record an evidence reference

POST/v1/pacts/evidence

pacts:writeIdempotency-Key requiredpacts_recordEvidence

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Record an evidence reference.

Parameters

  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • uristringrequired
  • artifactIdstring | null
  • sha256stringrequired

    The content digest of what the reference points at. For content Pacts stored, the producing subsystem computes it; for content Pacts never held — an email, an external document — the ref is the notarized claim of what the content hashed to when recorded. Either way it must be a full lowercase sha-256: a reference whose content cannot be verified is a citation, not evidence.

  • contentTypestringrequired
  • byteSizeinteger | null (int64)
  • source"upload" | "email" | "chat" | "api" | "mcp" | "model" | "approval" | "signature" | "workflow" | "audit" | "external"required

    Where a piece of evidence came from. The provenance of a reference decides how much of the record a verifier can reconstruct: an upload points at bytes Pacts stored, an external reference is a notarized claim about bytes it never held.

  • redactionState"raw" | "redacted" | "encrypted" | "withheld" | null
  • privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest" | null
  • subjectResourceTypestring | null
  • subjectResourceIdstring | null

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A reference to a piece of evidence: where the content is, and what it hashed to when it was recorded. A reference whose content cannot be verified is a citation, not evidence — which is why sha256 is required and why the row is append-only: re-pointing a reference would change what an approval or a signature cited.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.uristringrequired
    • data.artifactIdstring | null
    • data.sha256stringrequired

      Bare lowercase hex of the content digest, matching the column's shape constraint. The algorithm is always sha-256; the column predates algorithm agility and the constraint pins the width.

    • data.contentTypestringrequired
    • data.byteSizeinteger | null (int64)
    • data.source"upload" | "email" | "chat" | "api" | "mcp" | "model" | "approval" | "signature" | "workflow" | "audit" | "external"required

      Where a piece of evidence came from. The provenance of a reference decides how much of the record a verifier can reconstruct: an upload points at bytes Pacts stored, an external reference is a notarized claim about bytes it never held.

    • data.redactionState"raw" | "redacted" | "encrypted" | "withheld"required

      Whether the referenced content is in the clear.

    • data.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"required

      A privilege assertion. None means none is claimed.

    • data.subjectResourceTypestring | null

      What this evidence is about, so a bundle can be assembled by subject without a join table per resource type. The pair is complete or absent (pacts_evidence_refs_subject_is_complete).

    • data.subjectResourceIdstring | null
    • data.createdByActorIdstring | null

      Nullable in the schema: system-recorded evidence (a model run's output) has no human author.

    • data.createdAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/evidence" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "uri": "string",
    "sha256": "string",
    "contentType": "string",
    "source": "upload"
  }'

Get evidence

GET/v1/pacts/evidence/{evidence_id}

pacts:readpacts_getEvidence

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • evidence_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A reference to a piece of evidence: where the content is, and what it hashed to when it was recorded. A reference whose content cannot be verified is a citation, not evidence — which is why sha256 is required and why the row is append-only: re-pointing a reference would change what an approval or a signature cited.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.uristringrequired
    • data.artifactIdstring | null
    • data.sha256stringrequired

      Bare lowercase hex of the content digest, matching the column's shape constraint. The algorithm is always sha-256; the column predates algorithm agility and the constraint pins the width.

    • data.contentTypestringrequired
    • data.byteSizeinteger | null (int64)
    • data.source"upload" | "email" | "chat" | "api" | "mcp" | "model" | "approval" | "signature" | "workflow" | "audit" | "external"required

      Where a piece of evidence came from. The provenance of a reference decides how much of the record a verifier can reconstruct: an upload points at bytes Pacts stored, an external reference is a notarized claim about bytes it never held.

    • data.redactionState"raw" | "redacted" | "encrypted" | "withheld"required

      Whether the referenced content is in the clear.

    • data.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"required

      A privilege assertion. None means none is claimed.

    • data.subjectResourceTypestring | null

      What this evidence is about, so a bundle can be assembled by subject without a join table per resource type. The pair is complete or absent (pacts_evidence_refs_subject_is_complete).

    • data.subjectResourceIdstring | null
    • data.createdByActorIdstring | null

      Nullable in the schema: system-recorded evidence (a model run's output) has no human author.

    • data.createdAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/evidence/$EVIDENCE_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Assemble an evidence bundle: the content-addressed, ordered set of refs, signed and (when asked) anchored, written in one transaction

POST/v1/pacts/evidence/bundles

pacts:signIdempotency-Key requiredpacts_createBundle

Scope pacts:sign (exact: pacts:write never implies it). Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Assemble an evidence bundle: the content-addressed, ordered set of refs, signed and (when asked) anchored, written in one transaction.

Parameters

  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • bundleType"signature_certificate" | "audit_export" | "negotiation_history" | "approval_history" | "obligation_history" | "litigation_hold" | "regulatory_export" | "complete_pact_record"required

    What an evidence bundle is for. The type carries a legal consequence, not just a label: the types that get handed to outside parties — certificates, regulatory exports, litigation holds — must be signed at creation (pacts_bundles_external_types_are_signed), and the row is append-only, so an unsigned one could never be repaired after the fact.

  • pactIdstring | null

    The subject. At least one is required — a bundle must be about something.

  • matterIdstring | null
  • evidenceRefIdsstring[]required

    The member refs, in bundle order. Order is part of what the bundle asserts: a negotiation history reads differently rearranged.

  • anchorboolean | null

    Anchor the manifest digest at creation. Absent means the bundle is internally verifiable but not externally anchored — a meaningful absence, never a default to be corrected silently.

  • authorityOrgIdstring | null

    The Auto org this bundle's signature is for (a company One runs). Forwarded to Auto's sign check.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      The self-contained evidence bundle export: the bundle record, its manifest, every referenced evidence ref, and the signature and anchor when present. This is "the bundle's bytes" the offline verifier consumes. It needs no network, no database, and no custody plane — every check is recomputation from what the document carries.

    • data.formatVersioninteger (int32)required
    • data.bundleIdstringrequired
    • data.bundleTypestringrequired
    • data.organizationIdstringrequired
    • data.workspaceIdstringrequired
    • data.projectIdstring | null
    • data.environmentIdstringrequired
    • data.pactIdstring | null
    • data.matterIdstring | null
    • data.manifestRefstringrequired
    • data.manifestSha256stringrequired

      The manifest digest as recorded on the bundle row. The verifier recomputes it from manifest rather than trusting this copy — which is what makes a doctored export detectable.

    • data.evidenceRefCountinteger (int32)required
    • data.createdByActorIdstringrequired
    • data.createdAtstringrequired
    • data.manifestobjectrequired

      The manifest: the complete statement of what a bundle contains. The manifest duplicates the bundle's identifying fields so the manifest digest binds them — a manifest cannot be lifted onto another bundle's row without changing the hash the signature and the anchor point at.

    • data.manifest.formatVersioninteger (int32)required
    • data.manifest.bundleIdstringrequired
    • data.manifest.bundleTypestringrequired
    • data.manifest.organizationIdstringrequired
    • data.manifest.workspaceIdstringrequired
    • data.manifest.projectIdstring | null
    • data.manifest.environmentIdstringrequired
    • data.manifest.pactIdstring | null
    • data.manifest.matterIdstring | null
    • data.manifest.entriesobject[]required

      The refs, in bundle order.

    • data.manifest.entries[].[].ordinalinteger (int32)required

      1-based position. Order is part of what the bundle asserts — a negotiation history reads differently rearranged — so the ordinal is hashed into the entries digest.

    • data.manifest.entries[].[].evidenceRefIdstringrequired
    • data.manifest.entries[].[].sha256stringrequired

      Bare lowercase hex of the ref's content digest, as recorded.

    • data.manifest.entries[].[].uristringrequired
    • data.manifest.entries[].[].contentTypestringrequired
    • data.manifest.entries[].[].byteSizeinteger | null (int64)
    • data.manifest.entriesDigeststringrequired

      The ordered-set digest of entries, computed by [entries_digest_of].

    • data.manifest.createdByActorIdstringrequired
    • data.manifest.createdAtstringrequired

      Canonical text (see [canonical_time_text]): the bundle row's created_at, at storage precision.

    • data.evidenceRefsobject[]required
    • data.evidenceRefs[].[].idstringrequired
    • data.evidenceRefs[].[].uristringrequired
    • data.evidenceRefs[].[].sha256stringrequired
    • data.evidenceRefs[].[].contentTypestringrequired
    • data.evidenceRefs[].[].byteSizeinteger | null (int64)
    • data.evidenceRefs[].[].sourcestringrequired
    • data.evidenceRefs[].[].redactionStatestringrequired
    • data.signatureobject | null
    • data.anchorobject | null
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/evidence/bundles" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "bundleType": "signature_certificate",
    "evidenceRefIds": []
  }'

A bundle with its refs in order and its manifest — the API view

GET/v1/pacts/evidence/bundles/{bundle_id}

pacts:readpacts_getBundle

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

A bundle with its refs in order and its manifest — the API view.

Parameters

  • bundle_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.bundleany
    • data.evidenceRefsobject[]
    • data.evidenceRefs[].[].idstringrequired
    • data.evidenceRefs[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.evidenceRefs[].[].scope.organizationIdstringrequired
    • data.evidenceRefs[].[].scope.workspaceIdstringrequired
    • data.evidenceRefs[].[].scope.projectIdstring | null
    • data.evidenceRefs[].[].scope.environmentIdstringrequired
    • data.evidenceRefs[].[].uristringrequired
    • data.evidenceRefs[].[].artifactIdstring | null
    • data.evidenceRefs[].[].sha256stringrequired

      Bare lowercase hex of the content digest, matching the column's shape constraint. The algorithm is always sha-256; the column predates algorithm agility and the constraint pins the width.

    • data.evidenceRefs[].[].contentTypestringrequired
    • data.evidenceRefs[].[].byteSizeinteger | null (int64)
    • data.evidenceRefs[].[].source"upload" | "email" | "chat" | "api" | "mcp" | "model" | "approval" | "signature" | "workflow" | "audit" | "external"required

      Where a piece of evidence came from. The provenance of a reference decides how much of the record a verifier can reconstruct: an upload points at bytes Pacts stored, an external reference is a notarized claim about bytes it never held.

    • data.evidenceRefs[].[].redactionState"raw" | "redacted" | "encrypted" | "withheld"required

      Whether the referenced content is in the clear.

    • data.evidenceRefs[].[].privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"required

      A privilege assertion. None means none is claimed.

    • data.evidenceRefs[].[].subjectResourceTypestring | null

      What this evidence is about, so a bundle can be assembled by subject without a join table per resource type. The pair is complete or absent (pacts_evidence_refs_subject_is_complete).

    • data.evidenceRefs[].[].subjectResourceIdstring | null
    • data.evidenceRefs[].[].createdByActorIdstring | null

      Nullable in the schema: system-recorded evidence (a model run's output) has no human author.

    • data.evidenceRefs[].[].createdAtstring (date-time)required
    • data.manifestany
    • data.anchorany
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/evidence/bundles/$BUNDLE_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Download the self-contained export: the bundle record, its manifest, every referenced evidence ref, and the signature and anchor when presen

GET/v1/pacts/evidence/bundles/{bundle_id}/download

pacts:readpacts_downloadBundle

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Download the self-contained export: the bundle record, its manifest, every referenced evidence ref, and the signature and anchor when present.

Parameters

  • bundle_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.bundleany
    • data.offlineVerificationPassedboolean
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/evidence/bundles/$BUNDLE_ID/download" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Seal a bundle: anchor its manifest digest

POST/v1/pacts/evidence/bundles/{bundle_id}/seal

pacts:writeIdempotency-Key requiredpacts_sealBundle

Scope pacts:sign at Pacts (exact: pacts:write never implies it); the gateway also requires pacts:write on this route. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Seal a bundle: anchor its manifest digest.

Parameters

  • bundle_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

A JSON object; see the description above.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.bundleIdstring
    • data.anchoredboolean
    • data.receiptIdstring
    • data.anchoredAtany
    • data.providerany
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/evidence/bundles/$BUNDLE_ID/seal" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '"string"'

Verify a bundle: rebuild the export from the immutable records and run the same offline verification the CLI runs against the exported bytes

POST/v1/pacts/evidence/bundles/{bundle_id}/verify

pacts:writeIdempotency-Key requiredpacts_verifyBundle

Scope pacts:read. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Verify a bundle: rebuild the export from the immutable records and run the same offline verification the CLI runs against the exported bytes.

Parameters

  • bundle_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

A JSON object; see the description above.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.bundleIdstring
    • data.manifestSha256any
    • data.verifiedboolean
    • data.failureany
    • data.checksany
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/evidence/bundles/$BUNDLE_ID/verify" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '"string"'

Evidence about a matter

GET/v1/pacts/matters/{matter_id}/evidence

pacts:readpacts_listMatterEvidence

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Evidence about a matter.

Parameters

  • matter_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.evidenceobject[]
    • data.evidence[].[].idstringrequired
    • data.evidence[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.evidence[].[].scope.organizationIdstringrequired
    • data.evidence[].[].scope.workspaceIdstringrequired
    • data.evidence[].[].scope.projectIdstring | null
    • data.evidence[].[].scope.environmentIdstringrequired
    • data.evidence[].[].uristringrequired
    • data.evidence[].[].artifactIdstring | null
    • data.evidence[].[].sha256stringrequired

      Bare lowercase hex of the content digest, matching the column's shape constraint. The algorithm is always sha-256; the column predates algorithm agility and the constraint pins the width.

    • data.evidence[].[].contentTypestringrequired
    • data.evidence[].[].byteSizeinteger | null (int64)
    • data.evidence[].[].source"upload" | "email" | "chat" | "api" | "mcp" | "model" | "approval" | "signature" | "workflow" | "audit" | "external"required

      Where a piece of evidence came from. The provenance of a reference decides how much of the record a verifier can reconstruct: an upload points at bytes Pacts stored, an external reference is a notarized claim about bytes it never held.

    • data.evidence[].[].redactionState"raw" | "redacted" | "encrypted" | "withheld"required

      Whether the referenced content is in the clear.

    • data.evidence[].[].privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"required

      A privilege assertion. None means none is claimed.

    • data.evidence[].[].subjectResourceTypestring | null

      What this evidence is about, so a bundle can be assembled by subject without a join table per resource type. The pair is complete or absent (pacts_evidence_refs_subject_is_complete).

    • data.evidence[].[].subjectResourceIdstring | null
    • data.evidence[].[].createdByActorIdstring | null

      Nullable in the schema: system-recorded evidence (a model run's output) has no human author.

    • data.evidence[].[].createdAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/matters/$MATTER_ID/evidence" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Evidence about a pact: the subject-scoped listing a bundle is assembled from

GET/v1/pacts/pacts/{pact_id}/evidence

pacts:readpacts_listPactEvidence

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Evidence about a pact: the subject-scoped listing a bundle is assembled from.

Parameters

  • pact_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.evidenceobject[]
    • data.evidence[].[].idstringrequired
    • data.evidence[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.evidence[].[].scope.organizationIdstringrequired
    • data.evidence[].[].scope.workspaceIdstringrequired
    • data.evidence[].[].scope.projectIdstring | null
    • data.evidence[].[].scope.environmentIdstringrequired
    • data.evidence[].[].uristringrequired
    • data.evidence[].[].artifactIdstring | null
    • data.evidence[].[].sha256stringrequired

      Bare lowercase hex of the content digest, matching the column's shape constraint. The algorithm is always sha-256; the column predates algorithm agility and the constraint pins the width.

    • data.evidence[].[].contentTypestringrequired
    • data.evidence[].[].byteSizeinteger | null (int64)
    • data.evidence[].[].source"upload" | "email" | "chat" | "api" | "mcp" | "model" | "approval" | "signature" | "workflow" | "audit" | "external"required

      Where a piece of evidence came from. The provenance of a reference decides how much of the record a verifier can reconstruct: an upload points at bytes Pacts stored, an external reference is a notarized claim about bytes it never held.

    • data.evidence[].[].redactionState"raw" | "redacted" | "encrypted" | "withheld"required

      Whether the referenced content is in the clear.

    • data.evidence[].[].privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"required

      A privilege assertion. None means none is claimed.

    • data.evidence[].[].subjectResourceTypestring | null

      What this evidence is about, so a bundle can be assembled by subject without a join table per resource type. The pair is complete or absent (pacts_evidence_refs_subject_is_complete).

    • data.evidence[].[].subjectResourceIdstring | null
    • data.evidence[].[].createdByActorIdstring | null

      Nullable in the schema: system-recorded evidence (a model run's output) has no human author.

    • data.evidence[].[].createdAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/evidence" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

List holds

GET/v1/pacts/legal-holds

pacts:readpacts_listHolds

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • statusquery · "active" | "released" | "expired"
  • targetTypequery · "matter" | "pact" | "party" | "tenant"
  • targetIdquery · string

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.holdsobject[]
    • data.holds[].[].idstringrequired
    • data.holds[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.holds[].[].scope.organizationIdstringrequired
    • data.holds[].[].scope.workspaceIdstringrequired
    • data.holds[].[].scope.projectIdstring | null
    • data.holds[].[].scope.environmentIdstringrequired
    • data.holds[].[].namestringrequired
    • data.holds[].[].targetType"matter" | "pact" | "party" | "tenant"required

      What a legal hold preserves. A Tenant hold names no target id: the scope columns are the target, and it covers every record in the scope.

    • data.holds[].[].targetIdstring | null

      None only for a tenant-wide hold, where the scope columns are the target. The schema enforces the pairing (pacts_holds_target_is_complete).

    • data.holds[].[].status"active" | "released" | "expired"required

      The state of a legal hold. Expired is reachable by a sweep, not by the API: a hold whose expires_at has passed still preserves until its status moves, because protection lifting silently on a clock is how a record that should have been kept gets destroyed on a technicality.

    • data.holds[].[].basisstringrequired

      The legal basis: the matter number, the preservation letter, the regulator.

    • data.holds[].[].issuedByActorIdstringrequired

      Who placed the hold. Always the authenticated caller — never supplied, like an approver, so the record of who acted cannot be claimed.

    • data.holds[].[].counselActorIdstringrequired

      The counsel responsible for the instruction. Identifiable and required: a hold is a legal instruction, and releasing one wrongly is spoliation.

    • data.holds[].[].issuedAtstring (date-time)required
    • data.holds[].[].expiresAtstring | null (date-time)

      Advisory expiry. A passed expiry does not lift protection — only a status change does — so a hold never silently stops preserving.

    • data.holds[].[].releasedAtstring | null (date-time)
    • data.holds[].[].releasedByActorIdstring | null
    • data.holds[].[].releaseReasonstring | null
    • data.holds[].[].createdAtstring (date-time)required
    • data.holds[].[].updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/legal-holds" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Place a legal hold

POST/v1/pacts/legal-holds

Idempotency-Key requiredPerson onlypacts_createHold

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Place a legal hold.

Parameters

  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • namestringrequired
  • targetType"matter" | "pact" | "party" | "tenant"required

    What a legal hold preserves. A Tenant hold names no target id: the scope columns are the target, and it covers every record in the scope.

  • targetIdstring | null

    Required for a matter, pact, or party hold; must be absent for a tenant-wide hold, where the scope itself is the target.

  • basisstringrequired

    The legal basis: the matter number, the preservation letter, the regulator.

  • counselActorIdstringrequired

    The counsel responsible for the instruction. Required and identifiable: releasing a hold wrongly is spoliation, so counsel is never anonymous.

  • expiresAtstring | null (date-time)

    Advisory expiry. A passed expiry does not lift protection — only a release (or a sweep's expiry transition) does.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A legal hold: preserve this, even though a retention policy says delete it, even though a user asked to delete it, even though the tenant is offboarding. The hold is the one control that has to win against everything else, so the schema attaches pacts_assert_no_active_hold_on_delete to the tables whose disappearance would take documents, approvals, and signatures out of reach: a soft delete of a held matter or pact is refused while any hold covering it — including a tenant-wide one — is active. Release is accountable. pacts_holds_release_is_accountable requires a released row to name who released it and why, in the same write: releasing a hold wrongly is spoliation, so an unattributed release is not a release the schema will store.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.namestringrequired
    • data.targetType"matter" | "pact" | "party" | "tenant"required

      What a legal hold preserves. A Tenant hold names no target id: the scope columns are the target, and it covers every record in the scope.

    • data.targetIdstring | null

      None only for a tenant-wide hold, where the scope columns are the target. The schema enforces the pairing (pacts_holds_target_is_complete).

    • data.status"active" | "released" | "expired"required

      The state of a legal hold. Expired is reachable by a sweep, not by the API: a hold whose expires_at has passed still preserves until its status moves, because protection lifting silently on a clock is how a record that should have been kept gets destroyed on a technicality.

    • data.basisstringrequired

      The legal basis: the matter number, the preservation letter, the regulator.

    • data.issuedByActorIdstringrequired

      Who placed the hold. Always the authenticated caller — never supplied, like an approver, so the record of who acted cannot be claimed.

    • data.counselActorIdstringrequired

      The counsel responsible for the instruction. Identifiable and required: a hold is a legal instruction, and releasing one wrongly is spoliation.

    • data.issuedAtstring (date-time)required
    • data.expiresAtstring | null (date-time)

      Advisory expiry. A passed expiry does not lift protection — only a status change does — so a hold never silently stops preserving.

    • data.releasedAtstring | null (date-time)
    • data.releasedByActorIdstring | null
    • data.releaseReasonstring | null
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/legal-holds" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "targetType": "matter",
    "basis": "string",
    "counselActorId": "string"
  }'

Get hold

GET/v1/pacts/legal-holds/{hold_id}

pacts:readpacts_getHold

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • hold_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A legal hold: preserve this, even though a retention policy says delete it, even though a user asked to delete it, even though the tenant is offboarding. The hold is the one control that has to win against everything else, so the schema attaches pacts_assert_no_active_hold_on_delete to the tables whose disappearance would take documents, approvals, and signatures out of reach: a soft delete of a held matter or pact is refused while any hold covering it — including a tenant-wide one — is active. Release is accountable. pacts_holds_release_is_accountable requires a released row to name who released it and why, in the same write: releasing a hold wrongly is spoliation, so an unattributed release is not a release the schema will store.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.namestringrequired
    • data.targetType"matter" | "pact" | "party" | "tenant"required

      What a legal hold preserves. A Tenant hold names no target id: the scope columns are the target, and it covers every record in the scope.

    • data.targetIdstring | null

      None only for a tenant-wide hold, where the scope columns are the target. The schema enforces the pairing (pacts_holds_target_is_complete).

    • data.status"active" | "released" | "expired"required

      The state of a legal hold. Expired is reachable by a sweep, not by the API: a hold whose expires_at has passed still preserves until its status moves, because protection lifting silently on a clock is how a record that should have been kept gets destroyed on a technicality.

    • data.basisstringrequired

      The legal basis: the matter number, the preservation letter, the regulator.

    • data.issuedByActorIdstringrequired

      Who placed the hold. Always the authenticated caller — never supplied, like an approver, so the record of who acted cannot be claimed.

    • data.counselActorIdstringrequired

      The counsel responsible for the instruction. Identifiable and required: a hold is a legal instruction, and releasing one wrongly is spoliation.

    • data.issuedAtstring (date-time)required
    • data.expiresAtstring | null (date-time)

      Advisory expiry. A passed expiry does not lift protection — only a status change does — so a hold never silently stops preserving.

    • data.releasedAtstring | null (date-time)
    • data.releasedByActorIdstring | null
    • data.releaseReasonstring | null
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/legal-holds/$HOLD_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Amend an active hold: its name, basis, counsel, or advisory expiry

PATCH/v1/pacts/legal-holds/{hold_id}

Idempotency-Key requiredPerson onlypacts_updateHold

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Amend an active hold: its name, basis, counsel, or advisory expiry.

Parameters

  • hold_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • namestring | null
  • basisstring | null
  • counselActorIdstring | null
  • expiresAtstring | null (date-time)

    null clears the expiry — a hold with no expiry is common ("until further order"). The target is not patchable: what a hold preserves is the fact a deletion path consults, so retargeting is a new hold.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A legal hold: preserve this, even though a retention policy says delete it, even though a user asked to delete it, even though the tenant is offboarding. The hold is the one control that has to win against everything else, so the schema attaches pacts_assert_no_active_hold_on_delete to the tables whose disappearance would take documents, approvals, and signatures out of reach: a soft delete of a held matter or pact is refused while any hold covering it — including a tenant-wide one — is active. Release is accountable. pacts_holds_release_is_accountable requires a released row to name who released it and why, in the same write: releasing a hold wrongly is spoliation, so an unattributed release is not a release the schema will store.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.namestringrequired
    • data.targetType"matter" | "pact" | "party" | "tenant"required

      What a legal hold preserves. A Tenant hold names no target id: the scope columns are the target, and it covers every record in the scope.

    • data.targetIdstring | null

      None only for a tenant-wide hold, where the scope columns are the target. The schema enforces the pairing (pacts_holds_target_is_complete).

    • data.status"active" | "released" | "expired"required

      The state of a legal hold. Expired is reachable by a sweep, not by the API: a hold whose expires_at has passed still preserves until its status moves, because protection lifting silently on a clock is how a record that should have been kept gets destroyed on a technicality.

    • data.basisstringrequired

      The legal basis: the matter number, the preservation letter, the regulator.

    • data.issuedByActorIdstringrequired

      Who placed the hold. Always the authenticated caller — never supplied, like an approver, so the record of who acted cannot be claimed.

    • data.counselActorIdstringrequired

      The counsel responsible for the instruction. Identifiable and required: a hold is a legal instruction, and releasing one wrongly is spoliation.

    • data.issuedAtstring (date-time)required
    • data.expiresAtstring | null (date-time)

      Advisory expiry. A passed expiry does not lift protection — only a status change does — so a hold never silently stops preserving.

    • data.releasedAtstring | null (date-time)
    • data.releasedByActorIdstring | null
    • data.releaseReasonstring | null
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/pacts/legal-holds/$HOLD_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Release

Release a hold, with the reason the release will answer for

POST/v1/pacts/legal-holds/{hold_id}/release

Idempotency-Key requiredPerson onlypacts_releaseHold

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Release a hold, with the reason the release will answer for.

Parameters

  • hold_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • reasonstringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A legal hold: preserve this, even though a retention policy says delete it, even though a user asked to delete it, even though the tenant is offboarding. The hold is the one control that has to win against everything else, so the schema attaches pacts_assert_no_active_hold_on_delete to the tables whose disappearance would take documents, approvals, and signatures out of reach: a soft delete of a held matter or pact is refused while any hold covering it — including a tenant-wide one — is active. Release is accountable. pacts_holds_release_is_accountable requires a released row to name who released it and why, in the same write: releasing a hold wrongly is spoliation, so an unattributed release is not a release the schema will store.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.namestringrequired
    • data.targetType"matter" | "pact" | "party" | "tenant"required

      What a legal hold preserves. A Tenant hold names no target id: the scope columns are the target, and it covers every record in the scope.

    • data.targetIdstring | null

      None only for a tenant-wide hold, where the scope columns are the target. The schema enforces the pairing (pacts_holds_target_is_complete).

    • data.status"active" | "released" | "expired"required

      The state of a legal hold. Expired is reachable by a sweep, not by the API: a hold whose expires_at has passed still preserves until its status moves, because protection lifting silently on a clock is how a record that should have been kept gets destroyed on a technicality.

    • data.basisstringrequired

      The legal basis: the matter number, the preservation letter, the regulator.

    • data.issuedByActorIdstringrequired

      Who placed the hold. Always the authenticated caller — never supplied, like an approver, so the record of who acted cannot be claimed.

    • data.counselActorIdstringrequired

      The counsel responsible for the instruction. Identifiable and required: a hold is a legal instruction, and releasing one wrongly is spoliation.

    • data.issuedAtstring (date-time)required
    • data.expiresAtstring | null (date-time)

      Advisory expiry. A passed expiry does not lift protection — only a status change does — so a hold never silently stops preserving.

    • data.releasedAtstring | null (date-time)
    • data.releasedByActorIdstring | null
    • data.releaseReasonstring | null
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/legal-holds/$HOLD_ID/release" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "string"
  }'

Matters

List matters

GET/v1/pacts/matters

pacts:readpacts_listMatters

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.mattersobject[]
    • data.matters[].[].idstringrequired
    • data.matters[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.matters[].[].scope.organizationIdstringrequired
    • data.matters[].[].scope.workspaceIdstringrequired
    • data.matters[].[].scope.projectIdstring | null
    • data.matters[].[].scope.environmentIdstringrequired
    • data.matters[].[].namestringrequired
    • data.matters[].[].matterType"commercial_contract" | "vendor_procurement" | "customer_sales" | "employment" | "fundraising" | "ip" | "privacy" | "security" | "litigation" | "compliance" | "corporate" | "real_estate" | "other"required

      What kind of legal matter this is.

    • data.matters[].[].status"open" | "paused" | "closed" | "archived"required

      Where a matter sits in its working life.

    • data.matters[].[].ownerActorIdstringrequired
    • data.matters[].[].legalOwnerActorIdstring | null
    • data.matters[].[].labelsstring[]required
    • data.matters[].[].privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"required

      A privilege assertion. None means none is claimed.

    • data.matters[].[].retentionPolicyIdstring | null
    • data.matters[].[].createdByActorIdstringrequired
    • data.matters[].[].createdAtstring (date-time)required
    • data.matters[].[].updatedAtstring (date-time)required
    • data.matters[].[].closedAtstring | null (date-time)
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/matters" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create a matter

POST/v1/pacts/matters

pacts:writeIdempotency-Key requiredpacts_createMatter

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • namestringrequired
  • matterType"commercial_contract" | "vendor_procurement" | "customer_sales" | "employment" | "fundraising" | "ip" | "privacy" | "security" | "litigation" | "compliance" | "corporate" | "real_estate" | "other"required

    What kind of legal matter this is.

  • ownerActorIdstring | null
  • legalOwnerActorIdstring | null
  • labelsstring[]
  • privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest" | null
  • retentionPolicyIdstring | null

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A matter: the legal workspace pacts belong to.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.namestringrequired
    • data.matterType"commercial_contract" | "vendor_procurement" | "customer_sales" | "employment" | "fundraising" | "ip" | "privacy" | "security" | "litigation" | "compliance" | "corporate" | "real_estate" | "other"required

      What kind of legal matter this is.

    • data.status"open" | "paused" | "closed" | "archived"required

      Where a matter sits in its working life.

    • data.ownerActorIdstringrequired
    • data.legalOwnerActorIdstring | null
    • data.labelsstring[]required
    • data.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"required

      A privilege assertion. None means none is claimed.

    • data.retentionPolicyIdstring | null
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • data.closedAtstring | null (date-time)
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/matters" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "matterType": "commercial_contract"
  }'

Get matter

GET/v1/pacts/matters/{matter_id}

pacts:readpacts_getMatter

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • matter_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A matter: the legal workspace pacts belong to.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.namestringrequired
    • data.matterType"commercial_contract" | "vendor_procurement" | "customer_sales" | "employment" | "fundraising" | "ip" | "privacy" | "security" | "litigation" | "compliance" | "corporate" | "real_estate" | "other"required

      What kind of legal matter this is.

    • data.status"open" | "paused" | "closed" | "archived"required

      Where a matter sits in its working life.

    • data.ownerActorIdstringrequired
    • data.legalOwnerActorIdstring | null
    • data.labelsstring[]required
    • data.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"required

      A privilege assertion. None means none is claimed.

    • data.retentionPolicyIdstring | null
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • data.closedAtstring | null (date-time)
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/matters/$MATTER_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Update matter

PATCH/v1/pacts/matters/{matter_id}

pacts:writeIdempotency-Key requiredpacts_updateMatter

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • matter_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • namestring | null
  • ownerActorIdstring | null
  • legalOwnerActorIdstring | null

    Three-state: absent leaves alone, null clears, value sets.

  • labelsarray | null
  • privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest" | null

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A matter: the legal workspace pacts belong to.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.namestringrequired
    • data.matterType"commercial_contract" | "vendor_procurement" | "customer_sales" | "employment" | "fundraising" | "ip" | "privacy" | "security" | "litigation" | "compliance" | "corporate" | "real_estate" | "other"required

      What kind of legal matter this is.

    • data.status"open" | "paused" | "closed" | "archived"required

      Where a matter sits in its working life.

    • data.ownerActorIdstringrequired
    • data.legalOwnerActorIdstring | null
    • data.labelsstring[]required
    • data.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"required

      A privilege assertion. None means none is claimed.

    • data.retentionPolicyIdstring | null
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • data.closedAtstring | null (date-time)
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/pacts/matters/$MATTER_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Archive

Archive matter

POST/v1/pacts/matters/{matter_id}/archive

pacts:writeIdempotency-Key requiredpacts_archiveMatter

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • matter_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A matter: the legal workspace pacts belong to.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.namestringrequired
    • data.matterType"commercial_contract" | "vendor_procurement" | "customer_sales" | "employment" | "fundraising" | "ip" | "privacy" | "security" | "litigation" | "compliance" | "corporate" | "real_estate" | "other"required

      What kind of legal matter this is.

    • data.status"open" | "paused" | "closed" | "archived"required

      Where a matter sits in its working life.

    • data.ownerActorIdstringrequired
    • data.legalOwnerActorIdstring | null
    • data.labelsstring[]required
    • data.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"required

      A privilege assertion. None means none is claimed.

    • data.retentionPolicyIdstring | null
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • data.closedAtstring | null (date-time)
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/matters/$MATTER_ID/archive" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY"

Archive a pact

POST/v1/pacts/pacts/{pact_id}/archive

pacts:writeIdempotency-Key requiredpacts_archivePact

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • pact_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A pact: the canonical agreement container.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.matterIdstring | null
    • data.namestringrequired
    • data.agreementType"msa" | "order_form" | "sow" | "nda" | "dpa" | "baa" | "sla" | "terms_of_service" | "privacy_policy" | "employment_agreement" | "contractor_agreement" | "ip_assignment" | "licensing_agreement" | "reseller_agreement" | "partnership_agreement" | "investment_document" | "board_consent" | "procurement_terms" | "agent_delegation_policy" | "agent_service_agreement" | "settlement" | "amendment" | "termination_notice" | "other"required

      The agreement's legal form.

    • data.lifecycleStatus"intake" | "drafting" | "internal_review" | "counterparty_review" | "negotiation" | "approval_pending" | "signature_pending" | "partially_signed" | "executed" | "active" | "amendment_pending" | "renewal_pending" | "termination_pending" | "terminated" | "expired" | "voided" | "archived"required

      The pact's position in the signing lifecycle. Ordered in the comment because the transitions below read against it.

    • data.legalEffectMode"test" | "draft_only" | "production_candidate" | "production"required

      How much legal weight a pact's signatures may carry.

    • data.governingLawstring | null
    • data.venuestring | null
    • data.primaryLanguagestringrequired
    • data.valueobject | null
    • data.startDatestring | null (date)
    • data.effectiveDatestring | null (date)
    • data.expirationDatestring | null (date)
    • data.renewalany
    • data.riskSummaryany
    • data.aiSummarystring | null
    • data.createdByActorIdstringrequired
    • data.responsibleAttorneyActorIdstring | null
    • data.businessOwnerActorIdstring | null
    • data.confidentialityClass"public" | "internal" | "confidential" | "highly_confidential" | "restricted"required

      How sensitive the record is.

    • data.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"required

      A privilege assertion. None means none is claimed.

    • data.currentDocumentVersionIdstring | null
    • data.signaturePackageIdstring | null
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/archive" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY"

Audit

Get matter audit

GET/v1/pacts/matters/{matter_id}/audit

pacts:readpacts_getMatterAudit

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • matter_idpath · stringrequired
  • limitquery · integer (int64)

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.matterIdstring
    • data.eventsany
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/matters/$MATTER_ID/audit" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Get pact audit

GET/v1/pacts/pacts/{pact_id}/audit

pacts:readpacts_getPactAudit

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • pact_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.pactIdstring
    • data.eventsany
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/audit" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Close

Close matter

POST/v1/pacts/matters/{matter_id}/close

pacts:writeIdempotency-Key requiredpacts_closeMatter

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • matter_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A matter: the legal workspace pacts belong to.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.namestringrequired
    • data.matterType"commercial_contract" | "vendor_procurement" | "customer_sales" | "employment" | "fundraising" | "ip" | "privacy" | "security" | "litigation" | "compliance" | "corporate" | "real_estate" | "other"required

      What kind of legal matter this is.

    • data.status"open" | "paused" | "closed" | "archived"required

      Where a matter sits in its working life.

    • data.ownerActorIdstringrequired
    • data.legalOwnerActorIdstring | null
    • data.labelsstring[]required
    • data.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"required

      A privilege assertion. None means none is claimed.

    • data.retentionPolicyIdstring | null
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • data.closedAtstring | null (date-time)
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/matters/$MATTER_ID/close" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY"

Obligations

List obligations

GET/v1/pacts/obligations

pacts:readpacts_listObligations

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.obligationsobject[]
    • data.obligations[].[].idstringrequired
    • data.obligations[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.obligations[].[].scope.organizationIdstringrequired
    • data.obligations[].[].scope.workspaceIdstringrequired
    • data.obligations[].[].scope.projectIdstring | null
    • data.obligations[].[].scope.environmentIdstringrequired
    • data.obligations[].[].pactIdstringrequired
    • data.obligations[].[].sourceVersionIdstringrequired
    • data.obligations[].[].sourceClauseRefanyrequired
    • data.obligations[].[].obligationType"payment" | "renewal_notice" | "termination_notice" | "sla" | "support" | "security_control" | "privacy_request" | "subprocessor_notice" | "audit_right" | "reporting" | "insurance" | "confidentiality" | "data_deletion" | "data_return" | "tax" | "compliance_certification" | "warranty" | "delivery" | "milestone" | "other"required

      The kind of duty an obligation is.

    • data.obligations[].[].owedByPartyIdstringrequired
    • data.obligations[].[].owedToPartyIdstringrequired
    • data.obligations[].[].responsibleActorIdstring | null
    • data.obligations[].[].descriptionstringrequired
    • data.obligations[].[].trigger"effective_date" | "signature_date" | "calendar_date" | "renewal_window" | "notice_received" | "incident" | "invoice" | "milestone" | "manual"required

      What fires an obligation into action.

    • data.obligations[].[].dueAtstring | null (date-time)
    • data.obligations[].[].recurrenceany
    • data.obligations[].[].status"draft" | "active" | "due_soon" | "overdue" | "fulfilled" | "waived" | "breached" | "disputed" | "terminated"required

      The state of an obligation.

    • data.obligations[].[].confidencenumberrequired
    • data.obligations[].[].extractedByModelstring | null
    • data.obligations[].[].confirmedByActorIdstring | null
    • data.obligations[].[].confirmedAtstring | null (date-time)
    • data.obligations[].[].workflowRunIdstring | null
    • data.obligations[].[].lastCheckedAtstring | null (date-time)
    • data.obligations[].[].createdByActorIdstringrequired
    • data.obligations[].[].createdAtstring (date-time)required
    • data.obligations[].[].updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/obligations" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Get obligation

GET/v1/pacts/obligations/{obligation_id}

pacts:readpacts_getObligation

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • obligation_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.obligationobject

      An obligation: a duty an agreement imposes after signature. Extraction is a model output, so confidence is stored and an extracted obligation stays in draft until a human confirms it — an unreviewed model extraction never becomes an operational fact. Status changes are events, not overwrites: "this was waived by X for reason Y" is the record a dispute turns on, and it outlives the next status change.

    • data.obligation.idstringrequired
    • data.obligation.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.obligation.scope.organizationIdstringrequired
    • data.obligation.scope.workspaceIdstringrequired
    • data.obligation.scope.projectIdstring | null
    • data.obligation.scope.environmentIdstringrequired
    • data.obligation.pactIdstringrequired
    • data.obligation.sourceVersionIdstringrequired
    • data.obligation.sourceClauseRefanyrequired
    • data.obligation.obligationType"payment" | "renewal_notice" | "termination_notice" | "sla" | "support" | "security_control" | "privacy_request" | "subprocessor_notice" | "audit_right" | "reporting" | "insurance" | "confidentiality" | "data_deletion" | "data_return" | "tax" | "compliance_certification" | "warranty" | "delivery" | "milestone" | "other"required

      The kind of duty an obligation is.

    • data.obligation.owedByPartyIdstringrequired
    • data.obligation.owedToPartyIdstringrequired
    • data.obligation.responsibleActorIdstring | null
    • data.obligation.descriptionstringrequired
    • data.obligation.trigger"effective_date" | "signature_date" | "calendar_date" | "renewal_window" | "notice_received" | "incident" | "invoice" | "milestone" | "manual"required

      What fires an obligation into action.

    • data.obligation.dueAtstring | null (date-time)
    • data.obligation.recurrenceany
    • data.obligation.status"draft" | "active" | "due_soon" | "overdue" | "fulfilled" | "waived" | "breached" | "disputed" | "terminated"required

      The state of an obligation.

    • data.obligation.confidencenumberrequired
    • data.obligation.extractedByModelstring | null
    • data.obligation.confirmedByActorIdstring | null
    • data.obligation.confirmedAtstring | null (date-time)
    • data.obligation.workflowRunIdstring | null
    • data.obligation.lastCheckedAtstring | null (date-time)
    • data.obligation.createdByActorIdstringrequired
    • data.obligation.createdAtstring (date-time)required
    • data.obligation.updatedAtstring (date-time)required
    • data.eventsany
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/obligations/$OBLIGATION_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Update obligation

PATCH/v1/pacts/obligations/{obligation_id}

pacts:writeIdempotency-Key requiredpacts_updateObligation

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • obligation_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • descriptionstring | null
  • responsibleActorIdstring | null
  • dueAtstring | null (date-time)
  • recurrenceany

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      An obligation: a duty an agreement imposes after signature. Extraction is a model output, so confidence is stored and an extracted obligation stays in draft until a human confirms it — an unreviewed model extraction never becomes an operational fact. Status changes are events, not overwrites: "this was waived by X for reason Y" is the record a dispute turns on, and it outlives the next status change.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.pactIdstringrequired
    • data.sourceVersionIdstringrequired
    • data.sourceClauseRefanyrequired
    • data.obligationType"payment" | "renewal_notice" | "termination_notice" | "sla" | "support" | "security_control" | "privacy_request" | "subprocessor_notice" | "audit_right" | "reporting" | "insurance" | "confidentiality" | "data_deletion" | "data_return" | "tax" | "compliance_certification" | "warranty" | "delivery" | "milestone" | "other"required

      The kind of duty an obligation is.

    • data.owedByPartyIdstringrequired
    • data.owedToPartyIdstringrequired
    • data.responsibleActorIdstring | null
    • data.descriptionstringrequired
    • data.trigger"effective_date" | "signature_date" | "calendar_date" | "renewal_window" | "notice_received" | "incident" | "invoice" | "milestone" | "manual"required

      What fires an obligation into action.

    • data.dueAtstring | null (date-time)
    • data.recurrenceany
    • data.status"draft" | "active" | "due_soon" | "overdue" | "fulfilled" | "waived" | "breached" | "disputed" | "terminated"required

      The state of an obligation.

    • data.confidencenumberrequired
    • data.extractedByModelstring | null
    • data.confirmedByActorIdstring | null
    • data.confirmedAtstring | null (date-time)
    • data.workflowRunIdstring | null
    • data.lastCheckedAtstring | null (date-time)
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/pacts/obligations/$OBLIGATION_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Obligations falling due within the calendar horizon

GET/v1/pacts/obligations/calendar

pacts:readpacts_getObligationCalendar

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.fromstring
    • data.tostring
    • data.obligationsobject[]
    • data.obligations[].[].idstringrequired
    • data.obligations[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.obligations[].[].scope.organizationIdstringrequired
    • data.obligations[].[].scope.workspaceIdstringrequired
    • data.obligations[].[].scope.projectIdstring | null
    • data.obligations[].[].scope.environmentIdstringrequired
    • data.obligations[].[].pactIdstringrequired
    • data.obligations[].[].sourceVersionIdstringrequired
    • data.obligations[].[].sourceClauseRefanyrequired
    • data.obligations[].[].obligationType"payment" | "renewal_notice" | "termination_notice" | "sla" | "support" | "security_control" | "privacy_request" | "subprocessor_notice" | "audit_right" | "reporting" | "insurance" | "confidentiality" | "data_deletion" | "data_return" | "tax" | "compliance_certification" | "warranty" | "delivery" | "milestone" | "other"required

      The kind of duty an obligation is.

    • data.obligations[].[].owedByPartyIdstringrequired
    • data.obligations[].[].owedToPartyIdstringrequired
    • data.obligations[].[].responsibleActorIdstring | null
    • data.obligations[].[].descriptionstringrequired
    • data.obligations[].[].trigger"effective_date" | "signature_date" | "calendar_date" | "renewal_window" | "notice_received" | "incident" | "invoice" | "milestone" | "manual"required

      What fires an obligation into action.

    • data.obligations[].[].dueAtstring | null (date-time)
    • data.obligations[].[].recurrenceany
    • data.obligations[].[].status"draft" | "active" | "due_soon" | "overdue" | "fulfilled" | "waived" | "breached" | "disputed" | "terminated"required

      The state of an obligation.

    • data.obligations[].[].confidencenumberrequired
    • data.obligations[].[].extractedByModelstring | null
    • data.obligations[].[].confirmedByActorIdstring | null
    • data.obligations[].[].confirmedAtstring | null (date-time)
    • data.obligations[].[].workflowRunIdstring | null
    • data.obligations[].[].lastCheckedAtstring | null (date-time)
    • data.obligations[].[].createdByActorIdstringrequired
    • data.obligations[].[].createdAtstring (date-time)required
    • data.obligations[].[].updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/obligations/calendar" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Obligations at risk

GET/v1/pacts/obligations/risk

pacts:readpacts_listObligationsAtRisk

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.atRiskobject[]
    • data.atRisk[].[].idstringrequired
    • data.atRisk[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.atRisk[].[].scope.organizationIdstringrequired
    • data.atRisk[].[].scope.workspaceIdstringrequired
    • data.atRisk[].[].scope.projectIdstring | null
    • data.atRisk[].[].scope.environmentIdstringrequired
    • data.atRisk[].[].pactIdstringrequired
    • data.atRisk[].[].sourceVersionIdstringrequired
    • data.atRisk[].[].sourceClauseRefanyrequired
    • data.atRisk[].[].obligationType"payment" | "renewal_notice" | "termination_notice" | "sla" | "support" | "security_control" | "privacy_request" | "subprocessor_notice" | "audit_right" | "reporting" | "insurance" | "confidentiality" | "data_deletion" | "data_return" | "tax" | "compliance_certification" | "warranty" | "delivery" | "milestone" | "other"required

      The kind of duty an obligation is.

    • data.atRisk[].[].owedByPartyIdstringrequired
    • data.atRisk[].[].owedToPartyIdstringrequired
    • data.atRisk[].[].responsibleActorIdstring | null
    • data.atRisk[].[].descriptionstringrequired
    • data.atRisk[].[].trigger"effective_date" | "signature_date" | "calendar_date" | "renewal_window" | "notice_received" | "incident" | "invoice" | "milestone" | "manual"required

      What fires an obligation into action.

    • data.atRisk[].[].dueAtstring | null (date-time)
    • data.atRisk[].[].recurrenceany
    • data.atRisk[].[].status"draft" | "active" | "due_soon" | "overdue" | "fulfilled" | "waived" | "breached" | "disputed" | "terminated"required

      The state of an obligation.

    • data.atRisk[].[].confidencenumberrequired
    • data.atRisk[].[].extractedByModelstring | null
    • data.atRisk[].[].confirmedByActorIdstring | null
    • data.atRisk[].[].confirmedAtstring | null (date-time)
    • data.atRisk[].[].workflowRunIdstring | null
    • data.atRisk[].[].lastCheckedAtstring | null (date-time)
    • data.atRisk[].[].createdByActorIdstringrequired
    • data.atRisk[].[].createdAtstring (date-time)required
    • data.atRisk[].[].updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/obligations/risk" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Accept extracted obligations, in draft

POST/v1/pacts/pacts/{pact_id}/obligations/extract

pacts:writeIdempotency-Key requiredpacts_extractObligations

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Accept extracted obligations, in draft.

Parameters

  • pact_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • sourceVersionIdstringrequired
  • obligationsobject[]required

    The extracted obligations. The AI workstream wires a real extractor; the surface accepts them and enforces the confirmation gate. Each carries the model's confidence, which the schema bounds to 0..1.

  • obligations[].[].obligationType"payment" | "renewal_notice" | "termination_notice" | "sla" | "support" | "security_control" | "privacy_request" | "subprocessor_notice" | "audit_right" | "reporting" | "insurance" | "confidentiality" | "data_deletion" | "data_return" | "tax" | "compliance_certification" | "warranty" | "delivery" | "milestone" | "other"required

    The kind of duty an obligation is.

  • obligations[].[].owedByPartyIdstringrequired
  • obligations[].[].owedToPartyIdstringrequired
  • obligations[].[].descriptionstringrequired
  • obligations[].[].trigger"effective_date" | "signature_date" | "calendar_date" | "renewal_window" | "notice_received" | "incident" | "invoice" | "milestone" | "manual"required

    What fires an obligation into action.

  • obligations[].[].dueAtstring | null (date-time)
  • obligations[].[].recurrenceany
  • obligations[].[].sourceClauseRefany
  • obligations[].[].confidencenumber | null
  • obligations[].[].extractedByModelstring | null

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.obligationsobject[]
    • data.obligations[].[].idstringrequired
    • data.obligations[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.obligations[].[].scope.organizationIdstringrequired
    • data.obligations[].[].scope.workspaceIdstringrequired
    • data.obligations[].[].scope.projectIdstring | null
    • data.obligations[].[].scope.environmentIdstringrequired
    • data.obligations[].[].pactIdstringrequired
    • data.obligations[].[].sourceVersionIdstringrequired
    • data.obligations[].[].sourceClauseRefanyrequired
    • data.obligations[].[].obligationType"payment" | "renewal_notice" | "termination_notice" | "sla" | "support" | "security_control" | "privacy_request" | "subprocessor_notice" | "audit_right" | "reporting" | "insurance" | "confidentiality" | "data_deletion" | "data_return" | "tax" | "compliance_certification" | "warranty" | "delivery" | "milestone" | "other"required

      The kind of duty an obligation is.

    • data.obligations[].[].owedByPartyIdstringrequired
    • data.obligations[].[].owedToPartyIdstringrequired
    • data.obligations[].[].responsibleActorIdstring | null
    • data.obligations[].[].descriptionstringrequired
    • data.obligations[].[].trigger"effective_date" | "signature_date" | "calendar_date" | "renewal_window" | "notice_received" | "incident" | "invoice" | "milestone" | "manual"required

      What fires an obligation into action.

    • data.obligations[].[].dueAtstring | null (date-time)
    • data.obligations[].[].recurrenceany
    • data.obligations[].[].status"draft" | "active" | "due_soon" | "overdue" | "fulfilled" | "waived" | "breached" | "disputed" | "terminated"required

      The state of an obligation.

    • data.obligations[].[].confidencenumberrequired
    • data.obligations[].[].extractedByModelstring | null
    • data.obligations[].[].confirmedByActorIdstring | null
    • data.obligations[].[].confirmedAtstring | null (date-time)
    • data.obligations[].[].workflowRunIdstring | null
    • data.obligations[].[].lastCheckedAtstring | null (date-time)
    • data.obligations[].[].createdByActorIdstringrequired
    • data.obligations[].[].createdAtstring (date-time)required
    • data.obligations[].[].updatedAtstring (date-time)required
    • data.extractedCountinteger
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/obligations/extract" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "sourceVersionId": "string",
    "obligations": []
  }'

Assign

Assign an obligation to a responsible actor

POST/v1/pacts/obligations/{obligation_id}/assign

pacts:writeIdempotency-Key requiredpacts_assignObligation

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Assign an obligation to a responsible actor.

Parameters

  • obligation_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • responsibleActorIdstringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      An obligation: a duty an agreement imposes after signature. Extraction is a model output, so confidence is stored and an extracted obligation stays in draft until a human confirms it — an unreviewed model extraction never becomes an operational fact. Status changes are events, not overwrites: "this was waived by X for reason Y" is the record a dispute turns on, and it outlives the next status change.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.pactIdstringrequired
    • data.sourceVersionIdstringrequired
    • data.sourceClauseRefanyrequired
    • data.obligationType"payment" | "renewal_notice" | "termination_notice" | "sla" | "support" | "security_control" | "privacy_request" | "subprocessor_notice" | "audit_right" | "reporting" | "insurance" | "confidentiality" | "data_deletion" | "data_return" | "tax" | "compliance_certification" | "warranty" | "delivery" | "milestone" | "other"required

      The kind of duty an obligation is.

    • data.owedByPartyIdstringrequired
    • data.owedToPartyIdstringrequired
    • data.responsibleActorIdstring | null
    • data.descriptionstringrequired
    • data.trigger"effective_date" | "signature_date" | "calendar_date" | "renewal_window" | "notice_received" | "incident" | "invoice" | "milestone" | "manual"required

      What fires an obligation into action.

    • data.dueAtstring | null (date-time)
    • data.recurrenceany
    • data.status"draft" | "active" | "due_soon" | "overdue" | "fulfilled" | "waived" | "breached" | "disputed" | "terminated"required

      The state of an obligation.

    • data.confidencenumberrequired
    • data.extractedByModelstring | null
    • data.confirmedByActorIdstring | null
    • data.confirmedAtstring | null (date-time)
    • data.workflowRunIdstring | null
    • data.lastCheckedAtstring | null (date-time)
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/obligations/$OBLIGATION_ID/assign" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "responsibleActorId": "string"
  }'

Complete

Complete an obligation, optionally attaching evidence of completion

POST/v1/pacts/obligations/{obligation_id}/complete

pacts:writeIdempotency-Key requiredpacts_completeObligation

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Complete an obligation, optionally attaching evidence of completion.

Parameters

  • obligation_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • evidenceRefIdsarray | null

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      An obligation: a duty an agreement imposes after signature. Extraction is a model output, so confidence is stored and an extracted obligation stays in draft until a human confirms it — an unreviewed model extraction never becomes an operational fact. Status changes are events, not overwrites: "this was waived by X for reason Y" is the record a dispute turns on, and it outlives the next status change.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.pactIdstringrequired
    • data.sourceVersionIdstringrequired
    • data.sourceClauseRefanyrequired
    • data.obligationType"payment" | "renewal_notice" | "termination_notice" | "sla" | "support" | "security_control" | "privacy_request" | "subprocessor_notice" | "audit_right" | "reporting" | "insurance" | "confidentiality" | "data_deletion" | "data_return" | "tax" | "compliance_certification" | "warranty" | "delivery" | "milestone" | "other"required

      The kind of duty an obligation is.

    • data.owedByPartyIdstringrequired
    • data.owedToPartyIdstringrequired
    • data.responsibleActorIdstring | null
    • data.descriptionstringrequired
    • data.trigger"effective_date" | "signature_date" | "calendar_date" | "renewal_window" | "notice_received" | "incident" | "invoice" | "milestone" | "manual"required

      What fires an obligation into action.

    • data.dueAtstring | null (date-time)
    • data.recurrenceany
    • data.status"draft" | "active" | "due_soon" | "overdue" | "fulfilled" | "waived" | "breached" | "disputed" | "terminated"required

      The state of an obligation.

    • data.confidencenumberrequired
    • data.extractedByModelstring | null
    • data.confirmedByActorIdstring | null
    • data.confirmedAtstring | null (date-time)
    • data.workflowRunIdstring | null
    • data.lastCheckedAtstring | null (date-time)
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/obligations/$OBLIGATION_ID/complete" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Complete a review, moving it to a terminal status

POST/v1/pacts/reviews/{review_id}/complete

Idempotency-Key requiredPerson onlypacts_completeReview

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Complete a review, moving it to a terminal status.

Parameters

  • review_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • status"requested" | "in_progress" | "approved" | "changes_requested" | "rejected" | "waived"required

    The state of a review.

  • waiverReasonstring | null

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A review: a structured assessment of a pact version by an assigned reviewer. Terminal states carry a completion time and a waived review carries a reason — both enforced by the schema, because an unexplained waiver is the audit finding, not an edge case.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.pactIdstringrequired
    • data.versionIdstringrequired
    • data.reviewType"legal" | "privacy" | "security" | "finance" | "procurement" | "tax" | "commercial" | "executive" | "agent_policy"required

      The kind of review requested.

    • data.assignedActorIdstringrequired
    • data.requestedByActorIdstringrequired
    • data.status"requested" | "in_progress" | "approved" | "changes_requested" | "rejected" | "waived"required

      The state of a review.

    • data.decisionsanyrequired
    • data.waiverReasonstring | null
    • data.dueAtstring | null (date-time)
    • data.completedAtstring | null (date-time)
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/reviews/$REVIEW_ID/complete" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "status": "requested"
  }'

Confirm

Confirm an obligation, moving it from draft to active

POST/v1/pacts/obligations/{obligation_id}/confirm

pacts:writeIdempotency-Key requiredpacts_confirmObligation

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Confirm an obligation, moving it from draft to active.

Parameters

  • obligation_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

A JSON object; see the description above.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      An obligation: a duty an agreement imposes after signature. Extraction is a model output, so confidence is stored and an extracted obligation stays in draft until a human confirms it — an unreviewed model extraction never becomes an operational fact. Status changes are events, not overwrites: "this was waived by X for reason Y" is the record a dispute turns on, and it outlives the next status change.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.pactIdstringrequired
    • data.sourceVersionIdstringrequired
    • data.sourceClauseRefanyrequired
    • data.obligationType"payment" | "renewal_notice" | "termination_notice" | "sla" | "support" | "security_control" | "privacy_request" | "subprocessor_notice" | "audit_right" | "reporting" | "insurance" | "confidentiality" | "data_deletion" | "data_return" | "tax" | "compliance_certification" | "warranty" | "delivery" | "milestone" | "other"required

      The kind of duty an obligation is.

    • data.owedByPartyIdstringrequired
    • data.owedToPartyIdstringrequired
    • data.responsibleActorIdstring | null
    • data.descriptionstringrequired
    • data.trigger"effective_date" | "signature_date" | "calendar_date" | "renewal_window" | "notice_received" | "incident" | "invoice" | "milestone" | "manual"required

      What fires an obligation into action.

    • data.dueAtstring | null (date-time)
    • data.recurrenceany
    • data.status"draft" | "active" | "due_soon" | "overdue" | "fulfilled" | "waived" | "breached" | "disputed" | "terminated"required

      The state of an obligation.

    • data.confidencenumberrequired
    • data.extractedByModelstring | null
    • data.confirmedByActorIdstring | null
    • data.confirmedAtstring | null (date-time)
    • data.workflowRunIdstring | null
    • data.lastCheckedAtstring | null (date-time)
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/obligations/$OBLIGATION_ID/confirm" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '"string"'

Dispute

Dispute an obligation, with the reason

POST/v1/pacts/obligations/{obligation_id}/dispute

pacts:writeIdempotency-Key requiredpacts_disputeObligation

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Dispute an obligation, with the reason.

Parameters

  • obligation_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • reasonstringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      An obligation: a duty an agreement imposes after signature. Extraction is a model output, so confidence is stored and an extracted obligation stays in draft until a human confirms it — an unreviewed model extraction never becomes an operational fact. Status changes are events, not overwrites: "this was waived by X for reason Y" is the record a dispute turns on, and it outlives the next status change.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.pactIdstringrequired
    • data.sourceVersionIdstringrequired
    • data.sourceClauseRefanyrequired
    • data.obligationType"payment" | "renewal_notice" | "termination_notice" | "sla" | "support" | "security_control" | "privacy_request" | "subprocessor_notice" | "audit_right" | "reporting" | "insurance" | "confidentiality" | "data_deletion" | "data_return" | "tax" | "compliance_certification" | "warranty" | "delivery" | "milestone" | "other"required

      The kind of duty an obligation is.

    • data.owedByPartyIdstringrequired
    • data.owedToPartyIdstringrequired
    • data.responsibleActorIdstring | null
    • data.descriptionstringrequired
    • data.trigger"effective_date" | "signature_date" | "calendar_date" | "renewal_window" | "notice_received" | "incident" | "invoice" | "milestone" | "manual"required

      What fires an obligation into action.

    • data.dueAtstring | null (date-time)
    • data.recurrenceany
    • data.status"draft" | "active" | "due_soon" | "overdue" | "fulfilled" | "waived" | "breached" | "disputed" | "terminated"required

      The state of an obligation.

    • data.confidencenumberrequired
    • data.extractedByModelstring | null
    • data.confirmedByActorIdstring | null
    • data.confirmedAtstring | null (date-time)
    • data.workflowRunIdstring | null
    • data.lastCheckedAtstring | null (date-time)
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/obligations/$OBLIGATION_ID/dispute" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "string"
  }'

Start workflow

Start the obligation monitor: dispatch `pacts.obligation.monitor` through the workflow plane and bind the run to the obligation

POST/v1/pacts/obligations/{obligation_id}/start-workflow

pacts:writeIdempotency-Key requiredpacts_startWorkflow

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Start the obligation monitor: dispatch pacts.obligation.monitor through the workflow plane and bind the run to the obligation.

Parameters

  • obligation_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

A JSON object; see the description above.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.obligationIdstring
    • data.workflowRunIdstring
    • data.runany
    • data.replayedany
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/obligations/$OBLIGATION_ID/start-workflow" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '"string"'

Pacts

List pacts

GET/v1/pacts/pacts

pacts:readpacts_listPacts

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.pactsobject[]
    • data.pacts[].[].idstringrequired
    • data.pacts[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.pacts[].[].scope.organizationIdstringrequired
    • data.pacts[].[].scope.workspaceIdstringrequired
    • data.pacts[].[].scope.projectIdstring | null
    • data.pacts[].[].scope.environmentIdstringrequired
    • data.pacts[].[].matterIdstring | null
    • data.pacts[].[].namestringrequired
    • data.pacts[].[].agreementType"msa" | "order_form" | "sow" | "nda" | "dpa" | "baa" | "sla" | "terms_of_service" | "privacy_policy" | "employment_agreement" | "contractor_agreement" | "ip_assignment" | "licensing_agreement" | "reseller_agreement" | "partnership_agreement" | "investment_document" | "board_consent" | "procurement_terms" | "agent_delegation_policy" | "agent_service_agreement" | "settlement" | "amendment" | "termination_notice" | "other"required

      The agreement's legal form.

    • data.pacts[].[].lifecycleStatus"intake" | "drafting" | "internal_review" | "counterparty_review" | "negotiation" | "approval_pending" | "signature_pending" | "partially_signed" | "executed" | "active" | "amendment_pending" | "renewal_pending" | "termination_pending" | "terminated" | "expired" | "voided" | "archived"required

      The pact's position in the signing lifecycle. Ordered in the comment because the transitions below read against it.

    • data.pacts[].[].legalEffectMode"test" | "draft_only" | "production_candidate" | "production"required

      How much legal weight a pact's signatures may carry.

    • data.pacts[].[].governingLawstring | null
    • data.pacts[].[].venuestring | null
    • data.pacts[].[].primaryLanguagestringrequired
    • data.pacts[].[].valueobject | null
    • data.pacts[].[].startDatestring | null (date)
    • data.pacts[].[].effectiveDatestring | null (date)
    • data.pacts[].[].expirationDatestring | null (date)
    • data.pacts[].[].renewalany
    • data.pacts[].[].riskSummaryany
    • data.pacts[].[].aiSummarystring | null
    • data.pacts[].[].createdByActorIdstringrequired
    • data.pacts[].[].responsibleAttorneyActorIdstring | null
    • data.pacts[].[].businessOwnerActorIdstring | null
    • data.pacts[].[].confidentialityClass"public" | "internal" | "confidential" | "highly_confidential" | "restricted"required

      How sensitive the record is.

    • data.pacts[].[].privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"required

      A privilege assertion. None means none is claimed.

    • data.pacts[].[].currentDocumentVersionIdstring | null
    • data.pacts[].[].signaturePackageIdstring | null
    • data.pacts[].[].createdAtstring (date-time)required
    • data.pacts[].[].updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/pacts" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create a pact (draft-only unless a legal-effect mode is set)

POST/v1/pacts/pacts

pacts:writeIdempotency-Key requiredpacts_createPact

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • namestringrequired
  • agreementType"msa" | "order_form" | "sow" | "nda" | "dpa" | "baa" | "sla" | "terms_of_service" | "privacy_policy" | "employment_agreement" | "contractor_agreement" | "ip_assignment" | "licensing_agreement" | "reseller_agreement" | "partnership_agreement" | "investment_document" | "board_consent" | "procurement_terms" | "agent_delegation_policy" | "agent_service_agreement" | "settlement" | "amendment" | "termination_notice" | "other"required

    The agreement's legal form.

  • matterIdstring | null
  • legalEffectMode"test" | "draft_only" | "production_candidate" | "production" | null
  • governingLawstring | null
  • venuestring | null
  • primaryLanguagestring | null
  • valueobject | null
  • startDatestring | null (date)
  • effectiveDatestring | null (date)
  • expirationDatestring | null (date)
  • responsibleAttorneyActorIdstring | null
  • businessOwnerActorIdstring | null
  • confidentialityClass"public" | "internal" | "confidential" | "highly_confidential" | "restricted" | null
  • privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest" | null

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A pact: the canonical agreement container.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.matterIdstring | null
    • data.namestringrequired
    • data.agreementType"msa" | "order_form" | "sow" | "nda" | "dpa" | "baa" | "sla" | "terms_of_service" | "privacy_policy" | "employment_agreement" | "contractor_agreement" | "ip_assignment" | "licensing_agreement" | "reseller_agreement" | "partnership_agreement" | "investment_document" | "board_consent" | "procurement_terms" | "agent_delegation_policy" | "agent_service_agreement" | "settlement" | "amendment" | "termination_notice" | "other"required

      The agreement's legal form.

    • data.lifecycleStatus"intake" | "drafting" | "internal_review" | "counterparty_review" | "negotiation" | "approval_pending" | "signature_pending" | "partially_signed" | "executed" | "active" | "amendment_pending" | "renewal_pending" | "termination_pending" | "terminated" | "expired" | "voided" | "archived"required

      The pact's position in the signing lifecycle. Ordered in the comment because the transitions below read against it.

    • data.legalEffectMode"test" | "draft_only" | "production_candidate" | "production"required

      How much legal weight a pact's signatures may carry.

    • data.governingLawstring | null
    • data.venuestring | null
    • data.primaryLanguagestringrequired
    • data.valueobject | null
    • data.startDatestring | null (date)
    • data.effectiveDatestring | null (date)
    • data.expirationDatestring | null (date)
    • data.renewalany
    • data.riskSummaryany
    • data.aiSummarystring | null
    • data.createdByActorIdstringrequired
    • data.responsibleAttorneyActorIdstring | null
    • data.businessOwnerActorIdstring | null
    • data.confidentialityClass"public" | "internal" | "confidential" | "highly_confidential" | "restricted"required

      How sensitive the record is.

    • data.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"required

      A privilege assertion. None means none is claimed.

    • data.currentDocumentVersionIdstring | null
    • data.signaturePackageIdstring | null
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/pacts" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "agreementType": "msa"
  }'

Get a pact

GET/v1/pacts/pacts/{pact_id}

pacts:readpacts_getPact

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • pact_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A pact: the canonical agreement container.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.matterIdstring | null
    • data.namestringrequired
    • data.agreementType"msa" | "order_form" | "sow" | "nda" | "dpa" | "baa" | "sla" | "terms_of_service" | "privacy_policy" | "employment_agreement" | "contractor_agreement" | "ip_assignment" | "licensing_agreement" | "reseller_agreement" | "partnership_agreement" | "investment_document" | "board_consent" | "procurement_terms" | "agent_delegation_policy" | "agent_service_agreement" | "settlement" | "amendment" | "termination_notice" | "other"required

      The agreement's legal form.

    • data.lifecycleStatus"intake" | "drafting" | "internal_review" | "counterparty_review" | "negotiation" | "approval_pending" | "signature_pending" | "partially_signed" | "executed" | "active" | "amendment_pending" | "renewal_pending" | "termination_pending" | "terminated" | "expired" | "voided" | "archived"required

      The pact's position in the signing lifecycle. Ordered in the comment because the transitions below read against it.

    • data.legalEffectMode"test" | "draft_only" | "production_candidate" | "production"required

      How much legal weight a pact's signatures may carry.

    • data.governingLawstring | null
    • data.venuestring | null
    • data.primaryLanguagestringrequired
    • data.valueobject | null
    • data.startDatestring | null (date)
    • data.effectiveDatestring | null (date)
    • data.expirationDatestring | null (date)
    • data.renewalany
    • data.riskSummaryany
    • data.aiSummarystring | null
    • data.createdByActorIdstringrequired
    • data.responsibleAttorneyActorIdstring | null
    • data.businessOwnerActorIdstring | null
    • data.confidentialityClass"public" | "internal" | "confidential" | "highly_confidential" | "restricted"required

      How sensitive the record is.

    • data.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"required

      A privilege assertion. None means none is claimed.

    • data.currentDocumentVersionIdstring | null
    • data.signaturePackageIdstring | null
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Update a pact

PATCH/v1/pacts/pacts/{pact_id}

pacts:writeIdempotency-Key requiredpacts_updatePact

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • pact_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • namestring | null
  • agreementType"msa" | "order_form" | "sow" | "nda" | "dpa" | "baa" | "sla" | "terms_of_service" | "privacy_policy" | "employment_agreement" | "contractor_agreement" | "ip_assignment" | "licensing_agreement" | "reseller_agreement" | "partnership_agreement" | "investment_document" | "board_consent" | "procurement_terms" | "agent_delegation_policy" | "agent_service_agreement" | "settlement" | "amendment" | "termination_notice" | "other" | null
  • governingLawstring | null
  • venuestring | null
  • primaryLanguagestring | null
  • valueobject | null
  • startDatestring | null (date)
  • effectiveDatestring | null (date)
  • expirationDatestring | null (date)
  • responsibleAttorneyActorIdstring | null
  • businessOwnerActorIdstring | null
  • confidentialityClass"public" | "internal" | "confidential" | "highly_confidential" | "restricted" | null
  • privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest" | null
  • matterIdstring | null

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A pact: the canonical agreement container.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.matterIdstring | null
    • data.namestringrequired
    • data.agreementType"msa" | "order_form" | "sow" | "nda" | "dpa" | "baa" | "sla" | "terms_of_service" | "privacy_policy" | "employment_agreement" | "contractor_agreement" | "ip_assignment" | "licensing_agreement" | "reseller_agreement" | "partnership_agreement" | "investment_document" | "board_consent" | "procurement_terms" | "agent_delegation_policy" | "agent_service_agreement" | "settlement" | "amendment" | "termination_notice" | "other"required

      The agreement's legal form.

    • data.lifecycleStatus"intake" | "drafting" | "internal_review" | "counterparty_review" | "negotiation" | "approval_pending" | "signature_pending" | "partially_signed" | "executed" | "active" | "amendment_pending" | "renewal_pending" | "termination_pending" | "terminated" | "expired" | "voided" | "archived"required

      The pact's position in the signing lifecycle. Ordered in the comment because the transitions below read against it.

    • data.legalEffectMode"test" | "draft_only" | "production_candidate" | "production"required

      How much legal weight a pact's signatures may carry.

    • data.governingLawstring | null
    • data.venuestring | null
    • data.primaryLanguagestringrequired
    • data.valueobject | null
    • data.startDatestring | null (date)
    • data.effectiveDatestring | null (date)
    • data.expirationDatestring | null (date)
    • data.renewalany
    • data.riskSummaryany
    • data.aiSummarystring | null
    • data.createdByActorIdstringrequired
    • data.responsibleAttorneyActorIdstring | null
    • data.businessOwnerActorIdstring | null
    • data.confidentialityClass"public" | "internal" | "confidential" | "highly_confidential" | "restricted"required

      How sensitive the record is.

    • data.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"required

      A privilege assertion. None means none is claimed.

    • data.currentDocumentVersionIdstring | null
    • data.signaturePackageIdstring | null
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Ai

Answer a question about a pact (AI run with citations)

POST/v1/pacts/pacts/{pact_id}/ai/answer-question

pacts:writeIdempotency-Key requiredpacts_answerQuestion

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • pact_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • versionIdstring | null

    The version to work over. Absent means the pact's current context.

  • modelstring | null

    An explicit model to request instead of the operation's default class.

  • tokenBudgetinteger | null (int32)

    The Lanes packing budget, in tokens.

  • permittedDataClassesarray | null

    Narrows the data classes the run may see. The default permits every class; an explicitly empty list is a visibility refusal.

  • constraintsobject | null
  • questionstringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A JSON object (see l1felabs/pacts crates/pacts-api/src/handlers).

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/ai/answer-question" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "question": "string"
  }'

Classify a pact (AI run)

POST/v1/pacts/pacts/{pact_id}/ai/classify

pacts:writeIdempotency-Key requiredpacts_classify

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • pact_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • versionIdstring | null

    The version to work over. Absent means the pact's current context.

  • modelstring | null

    An explicit model to request instead of the operation's default class.

  • tokenBudgetinteger | null (int32)

    The Lanes packing budget, in tokens.

  • permittedDataClassesarray | null

    Narrows the data classes the run may see. The default permits every class; an explicitly empty list is a visibility refusal.

  • constraintsobject | null

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A JSON object (see l1felabs/pacts crates/pacts-api/src/handlers).

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/ai/classify" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Extract the key terms of a pact (AI run)

POST/v1/pacts/pacts/{pact_id}/ai/extract-terms

pacts:writeIdempotency-Key requiredpacts_extractTerms

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • pact_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • versionIdstring | null

    The version to work over. Absent means the pact's current context.

  • modelstring | null

    An explicit model to request instead of the operation's default class.

  • tokenBudgetinteger | null (int32)

    The Lanes packing budget, in tokens.

  • permittedDataClassesarray | null

    Narrows the data classes the run may see. The default permits every class; an explicitly empty list is a visibility refusal.

  • constraintsobject | null

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A JSON object (see l1felabs/pacts crates/pacts-api/src/handlers).

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/ai/extract-terms" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Generate a draft of a pact (AI run; enters human review)

POST/v1/pacts/pacts/{pact_id}/ai/generate-draft

pacts:writeIdempotency-Key requiredpacts_generateDraft

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • pact_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • versionIdstring | null

    The version to work over. Absent means the pact's current context.

  • modelstring | null

    An explicit model to request instead of the operation's default class.

  • tokenBudgetinteger | null (int32)

    The Lanes packing budget, in tokens.

  • permittedDataClassesarray | null

    Narrows the data classes the run may see. The default permits every class; an explicitly empty list is a visibility refusal.

  • constraintsobject | null
  • instructionsstring | null

    Extra drafting instruction ("governed by Delaware law", "short form").

  • reviewerActorIdstring | null

    When present, a legal review of the generated draft is requested of this actor in the same transaction — the draft enters the human-review flow immediately rather than waiting for someone to ask.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A JSON object (see l1felabs/pacts crates/pacts-api/src/handlers).

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/ai/generate-draft" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Review the risk in a pact (AI run)

POST/v1/pacts/pacts/{pact_id}/ai/review-risk

pacts:writeIdempotency-Key requiredpacts_reviewRisk

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • pact_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • versionIdstring | null

    The version to work over. Absent means the pact's current context.

  • modelstring | null

    An explicit model to request instead of the operation's default class.

  • tokenBudgetinteger | null (int32)

    The Lanes packing budget, in tokens.

  • permittedDataClassesarray | null

    Narrows the data classes the run may see. The default permits every class; an explicitly empty list is a visibility refusal.

  • constraintsobject | null

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A JSON object (see l1felabs/pacts crates/pacts-api/src/handlers).

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/ai/review-risk" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Get an AI run over a pact, with its output and citations

GET/v1/pacts/pacts/{pact_id}/ai/runs/{run_id}

pacts:readpacts_getAiRun

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • pact_idpath · stringrequired
  • run_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.runany
    • data.citationsobject[]
    • data.citations[].[].idstringrequired
    • data.citations[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.citations[].[].scope.organizationIdstringrequired
    • data.citations[].[].scope.workspaceIdstringrequired
    • data.citations[].[].scope.projectIdstring | null
    • data.citations[].[].scope.environmentIdstringrequired
    • data.citations[].[].runIdstringrequired
    • data.citations[].[].target"document" | "version" | "clause" | "playbook" | "evidence_ref" | "external"required

      What kind of source a citation names. External is the only target whose content the platform cannot verify against its own records, which is why the schema gives it a distinct shape (a uri, no resource id): an unverifiable citation must never be indistinguishable from a checked one.

    • data.citations[].[].citedResourceIdstring | null
    • data.citations[].[].citedUristring | null
    • data.citations[].[].quotedTextstring | null
    • data.citations[].[].locatorstring | null
    • data.citations[].[].status"pending" | "resolved" | "unresolved"required

      Whether a citation checked out. Pending means validation has not run — a run whose citations sit in pending forever is a run nobody checked. Unresolved is a finding, not an absence of one: the model named a source that does not resolve to a real document, version, clause, or reference in scope.

    • data.citations[].[].resolutionReasonstring | null
    • data.citations[].[].createdAtstring (date-time)required
    • data.citations[].[].updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/ai/runs/$RUN_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Suggest redlines on a pact (AI run)

POST/v1/pacts/pacts/{pact_id}/ai/suggest-redlines

pacts:writeIdempotency-Key requiredpacts_suggestRedlines

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • pact_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • versionIdstring | null

    The version to work over. Absent means the pact's current context.

  • modelstring | null

    An explicit model to request instead of the operation's default class.

  • tokenBudgetinteger | null (int32)

    The Lanes packing budget, in tokens.

  • permittedDataClassesarray | null

    Narrows the data classes the run may see. The default permits every class; an explicitly empty list is a visibility refusal.

  • constraintsobject | null

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A JSON object (see l1felabs/pacts crates/pacts-api/src/handlers).

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/ai/suggest-redlines" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Summarize a pact (AI run)

POST/v1/pacts/pacts/{pact_id}/ai/summarize

pacts:writeIdempotency-Key requiredpacts_summarize

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • pact_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • versionIdstring | null

    The version to work over. Absent means the pact's current context.

  • modelstring | null

    An explicit model to request instead of the operation's default class.

  • tokenBudgetinteger | null (int32)

    The Lanes packing budget, in tokens.

  • permittedDataClassesarray | null

    Narrows the data classes the run may see. The default permits every class; an explicitly empty list is a visibility refusal.

  • constraintsobject | null

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A JSON object (see l1felabs/pacts crates/pacts-api/src/handlers).

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/ai/summarize" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Validate citations: every citation in an output must resolve to a real document, version, clause, or reference in scope

POST/v1/pacts/pacts/{pact_id}/ai/validate-citations

pacts:writeIdempotency-Key requiredpacts_validateCitations

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Validate citations: every citation in an output must resolve to a real document, version, clause, or reference in scope.

Parameters

  • pact_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • runIdstring | null

    Re-validate the citations of a recorded run.

  • citationsarray | null

    Validate an ad-hoc set of citations (an output produced elsewhere).

  • versionIdstring | null

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.reportany
    • data.runany
    • data.subjectRunIdstring
    • data.humanReviewRequiredboolean
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/ai/validate-citations" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Authority org

Bind the pact's signatures to an Auto org (docs/systems/charter-gate.md)

PUT/v1/pacts/pacts/{pact_id}/authority-org

Idempotency-Key requiredPerson onlypacts_bindAuthorityOrg

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Bind the pact's signatures to an Auto org (docs/systems/charter-gate.md).

Parameters

  • pact_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • authorityOrgIdstringrequired

    The Auto org (a company One runs) whose charter governs this pact's signatures. Set once; a different org needs a new pact.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.pactIdstring
    • data.authorityOrgIdstring
  • 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/authority-org" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "authorityOrgId": "string"
  }'

Documents

List documents

GET/v1/pacts/pacts/{pact_id}/documents

pacts:readpacts_listDocuments

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • pact_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.documentsobject[]
    • data.documents[].[].idstringrequired
    • data.documents[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.documents[].[].scope.organizationIdstringrequired
    • data.documents[].[].scope.workspaceIdstringrequired
    • data.documents[].[].scope.projectIdstring | null
    • data.documents[].[].scope.environmentIdstringrequired
    • data.documents[].[].pactIdstringrequired
    • data.documents[].[].versionIdstringrequired
    • data.documents[].[].documentType"draft" | "redline" | "clean" | "exhibit" | "schedule" | "attachment" | "amendment" | "side_letter" | "certificate" | "notice" | "evidence"required

      What role a document plays in an agreement.

    • data.documents[].[].titlestringrequired
    • data.documents[].[].format"docx" | "pdf" | "html" | "markdown" | "txt" | "json" | "image"required

      The file format of a document's bytes.

    • data.documents[].[].storageRefstringrequired
    • data.documents[].[].storageScope"global_user_drive" | "tenant_dedicated" | "self_hosted"required

      Where a document's bytes are stored.

    • data.documents[].[].oceansObjectIdstring | null (uuid)
    • data.documents[].[].driveOwnerActorIdstring | null
    • data.documents[].[].drivePathstring | null
    • data.documents[].[].driveLabelsstring[]required
    • data.documents[].[].textExtractRefstring | null
    • data.documents[].[].sha256stringrequired
    • data.documents[].[].byteSizeinteger (int64)required
    • data.documents[].[].source"uploaded" | "generated" | "imported" | "email" | "api" | "mcp" | "counterparty" | "signature_provider"required

      How a document's bytes arrived.

    • data.documents[].[].createdByActorIdstringrequired
    • data.documents[].[].createdAtstring (date-time)required
    • data.documents[].[].updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/documents" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Store a document (base64 bytes) on a pact version

POST/v1/pacts/pacts/{pact_id}/documents

pacts:writeIdempotency-Key requiredpacts_createDocument

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Store bytes, compute their digest, record the row — in one transaction with its audit event. The digest the row carries is the digest of the bytes this call was given, because nothing else computed it.

Parameters

  • pact_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • contentBase64stringrequired

    The document bytes, base64-encoded. Documents travel through the storage plane as artifacts; the API carries them once, small, and references them by the ref the storage plane returns.

  • titlestringrequired
  • documentType"draft" | "redline" | "clean" | "exhibit" | "schedule" | "attachment" | "amendment" | "side_letter" | "certificate" | "notice" | "evidence"required

    What role a document plays in an agreement.

  • format"docx" | "pdf" | "html" | "markdown" | "txt" | "json" | "image"required

    The file format of a document's bytes.

  • versionIdstringrequired

    The version this document belongs to. Must already exist on the pact.

  • source"uploaded" | "generated" | "imported" | "email" | "api" | "mcp" | "counterparty" | "signature_provider" | null

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A document: one content-addressed artifact attached to a pact and version. sha256 is the digest this service computed on ingest. It is an identity, not a field — the schema refuses to let it change, because editing it would let a row describe different bytes than it was hashed from.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.pactIdstringrequired
    • data.versionIdstringrequired
    • data.documentType"draft" | "redline" | "clean" | "exhibit" | "schedule" | "attachment" | "amendment" | "side_letter" | "certificate" | "notice" | "evidence"required

      What role a document plays in an agreement.

    • data.titlestringrequired
    • data.format"docx" | "pdf" | "html" | "markdown" | "txt" | "json" | "image"required

      The file format of a document's bytes.

    • data.storageRefstringrequired
    • data.storageScope"global_user_drive" | "tenant_dedicated" | "self_hosted"required

      Where a document's bytes are stored.

    • data.oceansObjectIdstring | null (uuid)
    • data.driveOwnerActorIdstring | null
    • data.drivePathstring | null
    • data.driveLabelsstring[]required
    • data.textExtractRefstring | null
    • data.sha256stringrequired
    • data.byteSizeinteger (int64)required
    • data.source"uploaded" | "generated" | "imported" | "email" | "api" | "mcp" | "counterparty" | "signature_provider"required

      How a document's bytes arrived.

    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/documents" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contentBase64": "string",
    "title": "string",
    "documentType": "draft",
    "format": "docx",
    "versionId": "string"
  }'

Get document

GET/v1/pacts/pacts/{pact_id}/documents/{document_id}

pacts:readpacts_getDocument

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • pact_idpath · stringrequired
  • document_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A document: one content-addressed artifact attached to a pact and version. sha256 is the digest this service computed on ingest. It is an identity, not a field — the schema refuses to let it change, because editing it would let a row describe different bytes than it was hashed from.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.pactIdstringrequired
    • data.versionIdstringrequired
    • data.documentType"draft" | "redline" | "clean" | "exhibit" | "schedule" | "attachment" | "amendment" | "side_letter" | "certificate" | "notice" | "evidence"required

      What role a document plays in an agreement.

    • data.titlestringrequired
    • data.format"docx" | "pdf" | "html" | "markdown" | "txt" | "json" | "image"required

      The file format of a document's bytes.

    • data.storageRefstringrequired
    • data.storageScope"global_user_drive" | "tenant_dedicated" | "self_hosted"required

      Where a document's bytes are stored.

    • data.oceansObjectIdstring | null (uuid)
    • data.driveOwnerActorIdstring | null
    • data.drivePathstring | null
    • data.driveLabelsstring[]required
    • data.textExtractRefstring | null
    • data.sha256stringrequired
    • data.byteSizeinteger (int64)required
    • data.source"uploaded" | "generated" | "imported" | "email" | "api" | "mcp" | "counterparty" | "signature_provider"required

      How a document's bytes arrived.

    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/documents/$DOCUMENT_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Extract text from a stored document

POST/v1/pacts/pacts/{pact_id}/documents/{document_id}/extract-text

pacts:writeIdempotency-Key requiredpacts_extractText

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Extract text from a stored document.

Parameters

  • pact_idpath · stringrequired
  • document_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

A JSON object; see the description above.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.documentIdstring
    • data.textExtractRefany
    • data.characterCountinteger
    • data.previewany
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/documents/$DOCUMENT_ID/extract-text" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '"string"'

Reviews

List reviews

GET/v1/pacts/pacts/{pact_id}/reviews

pacts:readpacts_listReviews

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • pact_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.reviewsobject[]
    • data.reviews[].[].idstringrequired
    • data.reviews[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.reviews[].[].scope.organizationIdstringrequired
    • data.reviews[].[].scope.workspaceIdstringrequired
    • data.reviews[].[].scope.projectIdstring | null
    • data.reviews[].[].scope.environmentIdstringrequired
    • data.reviews[].[].pactIdstringrequired
    • data.reviews[].[].versionIdstringrequired
    • data.reviews[].[].reviewType"legal" | "privacy" | "security" | "finance" | "procurement" | "tax" | "commercial" | "executive" | "agent_policy"required

      The kind of review requested.

    • data.reviews[].[].assignedActorIdstringrequired
    • data.reviews[].[].requestedByActorIdstringrequired
    • data.reviews[].[].status"requested" | "in_progress" | "approved" | "changes_requested" | "rejected" | "waived"required

      The state of a review.

    • data.reviews[].[].decisionsanyrequired
    • data.reviews[].[].waiverReasonstring | null
    • data.reviews[].[].dueAtstring | null (date-time)
    • data.reviews[].[].completedAtstring | null (date-time)
    • data.reviews[].[].createdAtstring (date-time)required
    • data.reviews[].[].updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/reviews" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create review

POST/v1/pacts/pacts/{pact_id}/reviews

pacts:writeIdempotency-Key requiredpacts_createReview

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • pact_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • versionIdstringrequired
  • reviewType"legal" | "privacy" | "security" | "finance" | "procurement" | "tax" | "commercial" | "executive" | "agent_policy"required

    The kind of review requested.

  • assignedActorIdstringrequired
  • dueAtstring | null (date-time)

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A review: a structured assessment of a pact version by an assigned reviewer. Terminal states carry a completion time and a waived review carries a reason — both enforced by the schema, because an unexplained waiver is the audit finding, not an edge case.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.pactIdstringrequired
    • data.versionIdstringrequired
    • data.reviewType"legal" | "privacy" | "security" | "finance" | "procurement" | "tax" | "commercial" | "executive" | "agent_policy"required

      The kind of review requested.

    • data.assignedActorIdstringrequired
    • data.requestedByActorIdstringrequired
    • data.status"requested" | "in_progress" | "approved" | "changes_requested" | "rejected" | "waived"required

      The state of a review.

    • data.decisionsanyrequired
    • data.waiverReasonstring | null
    • data.dueAtstring | null (date-time)
    • data.completedAtstring | null (date-time)
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/reviews" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "versionId": "string",
    "reviewType": "legal",
    "assignedActorId": "string"
  }'

Get review

GET/v1/pacts/reviews/{review_id}

pacts:readpacts_getReview

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • review_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A review: a structured assessment of a pact version by an assigned reviewer. Terminal states carry a completion time and a waived review carries a reason — both enforced by the schema, because an unexplained waiver is the audit finding, not an edge case.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.pactIdstringrequired
    • data.versionIdstringrequired
    • data.reviewType"legal" | "privacy" | "security" | "finance" | "procurement" | "tax" | "commercial" | "executive" | "agent_policy"required

      The kind of review requested.

    • data.assignedActorIdstringrequired
    • data.requestedByActorIdstringrequired
    • data.status"requested" | "in_progress" | "approved" | "changes_requested" | "rejected" | "waived"required

      The state of a review.

    • data.decisionsanyrequired
    • data.waiverReasonstring | null
    • data.dueAtstring | null (date-time)
    • data.completedAtstring | null (date-time)
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/reviews/$REVIEW_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Update review

PATCH/v1/pacts/reviews/{review_id}

pacts:writeIdempotency-Key requiredpacts_updateReview

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • review_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • assignedActorIdstring | null
  • dueAtstring | null (date-time)
  • decisionsany

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A review: a structured assessment of a pact version by an assigned reviewer. Terminal states carry a completion time and a waived review carries a reason — both enforced by the schema, because an unexplained waiver is the audit finding, not an edge case.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.pactIdstringrequired
    • data.versionIdstringrequired
    • data.reviewType"legal" | "privacy" | "security" | "finance" | "procurement" | "tax" | "commercial" | "executive" | "agent_policy"required

      The kind of review requested.

    • data.assignedActorIdstringrequired
    • data.requestedByActorIdstringrequired
    • data.status"requested" | "in_progress" | "approved" | "changes_requested" | "rejected" | "waived"required

      The state of a review.

    • data.decisionsanyrequired
    • data.waiverReasonstring | null
    • data.dueAtstring | null (date-time)
    • data.completedAtstring | null (date-time)
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/pacts/reviews/$REVIEW_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Signature packages

List a pact's signature packages

GET/v1/pacts/pacts/{pact_id}/signature-packages

pacts:readpacts_listPackages

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • pact_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.signaturePackagesobject[]
    • data.signaturePackages[].[].idstringrequired
    • data.signaturePackages[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.signaturePackages[].[].scope.organizationIdstringrequired
    • data.signaturePackages[].[].scope.workspaceIdstringrequired
    • data.signaturePackages[].[].scope.projectIdstring | null
    • data.signaturePackages[].[].scope.environmentIdstringrequired
    • data.signaturePackages[].[].pactIdstringrequired
    • data.signaturePackages[].[].versionIdstringrequired
    • data.signaturePackages[].[].provider"pacts_native" | "docusign" | "adobe_sign" | "hellosign" | "qualified_trust_service" | "external"required

      Who is providing the signing service.

    • data.signaturePackages[].[].signatureLevel"test_signature" | "electronic" | "advanced_electronic" | "qualified_electronic" | "electronic_seal" | "agent_signature"required

      The assurance level of a signature. Ordered weakest to strongest, with test_signature deliberately outside the ordering: it is not a weak signature, it is not a signature at all. Every level above it requires the full ceremony (intent, consent, authentication) and exists only in production.

    • data.signaturePackages[].[].status"draft" | "sent" | "viewed" | "partially_signed" | "completed" | "declined" | "voided" | "expired"required

      The lifecycle of a signature package.

    • data.signaturePackages[].[].orderedSigningbooleanrequired
    • data.signaturePackages[].[].sealedContentHashstring | null
    • data.signaturePackages[].[].sealedAtstring | null (date-time)
    • data.signaturePackages[].[].completionCertificateRefstring | null
    • data.signaturePackages[].[].completionCertificateSha256string | null
    • data.signaturePackages[].[].declineReasonstring | null
    • data.signaturePackages[].[].voidReasonstring | null
    • data.signaturePackages[].[].expiresAtstring | null (date-time)
    • data.signaturePackages[].[].createdByActorIdstringrequired
    • data.signaturePackages[].[].createdAtstring (date-time)required
    • data.signaturePackages[].[].updatedAtstring (date-time)required
    • data.signaturePackages[].[].completedAtstring | null (date-time)
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/signature-packages" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create a signature package for a version (signers, level, order)

POST/v1/pacts/pacts/{pact_id}/signature-packages

pacts:writeIdempotency-Key requiredpacts_createPackage

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • pact_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • versionIdstringrequired
  • signatureLevel"test_signature" | "electronic" | "advanced_electronic" | "qualified_electronic" | "electronic_seal" | "agent_signature"required

    The assurance level of a signature. Ordered weakest to strongest, with test_signature deliberately outside the ordering: it is not a weak signature, it is not a signature at all. Every level above it requires the full ceremony (intent, consent, authentication) and exists only in production.

  • orderedSigningboolean | null
  • expiresAtstring | null (date-time)
  • signersobject[]required
  • signers[].[].signerActorIdstringrequired
  • signers[].[].signerActorType"human" | "agent" | "service" | "counterparty_human" | "counterparty_agent" | "outside_counsel" | "system" | null
  • signers[].[].representedPartyIdstringrequired
  • signers[].[].authorityGrantIdstring | null
  • signers[].[].signingOrderinteger (int32)required

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A signature package: the sealed envelope signers are asked to agree to. The package is sealed to a digest when it leaves draft. Every signature is checked against that digest, and the digest is checked against the version's current hash — so an edit between sending and signing is caught from either direction.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.pactIdstringrequired
    • data.versionIdstringrequired
    • data.provider"pacts_native" | "docusign" | "adobe_sign" | "hellosign" | "qualified_trust_service" | "external"required

      Who is providing the signing service.

    • data.signatureLevel"test_signature" | "electronic" | "advanced_electronic" | "qualified_electronic" | "electronic_seal" | "agent_signature"required

      The assurance level of a signature. Ordered weakest to strongest, with test_signature deliberately outside the ordering: it is not a weak signature, it is not a signature at all. Every level above it requires the full ceremony (intent, consent, authentication) and exists only in production.

    • data.status"draft" | "sent" | "viewed" | "partially_signed" | "completed" | "declined" | "voided" | "expired"required

      The lifecycle of a signature package.

    • data.orderedSigningbooleanrequired
    • data.sealedContentHashstring | null
    • data.sealedAtstring | null (date-time)
    • data.completionCertificateRefstring | null
    • data.completionCertificateSha256string | null
    • data.declineReasonstring | null
    • data.voidReasonstring | null
    • data.expiresAtstring | null (date-time)
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • data.completedAtstring | null (date-time)
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/signature-packages" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "versionId": "string",
    "signatureLevel": "test_signature",
    "signers": []
  }'

Get a signature package

GET/v1/pacts/signature-packages/{package_id}

pacts:readpacts_getPackage

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • package_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.packageany
    • data.signersany
    • data.signaturesany
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/signature-packages/$PACKAGE_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Submit for approval

Submit for approval

POST/v1/pacts/pacts/{pact_id}/submit-for-approval

pacts:writeIdempotency-Key requiredpacts_submitForApproval

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • pact_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A pact: the canonical agreement container.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.matterIdstring | null
    • data.namestringrequired
    • data.agreementType"msa" | "order_form" | "sow" | "nda" | "dpa" | "baa" | "sla" | "terms_of_service" | "privacy_policy" | "employment_agreement" | "contractor_agreement" | "ip_assignment" | "licensing_agreement" | "reseller_agreement" | "partnership_agreement" | "investment_document" | "board_consent" | "procurement_terms" | "agent_delegation_policy" | "agent_service_agreement" | "settlement" | "amendment" | "termination_notice" | "other"required

      The agreement's legal form.

    • data.lifecycleStatus"intake" | "drafting" | "internal_review" | "counterparty_review" | "negotiation" | "approval_pending" | "signature_pending" | "partially_signed" | "executed" | "active" | "amendment_pending" | "renewal_pending" | "termination_pending" | "terminated" | "expired" | "voided" | "archived"required

      The pact's position in the signing lifecycle. Ordered in the comment because the transitions below read against it.

    • data.legalEffectMode"test" | "draft_only" | "production_candidate" | "production"required

      How much legal weight a pact's signatures may carry.

    • data.governingLawstring | null
    • data.venuestring | null
    • data.primaryLanguagestringrequired
    • data.valueobject | null
    • data.startDatestring | null (date)
    • data.effectiveDatestring | null (date)
    • data.expirationDatestring | null (date)
    • data.renewalany
    • data.riskSummaryany
    • data.aiSummarystring | null
    • data.createdByActorIdstringrequired
    • data.responsibleAttorneyActorIdstring | null
    • data.businessOwnerActorIdstring | null
    • data.confidentialityClass"public" | "internal" | "confidential" | "highly_confidential" | "restricted"required

      How sensitive the record is.

    • data.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"required

      A privilege assertion. None means none is claimed.

    • data.currentDocumentVersionIdstring | null
    • data.signaturePackageIdstring | null
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/submit-for-approval" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY"

Submit for review

Submit for review

POST/v1/pacts/pacts/{pact_id}/submit-for-review

pacts:writeIdempotency-Key requiredpacts_submitForReview

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • pact_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A pact: the canonical agreement container.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.matterIdstring | null
    • data.namestringrequired
    • data.agreementType"msa" | "order_form" | "sow" | "nda" | "dpa" | "baa" | "sla" | "terms_of_service" | "privacy_policy" | "employment_agreement" | "contractor_agreement" | "ip_assignment" | "licensing_agreement" | "reseller_agreement" | "partnership_agreement" | "investment_document" | "board_consent" | "procurement_terms" | "agent_delegation_policy" | "agent_service_agreement" | "settlement" | "amendment" | "termination_notice" | "other"required

      The agreement's legal form.

    • data.lifecycleStatus"intake" | "drafting" | "internal_review" | "counterparty_review" | "negotiation" | "approval_pending" | "signature_pending" | "partially_signed" | "executed" | "active" | "amendment_pending" | "renewal_pending" | "termination_pending" | "terminated" | "expired" | "voided" | "archived"required

      The pact's position in the signing lifecycle. Ordered in the comment because the transitions below read against it.

    • data.legalEffectMode"test" | "draft_only" | "production_candidate" | "production"required

      How much legal weight a pact's signatures may carry.

    • data.governingLawstring | null
    • data.venuestring | null
    • data.primaryLanguagestringrequired
    • data.valueobject | null
    • data.startDatestring | null (date)
    • data.effectiveDatestring | null (date)
    • data.expirationDatestring | null (date)
    • data.renewalany
    • data.riskSummaryany
    • data.aiSummarystring | null
    • data.createdByActorIdstringrequired
    • data.responsibleAttorneyActorIdstring | null
    • data.businessOwnerActorIdstring | null
    • data.confidentialityClass"public" | "internal" | "confidential" | "highly_confidential" | "restricted"required

      How sensitive the record is.

    • data.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"required

      A privilege assertion. None means none is claimed.

    • data.currentDocumentVersionIdstring | null
    • data.signaturePackageIdstring | null
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/submit-for-review" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY"

Versions

List versions

GET/v1/pacts/pacts/{pact_id}/versions

pacts:readpacts_listVersions

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • pact_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.versionsobject[]
    • data.versions[].[].idstringrequired
    • data.versions[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.versions[].[].scope.organizationIdstringrequired
    • data.versions[].[].scope.workspaceIdstringrequired
    • data.versions[].[].scope.projectIdstring | null
    • data.versions[].[].scope.environmentIdstringrequired
    • data.versions[].[].pactIdstringrequired
    • data.versions[].[].ordinalinteger (int32)required
    • data.versions[].[].parentVersionIdstring | null
    • data.versions[].[].labelstringrequired
    • data.versions[].[].aiGeneratedbooleanrequired
    • data.versions[].[].modelTraceIdstring | null
    • data.versions[].[].changeSummarystring | null
    • data.versions[].[].redlineAgainstVersionIdstring | null
    • data.versions[].[].status"draft" | "reviewed" | "approved" | "sent" | "superseded" | "executed"required

      The lifecycle of a version.

    • data.versions[].[].contentHashstring | null
    • data.versions[].[].createdByActorIdstringrequired
    • data.versions[].[].createdAtstring (date-time)required
    • data.versions[].[].updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/versions" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create a version of a pact

POST/v1/pacts/pacts/{pact_id}/versions

pacts:writeIdempotency-Key requiredpacts_createVersion

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • pact_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • labelstringrequired
  • parentVersionIdstring | null
  • changeSummarystring | null
  • documentsarray | null

    The documents that make up this version, in order. Each names a document id already stored on the pact and the role it plays.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A version: an ordered set of documents plus the digest of that set. content_hash is computed server-side when the version is assembled. It is the value an approval binds to and a signature is checked against — which is why it is never accepted from a client, and why an executed version's hash is frozen.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.pactIdstringrequired
    • data.ordinalinteger (int32)required
    • data.parentVersionIdstring | null
    • data.labelstringrequired
    • data.aiGeneratedbooleanrequired
    • data.modelTraceIdstring | null
    • data.changeSummarystring | null
    • data.redlineAgainstVersionIdstring | null
    • data.status"draft" | "reviewed" | "approved" | "sent" | "superseded" | "executed"required

      The lifecycle of a version.

    • data.contentHashstring | null
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/versions" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "label": "string"
  }'

Get version

GET/v1/pacts/pacts/{pact_id}/versions/{version_id}

pacts:readpacts_getVersion

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • pact_idpath · stringrequired
  • version_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A version: an ordered set of documents plus the digest of that set. content_hash is computed server-side when the version is assembled. It is the value an approval binds to and a signature is checked against — which is why it is never accepted from a client, and why an executed version's hash is frozen.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.pactIdstringrequired
    • data.ordinalinteger (int32)required
    • data.parentVersionIdstring | null
    • data.labelstringrequired
    • data.aiGeneratedbooleanrequired
    • data.modelTraceIdstring | null
    • data.changeSummarystring | null
    • data.redlineAgainstVersionIdstring | null
    • data.status"draft" | "reviewed" | "approved" | "sent" | "superseded" | "executed"required

      The lifecycle of a version.

    • data.contentHashstring | null
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/versions/$VERSION_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Approve a version for signature: finalize its hash and mark it approved

POST/v1/pacts/pacts/{pact_id}/versions/{version_id}/approve-for-signature

Idempotency-Key requiredPerson onlypacts_approveForSignature

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Approve a version for signature: finalize its hash and mark it approved.

Parameters

  • pact_idpath · stringrequired
  • version_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

A JSON object; see the description above.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A version: an ordered set of documents plus the digest of that set. content_hash is computed server-side when the version is assembled. It is the value an approval binds to and a signature is checked against — which is why it is never accepted from a client, and why an executed version's hash is frozen.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.pactIdstringrequired
    • data.ordinalinteger (int32)required
    • data.parentVersionIdstring | null
    • data.labelstringrequired
    • data.aiGeneratedbooleanrequired
    • data.modelTraceIdstring | null
    • data.changeSummarystring | null
    • data.redlineAgainstVersionIdstring | null
    • data.status"draft" | "reviewed" | "approved" | "sent" | "superseded" | "executed"required

      The lifecycle of a version.

    • data.contentHashstring | null
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/versions/$VERSION_ID/approve-for-signature" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '"string"'

Compare two versions' document digests, ordinal by ordinal

POST/v1/pacts/pacts/{pact_id}/versions/{version_id}/compare

pacts:writeIdempotency-Key requiredpacts_compareVersions

Scope pacts:read. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Compare two versions' document digests, ordinal by ordinal.

Parameters

  • pact_idpath · stringrequired
  • version_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • otherVersionIdstringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.versionIdstring
    • data.otherVersionIdstring
    • data.identicalany
    • data.changesany
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/versions/$VERSION_ID/compare" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "otherVersionId": "string"
  }'

Start a redline: a new draft version whose base is an existing one

POST/v1/pacts/pacts/{pact_id}/versions/{version_id}/redline

pacts:writeIdempotency-Key requiredpacts_redlineVersion

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Start a redline: a new draft version whose base is an existing one.

Parameters

  • pact_idpath · stringrequired
  • version_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • baseVersionIdstringrequired
  • labelstringrequired
  • changeSummarystring | null

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.redlineVersionIdstring
    • data.baseVersionIdstring
    • data.statusany
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/versions/$VERSION_ID/redline" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "baseVersionId": "string",
    "label": "string"
  }'

Void

Void a pact, with the reason

POST/v1/pacts/pacts/{pact_id}/void

pacts:writeIdempotency-Key requiredpacts_voidPact

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • pact_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • reasonstringrequired

    Required: voiding a pact is a legal act, and the audit trail has to say why it happened.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A pact: the canonical agreement container.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.matterIdstring | null
    • data.namestringrequired
    • data.agreementType"msa" | "order_form" | "sow" | "nda" | "dpa" | "baa" | "sla" | "terms_of_service" | "privacy_policy" | "employment_agreement" | "contractor_agreement" | "ip_assignment" | "licensing_agreement" | "reseller_agreement" | "partnership_agreement" | "investment_document" | "board_consent" | "procurement_terms" | "agent_delegation_policy" | "agent_service_agreement" | "settlement" | "amendment" | "termination_notice" | "other"required

      The agreement's legal form.

    • data.lifecycleStatus"intake" | "drafting" | "internal_review" | "counterparty_review" | "negotiation" | "approval_pending" | "signature_pending" | "partially_signed" | "executed" | "active" | "amendment_pending" | "renewal_pending" | "termination_pending" | "terminated" | "expired" | "voided" | "archived"required

      The pact's position in the signing lifecycle. Ordered in the comment because the transitions below read against it.

    • data.legalEffectMode"test" | "draft_only" | "production_candidate" | "production"required

      How much legal weight a pact's signatures may carry.

    • data.governingLawstring | null
    • data.venuestring | null
    • data.primaryLanguagestringrequired
    • data.valueobject | null
    • data.startDatestring | null (date)
    • data.effectiveDatestring | null (date)
    • data.expirationDatestring | null (date)
    • data.renewalany
    • data.riskSummaryany
    • data.aiSummarystring | null
    • data.createdByActorIdstringrequired
    • data.responsibleAttorneyActorIdstring | null
    • data.businessOwnerActorIdstring | null
    • data.confidentialityClass"public" | "internal" | "confidential" | "highly_confidential" | "restricted"required

      How sensitive the record is.

    • data.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"required

      A privilege assertion. None means none is claimed.

    • data.currentDocumentVersionIdstring | null
    • data.signaturePackageIdstring | null
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/void" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "string"
  }'

Void a signature package, with the reason

POST/v1/pacts/signature-packages/{package_id}/void

pacts:writeIdempotency-Key requiredpacts_voidPackage

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • package_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • reasonstringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A signature package: the sealed envelope signers are asked to agree to. The package is sealed to a digest when it leaves draft. Every signature is checked against that digest, and the digest is checked against the version's current hash — so an edit between sending and signing is caught from either direction.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.pactIdstringrequired
    • data.versionIdstringrequired
    • data.provider"pacts_native" | "docusign" | "adobe_sign" | "hellosign" | "qualified_trust_service" | "external"required

      Who is providing the signing service.

    • data.signatureLevel"test_signature" | "electronic" | "advanced_electronic" | "qualified_electronic" | "electronic_seal" | "agent_signature"required

      The assurance level of a signature. Ordered weakest to strongest, with test_signature deliberately outside the ordering: it is not a weak signature, it is not a signature at all. Every level above it requires the full ceremony (intent, consent, authentication) and exists only in production.

    • data.status"draft" | "sent" | "viewed" | "partially_signed" | "completed" | "declined" | "voided" | "expired"required

      The lifecycle of a signature package.

    • data.orderedSigningbooleanrequired
    • data.sealedContentHashstring | null
    • data.sealedAtstring | null (date-time)
    • data.completionCertificateRefstring | null
    • data.completionCertificateSha256string | null
    • data.declineReasonstring | null
    • data.voidReasonstring | null
    • data.expiresAtstring | null (date-time)
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • data.completedAtstring | null (date-time)
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/signature-packages/$PACKAGE_ID/void" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "string"
  }'

Parties

List parties

GET/v1/pacts/parties

pacts:readpacts_listParties

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.partiesobject[]
    • data.parties[].[].idstringrequired
    • data.parties[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.parties[].[].scope.organizationIdstringrequired
    • data.parties[].[].scope.workspaceIdstringrequired
    • data.parties[].[].scope.projectIdstring | null
    • data.parties[].[].scope.environmentIdstringrequired
    • data.parties[].[].namestringrequired
    • data.parties[].[].partyType"legal_entity" | "individual" | "agent" | "government" | "trust" | "other"required

      The legal form of a party.

    • data.parties[].[].role"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other"required

      A party's role in an agreement.

    • data.parties[].[].legalEntityIdstring | null
    • data.parties[].[].jurisdictionstring | null
    • data.parties[].[].addressany
    • data.parties[].[].externalPartybooleanrequired
    • data.parties[].[].verificationStatus"unverified" | "verified" | "disputed" | "expired" | "revoked" | "blocked"required

      The verification state of a party, grant, or contact.

    • data.parties[].[].createdByActorIdstringrequired
    • data.parties[].[].createdAtstring (date-time)required
    • data.parties[].[].updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/parties" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create a party

POST/v1/pacts/parties

pacts:writeIdempotency-Key requiredpacts_createParty

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • namestringrequired
  • partyType"legal_entity" | "individual" | "agent" | "government" | "trust" | "other"required

    The legal form of a party.

  • role"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other"required

    A party's role in an agreement.

  • legalEntityIdstring | null
  • jurisdictionstring | null
  • addressany
  • externalPartyboolean | null

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A party: the entity that signs or is represented.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.namestringrequired
    • data.partyType"legal_entity" | "individual" | "agent" | "government" | "trust" | "other"required

      The legal form of a party.

    • data.role"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other"required

      A party's role in an agreement.

    • data.legalEntityIdstring | null
    • data.jurisdictionstring | null
    • data.addressany
    • data.externalPartybooleanrequired
    • data.verificationStatus"unverified" | "verified" | "disputed" | "expired" | "revoked" | "blocked"required

      The verification state of a party, grant, or contact.

    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/parties" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "partyType": "legal_entity",
    "role": "customer"
  }'

Get party

GET/v1/pacts/parties/{party_id}

pacts:readpacts_getParty

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • party_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A party: the entity that signs or is represented.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.namestringrequired
    • data.partyType"legal_entity" | "individual" | "agent" | "government" | "trust" | "other"required

      The legal form of a party.

    • data.role"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other"required

      A party's role in an agreement.

    • data.legalEntityIdstring | null
    • data.jurisdictionstring | null
    • data.addressany
    • data.externalPartybooleanrequired
    • data.verificationStatus"unverified" | "verified" | "disputed" | "expired" | "revoked" | "blocked"required

      The verification state of a party, grant, or contact.

    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/parties/$PARTY_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Update party

PATCH/v1/pacts/parties/{party_id}

pacts:writeIdempotency-Key requiredpacts_updateParty

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Parameters

  • party_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • namestring | null
  • role"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other" | null
  • legalEntityIdstring | null
  • jurisdictionstring | null
  • addressany

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A party: the entity that signs or is represented.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.namestringrequired
    • data.partyType"legal_entity" | "individual" | "agent" | "government" | "trust" | "other"required

      The legal form of a party.

    • data.role"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other"required

      A party's role in an agreement.

    • data.legalEntityIdstring | null
    • data.jurisdictionstring | null
    • data.addressany
    • data.externalPartybooleanrequired
    • data.verificationStatus"unverified" | "verified" | "disputed" | "expired" | "revoked" | "blocked"required

      The verification state of a party, grant, or contact.

    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/pacts/parties/$PARTY_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Playbooks

List playbooks

GET/v1/pacts/playbooks

pacts:readpacts_listPlaybooks

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • statusquery · "draft" | "active" | "deprecated"
  • agreementTypequery · "msa" | "order_form" | "sow" | "nda" | "dpa" | "baa" | "sla" | "terms_of_service" | "privacy_policy" | "employment_agreement" | "contractor_agreement" | "ip_assignment" | "licensing_agreement" | "reseller_agreement" | "partnership_agreement" | "investment_document" | "board_consent" | "procurement_terms" | "agent_delegation_policy" | "agent_service_agreement" | "settlement" | "amendment" | "termination_notice" | "other"
  • jurisdictionquery · string
  • partyRolequery · "customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other"

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.playbooksobject[]
    • data.playbooks[].[].idstringrequired
    • data.playbooks[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.playbooks[].[].scope.organizationIdstringrequired
    • data.playbooks[].[].scope.workspaceIdstringrequired
    • data.playbooks[].[].scope.projectIdstring | null
    • data.playbooks[].[].scope.environmentIdstringrequired
    • data.playbooks[].[].namestringrequired
    • data.playbooks[].[].agreementTypes"msa" | "order_form" | "sow" | "nda" | "dpa" | "baa" | "sla" | "terms_of_service" | "privacy_policy" | "employment_agreement" | "contractor_agreement" | "ip_assignment" | "licensing_agreement" | "reseller_agreement" | "partnership_agreement" | "investment_document" | "board_consent" | "procurement_terms" | "agent_delegation_policy" | "agent_service_agreement" | "settlement" | "amendment" | "termination_notice" | "other"[]required
    • data.playbooks[].[].jurisdictionstring | null
    • data.playbooks[].[].partyRole"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other" | null
    • data.playbooks[].[].ownerActorIdstringrequired
    • data.playbooks[].[].status"draft" | "active" | "deprecated"required

      Where a playbook sits in its working life.

    • data.playbooks[].[].approvedClauseIdsstring[]required
    • data.playbooks[].[].blockedClausePatternsstring[]required
    • data.playbooks[].[].fallbackPositionsanyrequired
    • data.playbooks[].[].escalationRulesanyrequired
    • data.playbooks[].[].createdByActorIdstringrequired
    • data.playbooks[].[].createdAtstring (date-time)required
    • data.playbooks[].[].updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/playbooks" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create playbook

POST/v1/pacts/playbooks

Idempotency-Key requiredPerson onlypacts_createPlaybook

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Parameters

  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • namestringrequired
  • agreementTypes"msa" | "order_form" | "sow" | "nda" | "dpa" | "baa" | "sla" | "terms_of_service" | "privacy_policy" | "employment_agreement" | "contractor_agreement" | "ip_assignment" | "licensing_agreement" | "reseller_agreement" | "partnership_agreement" | "investment_document" | "board_consent" | "procurement_terms" | "agent_delegation_policy" | "agent_service_agreement" | "settlement" | "amendment" | "termination_notice" | "other"[]required
  • jurisdictionstring | null
  • partyRole"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other" | null
  • ownerActorIdstring | null
  • approvedClauseIdsstring[]
  • blockedClausePatternsstring[]
  • fallbackPositionsany
  • escalationRulesany
  • rulesobject[]
  • rules[].[].idstring | null

    Present when editing an existing rule in place; absent for a new rule. Citations name rule ids, so an edit keeps the ids it keeps.

  • rules[].[].namestringrequired
  • rules[].[].conditionany
  • rules[].[].severity"info" | "low" | "medium" | "high" | "critical"required

    How much weight a triggered playbook rule carries.

  • rules[].[].requiredAction"none" | "warn" | "redline" | "approval_required" | "counsel_review_required" | "block"required

    What a triggered playbook rule demands. A rule routing to a reviewer must name the reviewer role — the schema refuses one that does not, because a review with no assignee is a pact that stalls.

  • rules[].[].reviewerRolestring | null
  • rules[].[].messagestringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.playbookobject

      A playbook: the positions and rules that govern a class of agreements. fallback_positions and escalation_rules are structured policy data interpreted by the policy engine, not by this service; they are carried as JSON so the engine's grammar can evolve without a schema migration.

    • data.playbook.idstringrequired
    • data.playbook.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.playbook.scope.organizationIdstringrequired
    • data.playbook.scope.workspaceIdstringrequired
    • data.playbook.scope.projectIdstring | null
    • data.playbook.scope.environmentIdstringrequired
    • data.playbook.namestringrequired
    • data.playbook.agreementTypes"msa" | "order_form" | "sow" | "nda" | "dpa" | "baa" | "sla" | "terms_of_service" | "privacy_policy" | "employment_agreement" | "contractor_agreement" | "ip_assignment" | "licensing_agreement" | "reseller_agreement" | "partnership_agreement" | "investment_document" | "board_consent" | "procurement_terms" | "agent_delegation_policy" | "agent_service_agreement" | "settlement" | "amendment" | "termination_notice" | "other"[]required
    • data.playbook.jurisdictionstring | null
    • data.playbook.partyRole"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other" | null
    • data.playbook.ownerActorIdstringrequired
    • data.playbook.status"draft" | "active" | "deprecated"required

      Where a playbook sits in its working life.

    • data.playbook.approvedClauseIdsstring[]required
    • data.playbook.blockedClausePatternsstring[]required
    • data.playbook.fallbackPositionsanyrequired
    • data.playbook.escalationRulesanyrequired
    • data.playbook.createdByActorIdstringrequired
    • data.playbook.createdAtstring (date-time)required
    • data.playbook.updatedAtstring (date-time)required
    • data.rulesobject[]
    • data.rules[].[].idstringrequired
    • data.rules[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.rules[].[].scope.organizationIdstringrequired
    • data.rules[].[].scope.workspaceIdstringrequired
    • data.rules[].[].scope.projectIdstring | null
    • data.rules[].[].scope.environmentIdstringrequired
    • data.rules[].[].playbookIdstringrequired
    • data.rules[].[].ordinalinteger (int32)required
    • data.rules[].[].namestringrequired
    • data.rules[].[].conditionanyrequired
    • data.rules[].[].severity"info" | "low" | "medium" | "high" | "critical"required

      How much weight a triggered playbook rule carries.

    • data.rules[].[].requiredAction"none" | "warn" | "redline" | "approval_required" | "counsel_review_required" | "block"required

      What a triggered playbook rule demands. A rule routing to a reviewer must name the reviewer role — the schema refuses one that does not, because a review with no assignee is a pact that stalls.

    • data.rules[].[].reviewerRolestring | null
    • data.rules[].[].messagestringrequired
    • data.rules[].[].createdByActorIdstringrequired
    • data.rules[].[].createdAtstring (date-time)required
    • data.rules[].[].updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/playbooks" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "agreementTypes": []
  }'

Get playbook

GET/v1/pacts/playbooks/{playbook_id}

pacts:readpacts_getPlaybook

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • playbook_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.playbookobject

      A playbook: the positions and rules that govern a class of agreements. fallback_positions and escalation_rules are structured policy data interpreted by the policy engine, not by this service; they are carried as JSON so the engine's grammar can evolve without a schema migration.

    • data.playbook.idstringrequired
    • data.playbook.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.playbook.scope.organizationIdstringrequired
    • data.playbook.scope.workspaceIdstringrequired
    • data.playbook.scope.projectIdstring | null
    • data.playbook.scope.environmentIdstringrequired
    • data.playbook.namestringrequired
    • data.playbook.agreementTypes"msa" | "order_form" | "sow" | "nda" | "dpa" | "baa" | "sla" | "terms_of_service" | "privacy_policy" | "employment_agreement" | "contractor_agreement" | "ip_assignment" | "licensing_agreement" | "reseller_agreement" | "partnership_agreement" | "investment_document" | "board_consent" | "procurement_terms" | "agent_delegation_policy" | "agent_service_agreement" | "settlement" | "amendment" | "termination_notice" | "other"[]required
    • data.playbook.jurisdictionstring | null
    • data.playbook.partyRole"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other" | null
    • data.playbook.ownerActorIdstringrequired
    • data.playbook.status"draft" | "active" | "deprecated"required

      Where a playbook sits in its working life.

    • data.playbook.approvedClauseIdsstring[]required
    • data.playbook.blockedClausePatternsstring[]required
    • data.playbook.fallbackPositionsanyrequired
    • data.playbook.escalationRulesanyrequired
    • data.playbook.createdByActorIdstringrequired
    • data.playbook.createdAtstring (date-time)required
    • data.playbook.updatedAtstring (date-time)required
    • data.rulesobject[]
    • data.rules[].[].idstringrequired
    • data.rules[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.rules[].[].scope.organizationIdstringrequired
    • data.rules[].[].scope.workspaceIdstringrequired
    • data.rules[].[].scope.projectIdstring | null
    • data.rules[].[].scope.environmentIdstringrequired
    • data.rules[].[].playbookIdstringrequired
    • data.rules[].[].ordinalinteger (int32)required
    • data.rules[].[].namestringrequired
    • data.rules[].[].conditionanyrequired
    • data.rules[].[].severity"info" | "low" | "medium" | "high" | "critical"required

      How much weight a triggered playbook rule carries.

    • data.rules[].[].requiredAction"none" | "warn" | "redline" | "approval_required" | "counsel_review_required" | "block"required

      What a triggered playbook rule demands. A rule routing to a reviewer must name the reviewer role — the schema refuses one that does not, because a review with no assignee is a pact that stalls.

    • data.rules[].[].reviewerRolestring | null
    • data.rules[].[].messagestringrequired
    • data.rules[].[].createdByActorIdstringrequired
    • data.rules[].[].createdAtstring (date-time)required
    • data.rules[].[].updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/playbooks/$PLAYBOOK_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Update playbook

PATCH/v1/pacts/playbooks/{playbook_id}

Idempotency-Key requiredPerson onlypacts_updatePlaybook

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Parameters

  • playbook_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • namestring | null
  • agreementTypesarray | null
  • jurisdictionstring | null
  • partyRole"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other" | null
  • ownerActorIdstring | null
  • approvedClauseIdsarray | null
  • blockedClausePatternsarray | null
  • fallbackPositionsany
  • escalationRulesany
  • rulesarray | null

    When present, replaces the rule set: rules with an existing id are updated in place, rules without an id are inserted, and rules absent from the list are removed. Positions are assigned in array order.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.playbookobject

      A playbook: the positions and rules that govern a class of agreements. fallback_positions and escalation_rules are structured policy data interpreted by the policy engine, not by this service; they are carried as JSON so the engine's grammar can evolve without a schema migration.

    • data.playbook.idstringrequired
    • data.playbook.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.playbook.scope.organizationIdstringrequired
    • data.playbook.scope.workspaceIdstringrequired
    • data.playbook.scope.projectIdstring | null
    • data.playbook.scope.environmentIdstringrequired
    • data.playbook.namestringrequired
    • data.playbook.agreementTypes"msa" | "order_form" | "sow" | "nda" | "dpa" | "baa" | "sla" | "terms_of_service" | "privacy_policy" | "employment_agreement" | "contractor_agreement" | "ip_assignment" | "licensing_agreement" | "reseller_agreement" | "partnership_agreement" | "investment_document" | "board_consent" | "procurement_terms" | "agent_delegation_policy" | "agent_service_agreement" | "settlement" | "amendment" | "termination_notice" | "other"[]required
    • data.playbook.jurisdictionstring | null
    • data.playbook.partyRole"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other" | null
    • data.playbook.ownerActorIdstringrequired
    • data.playbook.status"draft" | "active" | "deprecated"required

      Where a playbook sits in its working life.

    • data.playbook.approvedClauseIdsstring[]required
    • data.playbook.blockedClausePatternsstring[]required
    • data.playbook.fallbackPositionsanyrequired
    • data.playbook.escalationRulesanyrequired
    • data.playbook.createdByActorIdstringrequired
    • data.playbook.createdAtstring (date-time)required
    • data.playbook.updatedAtstring (date-time)required
    • data.rulesobject[]
    • data.rules[].[].idstringrequired
    • data.rules[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.rules[].[].scope.organizationIdstringrequired
    • data.rules[].[].scope.workspaceIdstringrequired
    • data.rules[].[].scope.projectIdstring | null
    • data.rules[].[].scope.environmentIdstringrequired
    • data.rules[].[].playbookIdstringrequired
    • data.rules[].[].ordinalinteger (int32)required
    • data.rules[].[].namestringrequired
    • data.rules[].[].conditionanyrequired
    • data.rules[].[].severity"info" | "low" | "medium" | "high" | "critical"required

      How much weight a triggered playbook rule carries.

    • data.rules[].[].requiredAction"none" | "warn" | "redline" | "approval_required" | "counsel_review_required" | "block"required

      What a triggered playbook rule demands. A rule routing to a reviewer must name the reviewer role — the schema refuses one that does not, because a review with no assignee is a pact that stalls.

    • data.rules[].[].reviewerRolestring | null
    • data.rules[].[].messagestringrequired
    • data.rules[].[].createdByActorIdstringrequired
    • data.rules[].[].createdAtstring (date-time)required
    • data.rules[].[].updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/pacts/playbooks/$PLAYBOOK_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Test

Test a proposed clause set against a playbook

POST/v1/pacts/playbooks/{playbook_id}/test

pacts:writeIdempotency-Key requiredpacts_testPlaybook

Scope pacts:read. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Test a proposed clause set against a playbook.

Parameters

  • playbook_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • clauseIdsstring[]required

    The clause ids the draft proposes.

  • agreementType"msa" | "order_form" | "sow" | "nda" | "dpa" | "baa" | "sla" | "terms_of_service" | "privacy_policy" | "employment_agreement" | "contractor_agreement" | "ip_assignment" | "licensing_agreement" | "reseller_agreement" | "partnership_agreement" | "investment_document" | "board_consent" | "procurement_terms" | "agent_delegation_policy" | "agent_service_agreement" | "settlement" | "amendment" | "termination_notice" | "other" | null

    When given, the playbook must cover this agreement type — a playbook that does not cover the type never fires, and testing it against that type is a caller error, not a finding.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      The test report. The evaluation is flattened in: outcome, findings, and fallbacks sit beside the playbook identity.

    • data.playbookIdstringrequired
    • data.playbookStatus"draft" | "active" | "deprecated"required

      Where a playbook sits in its working life.

    • data.clausesEvaluatedintegerrequired
    • data.outcome"pass" | "deviations" | "blocked"required

      The summary verdict.

    • data.findingsobject[]required
    • data.findings[].[].clauseIdstringrequired
    • data.findings[].[].kind"unknown_clause" | "not_approved" | "deprecated" | "blocked" | "outside_approved_set" | "blocked_pattern"required

      Why a cited clause deviates from the playbook.

    • data.findings[].[].messagestringrequired
    • data.fallbacksobject[]required
    • data.fallbacks[].[].clauseIdstringrequired
    • data.fallbacks[].[].suggestedClauseIdsstring[]required
    • data.rulesobject[]required

      The playbook's rules — the governing rule set. Their conditions are evaluated by the policy engine over extracted pact terms, not here.

    • data.rules[].[].idstringrequired
    • data.rules[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.rules[].[].scope.organizationIdstringrequired
    • data.rules[].[].scope.workspaceIdstringrequired
    • data.rules[].[].scope.projectIdstring | null
    • data.rules[].[].scope.environmentIdstringrequired
    • data.rules[].[].playbookIdstringrequired
    • data.rules[].[].ordinalinteger (int32)required
    • data.rules[].[].namestringrequired
    • data.rules[].[].conditionanyrequired
    • data.rules[].[].severity"info" | "low" | "medium" | "high" | "critical"required

      How much weight a triggered playbook rule carries.

    • data.rules[].[].requiredAction"none" | "warn" | "redline" | "approval_required" | "counsel_review_required" | "block"required

      What a triggered playbook rule demands. A rule routing to a reviewer must name the reviewer role — the schema refuses one that does not, because a review with no assignee is a pact that stalls.

    • data.rules[].[].reviewerRolestring | null
    • data.rules[].[].messagestringrequired
    • data.rules[].[].createdByActorIdstringrequired
    • data.rules[].[].createdAtstring (date-time)required
    • data.rules[].[].updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/playbooks/$PLAYBOOK_ID/test" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "clauseIds": []
  }'

Retention policies

List policies

GET/v1/pacts/retention-policies

pacts:readpacts_listPolicies

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • basisquery · "tenant_default" | "matter" | "agreement_type" | "executed_agreement" | "draft" | "ai_output" | "webhook" | "audit" | "evidence_bundle"
  • activequery · boolean

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.policiesobject[]
    • data.policies[].[].idstringrequired
    • data.policies[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.policies[].[].scope.organizationIdstringrequired
    • data.policies[].[].scope.workspaceIdstringrequired
    • data.policies[].[].scope.projectIdstring | null
    • data.policies[].[].scope.environmentIdstringrequired
    • data.policies[].[].namestringrequired
    • data.policies[].[].basis"tenant_default" | "matter" | "agreement_type" | "executed_agreement" | "draft" | "ai_output" | "webhook" | "audit" | "evidence_bundle"required

      What a retention policy attaches to. The basis decides which clock the window runs from: a matter policy ages from closed_at, an executed-agreement policy from execution, a tenant default from whatever the record's own lifecycle provides.

    • data.policies[].[].agreementType"msa" | "order_form" | "sow" | "nda" | "dpa" | "baa" | "sla" | "terms_of_service" | "privacy_policy" | "employment_agreement" | "contractor_agreement" | "ip_assignment" | "licensing_agreement" | "reseller_agreement" | "partnership_agreement" | "investment_document" | "board_consent" | "procurement_terms" | "agent_delegation_policy" | "agent_service_agreement" | "settlement" | "amendment" | "termination_notice" | "other" | null

      Narrows the policy to an agreement type; set only when the basis is AgreementType. The schema enforces the pairing in both directions.

    • data.policies[].[].retentionPeriodDaysinteger | null (int32)

      The window, in days. None only for a policy that retains indefinitely — every destructive action carries a period.

    • data.policies[].[].actionAtExpiry"retain_indefinitely" | "delete" | "anonymize" | "archive_then_delete"required

      What happens when a retention window closes.

    • data.policies[].[].exportBeforeDeletionbooleanrequired

      Whether an export must be produced before anything is destroyed.

    • data.policies[].[].leaveTombstonebooleanrequired

      Whether a tombstone survives deletion, so the absence is recorded rather than the row simply vanishing.

    • data.policies[].[].isActivebooleanrequired
    • data.policies[].[].approvedByActorIdstring | null

      Who signed off on destruction. Present whenever an active destructive policy was armed through the API: the actor who armed it.

    • data.policies[].[].approvedAtstring | null (date-time)
    • data.policies[].[].createdByActorIdstringrequired
    • data.policies[].[].createdAtstring (date-time)required
    • data.policies[].[].updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/retention-policies" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create policy

POST/v1/pacts/retention-policies

Idempotency-Key requiredPerson onlypacts_createPolicy

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Parameters

  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • namestringrequired
  • basis"tenant_default" | "matter" | "agreement_type" | "executed_agreement" | "draft" | "ai_output" | "webhook" | "audit" | "evidence_bundle"required

    What a retention policy attaches to. The basis decides which clock the window runs from: a matter policy ages from closed_at, an executed-agreement policy from execution, a tenant default from whatever the record's own lifecycle provides.

  • agreementType"msa" | "order_form" | "sow" | "nda" | "dpa" | "baa" | "sla" | "terms_of_service" | "privacy_policy" | "employment_agreement" | "contractor_agreement" | "ip_assignment" | "licensing_agreement" | "reseller_agreement" | "partnership_agreement" | "investment_document" | "board_consent" | "procurement_terms" | "agent_delegation_policy" | "agent_service_agreement" | "settlement" | "amendment" | "termination_notice" | "other" | null

    Narrows the policy to an agreement type; legal only when the basis is agreement_type. The schema enforces the pairing in both directions.

  • retentionPeriodDaysinteger | null (int32)

    The window in days. Required unless the action retains indefinitely — the schema refuses destruction without a schedule.

  • actionAtExpiry"retain_indefinitely" | "delete" | "anonymize" | "archive_then_delete"required

    What happens when a retention window closes.

  • exportBeforeDeletionboolean | null
  • leaveTombstoneboolean | null
  • isActiveboolean | null

    Defaults to active. An active destructive policy is signed off at the write: the caller is recorded as its approver.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A retention policy: how long a class of record is kept, and what happens when the window closes. Two rules carry the weight, both enforced in the schema. Destruction is scheduled, or it is not a policy. Anything that destroys data needs a period (pacts_retention_destructive_needs_period) — "delete, at some point" is not a policy anyone can audit. An active destructive policy is signed off. pacts_retention_active_destruction_is_approved refuses an active destructive policy that names no approver — automated destruction of legal records on an unapproved policy is the failure that prevents.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.namestringrequired
    • data.basis"tenant_default" | "matter" | "agreement_type" | "executed_agreement" | "draft" | "ai_output" | "webhook" | "audit" | "evidence_bundle"required

      What a retention policy attaches to. The basis decides which clock the window runs from: a matter policy ages from closed_at, an executed-agreement policy from execution, a tenant default from whatever the record's own lifecycle provides.

    • data.agreementType"msa" | "order_form" | "sow" | "nda" | "dpa" | "baa" | "sla" | "terms_of_service" | "privacy_policy" | "employment_agreement" | "contractor_agreement" | "ip_assignment" | "licensing_agreement" | "reseller_agreement" | "partnership_agreement" | "investment_document" | "board_consent" | "procurement_terms" | "agent_delegation_policy" | "agent_service_agreement" | "settlement" | "amendment" | "termination_notice" | "other" | null

      Narrows the policy to an agreement type; set only when the basis is AgreementType. The schema enforces the pairing in both directions.

    • data.retentionPeriodDaysinteger | null (int32)

      The window, in days. None only for a policy that retains indefinitely — every destructive action carries a period.

    • data.actionAtExpiry"retain_indefinitely" | "delete" | "anonymize" | "archive_then_delete"required

      What happens when a retention window closes.

    • data.exportBeforeDeletionbooleanrequired

      Whether an export must be produced before anything is destroyed.

    • data.leaveTombstonebooleanrequired

      Whether a tombstone survives deletion, so the absence is recorded rather than the row simply vanishing.

    • data.isActivebooleanrequired
    • data.approvedByActorIdstring | null

      Who signed off on destruction. Present whenever an active destructive policy was armed through the API: the actor who armed it.

    • data.approvedAtstring | null (date-time)
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/retention-policies" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "basis": "tenant_default",
    "actionAtExpiry": "retain_indefinitely"
  }'

Get policy

GET/v1/pacts/retention-policies/{policy_id}

pacts:readpacts_getPolicy

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • policy_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A retention policy: how long a class of record is kept, and what happens when the window closes. Two rules carry the weight, both enforced in the schema. Destruction is scheduled, or it is not a policy. Anything that destroys data needs a period (pacts_retention_destructive_needs_period) — "delete, at some point" is not a policy anyone can audit. An active destructive policy is signed off. pacts_retention_active_destruction_is_approved refuses an active destructive policy that names no approver — automated destruction of legal records on an unapproved policy is the failure that prevents.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.namestringrequired
    • data.basis"tenant_default" | "matter" | "agreement_type" | "executed_agreement" | "draft" | "ai_output" | "webhook" | "audit" | "evidence_bundle"required

      What a retention policy attaches to. The basis decides which clock the window runs from: a matter policy ages from closed_at, an executed-agreement policy from execution, a tenant default from whatever the record's own lifecycle provides.

    • data.agreementType"msa" | "order_form" | "sow" | "nda" | "dpa" | "baa" | "sla" | "terms_of_service" | "privacy_policy" | "employment_agreement" | "contractor_agreement" | "ip_assignment" | "licensing_agreement" | "reseller_agreement" | "partnership_agreement" | "investment_document" | "board_consent" | "procurement_terms" | "agent_delegation_policy" | "agent_service_agreement" | "settlement" | "amendment" | "termination_notice" | "other" | null

      Narrows the policy to an agreement type; set only when the basis is AgreementType. The schema enforces the pairing in both directions.

    • data.retentionPeriodDaysinteger | null (int32)

      The window, in days. None only for a policy that retains indefinitely — every destructive action carries a period.

    • data.actionAtExpiry"retain_indefinitely" | "delete" | "anonymize" | "archive_then_delete"required

      What happens when a retention window closes.

    • data.exportBeforeDeletionbooleanrequired

      Whether an export must be produced before anything is destroyed.

    • data.leaveTombstonebooleanrequired

      Whether a tombstone survives deletion, so the absence is recorded rather than the row simply vanishing.

    • data.isActivebooleanrequired
    • data.approvedByActorIdstring | null

      Who signed off on destruction. Present whenever an active destructive policy was armed through the API: the actor who armed it.

    • data.approvedAtstring | null (date-time)
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/retention-policies/$POLICY_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Update policy

PATCH/v1/pacts/retention-policies/{policy_id}

Idempotency-Key requiredPerson onlypacts_updatePolicy

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Parameters

  • policy_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • namestring | null
  • basis"tenant_default" | "matter" | "agreement_type" | "executed_agreement" | "draft" | "ai_output" | "webhook" | "audit" | "evidence_bundle" | null
  • agreementType"msa" | "order_form" | "sow" | "nda" | "dpa" | "baa" | "sla" | "terms_of_service" | "privacy_policy" | "employment_agreement" | "contractor_agreement" | "ip_assignment" | "licensing_agreement" | "reseller_agreement" | "partnership_agreement" | "investment_document" | "board_consent" | "procurement_terms" | "agent_delegation_policy" | "agent_service_agreement" | "settlement" | "amendment" | "termination_notice" | "other" | null

    null clears the type — legal only when the basis is not (or is being moved off) agreement_type; the schema enforces the pairing.

  • retentionPeriodDaysinteger | null (int32)

    null clears the period — legal only for retain-indefinitely; the schema refuses to leave destruction unscheduled.

  • actionAtExpiry"retain_indefinitely" | "delete" | "anonymize" | "archive_then_delete" | null
  • exportBeforeDeletionboolean | null
  • leaveTombstoneboolean | null
  • isActiveboolean | null

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A retention policy: how long a class of record is kept, and what happens when the window closes. Two rules carry the weight, both enforced in the schema. Destruction is scheduled, or it is not a policy. Anything that destroys data needs a period (pacts_retention_destructive_needs_period) — "delete, at some point" is not a policy anyone can audit. An active destructive policy is signed off. pacts_retention_active_destruction_is_approved refuses an active destructive policy that names no approver — automated destruction of legal records on an unapproved policy is the failure that prevents.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.namestringrequired
    • data.basis"tenant_default" | "matter" | "agreement_type" | "executed_agreement" | "draft" | "ai_output" | "webhook" | "audit" | "evidence_bundle"required

      What a retention policy attaches to. The basis decides which clock the window runs from: a matter policy ages from closed_at, an executed-agreement policy from execution, a tenant default from whatever the record's own lifecycle provides.

    • data.agreementType"msa" | "order_form" | "sow" | "nda" | "dpa" | "baa" | "sla" | "terms_of_service" | "privacy_policy" | "employment_agreement" | "contractor_agreement" | "ip_assignment" | "licensing_agreement" | "reseller_agreement" | "partnership_agreement" | "investment_document" | "board_consent" | "procurement_terms" | "agent_delegation_policy" | "agent_service_agreement" | "settlement" | "amendment" | "termination_notice" | "other" | null

      Narrows the policy to an agreement type; set only when the basis is AgreementType. The schema enforces the pairing in both directions.

    • data.retentionPeriodDaysinteger | null (int32)

      The window, in days. None only for a policy that retains indefinitely — every destructive action carries a period.

    • data.actionAtExpiry"retain_indefinitely" | "delete" | "anonymize" | "archive_then_delete"required

      What happens when a retention window closes.

    • data.exportBeforeDeletionbooleanrequired

      Whether an export must be produced before anything is destroyed.

    • data.leaveTombstonebooleanrequired

      Whether a tombstone survives deletion, so the absence is recorded rather than the row simply vanishing.

    • data.isActivebooleanrequired
    • data.approvedByActorIdstring | null

      Who signed off on destruction. Present whenever an active destructive policy was armed through the API: the actor who armed it.

    • data.approvedAtstring | null (date-time)
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/pacts/retention-policies/$POLICY_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Session

The caller's own resolved scope (who am I)

GET/v1/pacts/session

pacts:readpacts_getSession

Any verified identity (no Pacts scope). A delegated principal (One acting for a person in a company) may call it.

Echo the caller's own resolved scope.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.actorIdstring
    • data.organizationIdstring
    • data.workspaceIdstring
    • data.projectIdstring
    • data.environmentIdstring
    • data.environmentClassany
    • data.permitsProductionLegalEffectany
    • data.requestIdstring
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/session" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Ceremony

Open a ceremony session for a signer on a package

POST/v1/pacts/signature-packages/{package_id}/ceremony

pacts:writeIdempotency-Key requiredpacts_openCeremony

Scope pacts:sign at Pacts (exact: pacts:write never implies it); the gateway also requires pacts:write on this route. A delegated principal (One acting for a person in a company) may call it. Idempotency-Key is required.

Open a ceremony session for a signer on a package.

Parameters

  • package_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • signerActorIdstringrequired
  • ipAddressHashstring | null
  • userAgentHashstring | null

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A signing ceremony session: one signer's act of signing one package. The ceremony produces the evidence a signature's flags assert. Before this, intent_captured, consent_captured, and signer_authenticated were booleans the caller set. Here they are read from the session's recorded evidence — a signature cannot claim a ceremony the session did not record.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.signaturePackageIdstringrequired
    • data.signerActorIdstringrequired
    • data.sealedContentHashstringrequired

      The sealed hash the ceremony ran against. A signature can only draw on a session whose hash matches the package's current sealed hash.

    • data.status"open" | "completed" | "abandoned" | "expired"required

      The state of a ceremony session.

    • data.disclosureShownAtstring | null (date-time)
    • data.consentGivenAtstring | null (date-time)
    • data.authenticatedAtstring | null (date-time)
    • data.authenticationMethodstring | null
    • data.intentToSignAtstring | null (date-time)
    • data.ipAddressHashstring | null
    • data.userAgentHashstring | null
    • data.expiresAtstring (date-time)required
    • data.createdAtstring (date-time)required
    • data.completedAtstring | null (date-time)
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/signature-packages/$PACKAGE_ID/ceremony" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "signerActorId": "string"
  }'

Certificate

Get a signature package's completion certificate

GET/v1/pacts/signature-packages/{package_id}/certificate

pacts:readpacts_getCertificate

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • package_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.packageIdstring
    • data.statusany
    • data.certificateRefany
    • data.certificateSha256any
    • data.certificateany
    • data.offlineVerificationPassedboolean
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/signature-packages/$PACKAGE_ID/certificate" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Send

Seal the package to the version's current hash and mark it sent

POST/v1/pacts/signature-packages/{package_id}/send

pacts:writeIdempotency-Key requiredpacts_sendPackage

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Seal the package to the version's current hash and mark it sent.

Parameters

  • package_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

A JSON object; see the description above.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A signature package: the sealed envelope signers are asked to agree to. The package is sealed to a digest when it leaves draft. Every signature is checked against that digest, and the digest is checked against the version's current hash — so an edit between sending and signing is caught from either direction.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.pactIdstringrequired
    • data.versionIdstringrequired
    • data.provider"pacts_native" | "docusign" | "adobe_sign" | "hellosign" | "qualified_trust_service" | "external"required

      Who is providing the signing service.

    • data.signatureLevel"test_signature" | "electronic" | "advanced_electronic" | "qualified_electronic" | "electronic_seal" | "agent_signature"required

      The assurance level of a signature. Ordered weakest to strongest, with test_signature deliberately outside the ordering: it is not a weak signature, it is not a signature at all. Every level above it requires the full ceremony (intent, consent, authentication) and exists only in production.

    • data.status"draft" | "sent" | "viewed" | "partially_signed" | "completed" | "declined" | "voided" | "expired"required

      The lifecycle of a signature package.

    • data.orderedSigningbooleanrequired
    • data.sealedContentHashstring | null
    • data.sealedAtstring | null (date-time)
    • data.completionCertificateRefstring | null
    • data.completionCertificateSha256string | null
    • data.declineReasonstring | null
    • data.voidReasonstring | null
    • data.expiresAtstring | null (date-time)
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • data.completedAtstring | null (date-time)
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/signature-packages/$PACKAGE_ID/send" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '"string"'

Sign

Record a signature

POST/v1/pacts/signature-packages/{package_id}/sign

pacts:signIdempotency-Key requiredpacts_signPackage

Scope pacts:sign (exact: pacts:write never implies it). A delegated principal (One acting for a person in a company) may call it. Idempotency-Key is required.

Record a signature.

Parameters

  • package_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • signerActorIdstringrequired

    The signer. Resolved from the invitation list, re-checked here.

  • representedPartyIdstringrequired
  • authorityGrantIdstringrequired
  • intentCapturedboolean | null

    Ceremony evidence. A real level requires all three.

  • consentCapturedboolean | null
  • signerAuthenticatedboolean | null
  • authenticationMethodstring | null
  • signatureValueRefstring | null

    Cryptographic material from the signing key. The crypto workstream produces real signature values; until then this names the key and algorithm so verification does not have to guess.

  • signatureAlgorithmstring | null
  • signingKeyIdstring | null
  • authorityOrgIdstring | null

    The Auto org this signature is for (a company One runs). Forwarded to Auto's sign check; a chartered tenant refuses a check without it.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.signatureany
    • data.packageStatusany
    • data.completedPackageany
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/signature-packages/$PACKAGE_ID/sign" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "signerActorId": "string",
    "representedPartyId": "string",
    "authorityGrantId": "string"
  }'

Usage

List usage

GET/v1/pacts/usage

pacts:readpacts_listUsage

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • resourceTypequery · "pact" | "document_page" | "ai_run" | "signature_package" | "signature" | "obligation" | "evidence_bundle" | "storage" | "api_call" | "mcp_tool_call" | "webhook_delivery"
  • resourceIdquery · string
  • fromquery · string (date-time)
  • toquery · string (date-time)
  • limitquery · integer (int64)

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.usageobject[]
    • data.usage[].[].idstringrequired
    • data.usage[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.usage[].[].scope.organizationIdstringrequired
    • data.usage[].[].scope.workspaceIdstringrequired
    • data.usage[].[].scope.projectIdstring | null
    • data.usage[].[].scope.environmentIdstringrequired
    • data.usage[].[].accountIdstringrequired

      The billing account the event is attributed to: the organization Garden invoices for this usage.

    • data.usage[].[].subjectIdstringrequired

      The actor whose action produced the usage.

    • data.usage[].[].resourceType"pact" | "document_page" | "ai_run" | "signature_package" | "signature" | "obligation" | "evidence_bundle" | "storage" | "api_call" | "mcp_tool_call" | "webhook_delivery"required

      The resource a usage event meters, per SPEC.md's billing section.

    • data.usage[].[].resourceIdstringrequired

      The metered record's id — the signature, the AI run, the document. Together with occurred_at it is the idempotency identity: a retried action re-emits the same identity and the schema refuses the duplicate.

    • data.usage[].[].quantityanyrequired

      The metered amount. Exact decimal end to end: NUMERIC in the row, [rust_decimal::Decimal] here, a JSON number on the wire.

    • data.usage[].[].unitstringrequired

      What quantity counts in: signature, token, byte, and the like.

    • data.usage[].[].metadataanyrequired

      Attribution detail the meter alone does not carry — the model that ran, the package a signature belongs to, the digest of the uploaded bytes. References and measurements only, never privileged content.

    • data.usage[].[].reportedAtstring | null (date-time)

      Set when Garden accepted the event; None means the reporter still owes the call. The schema keeps the two reporting columns in lockstep.

    • data.usage[].[].gardenEventIdstring | null

      Garden's own id for the accepted event (ue_...), the cross-system handle a billing dispute is resolved with.

    • data.usage[].[].occurredAtstring (date-time)required

      When the metered action happened — the action's own timestamp, not the emission's, so a re-emission collides on the uniqueness backstop instead of billing twice.

    • data.usage[].[].createdAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/usage" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

The billing and usage snapshot: totals per (resource type, unit) with the events behind each and the count the reporter has not drained yet

GET/v1/pacts/usage/summary

pacts:readpacts_summarizeUsage

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

The billing and usage snapshot: totals per (resource type, unit) with the events behind each and the count the reporter has not drained yet.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.summaryany
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/usage/summary" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Webhook deliveries

Deliveries across the scope, newest first

GET/v1/pacts/webhook-deliveries

pacts:readpacts_listDeliveries

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Deliveries across the scope, newest first. ?status=dead_lettered is the dead-letter queue read: everything the retry budget gave up on, waiting for an operator.

Parameters

  • endpointIdquery · string
  • statusquery · string

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.deliveriesobject[]
    • data.deliveries[].[].idstringrequired
    • data.deliveries[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.deliveries[].[].scope.organizationIdstringrequired
    • data.deliveries[].[].scope.workspaceIdstringrequired
    • data.deliveries[].[].scope.projectIdstring | null
    • data.deliveries[].[].scope.environmentIdstringrequired
    • data.deliveries[].[].endpointIdstringrequired
    • data.deliveries[].[].eventIdstringrequired

      The logical event this delivery carries. Shared across every endpoint the event fanned out to — (endpoint_id, event_id) is the unique key, so a retried fan-out cannot deliver the same event twice to one receiver.

    • data.deliveries[].[].eventType"PactCreated" | "PactUpdated" | "PactExecuted" | "PactExpired" | "PactTerminated" | "DocumentUploaded" | "VersionCreated" | "ReviewRequested" | "ReviewCompleted" | "ApprovalRequested" | "ApprovalApproved" | "ApprovalRejected" | "SignatureSent" | "SignatureCompleted" | "SignatureDeclined" | "ObligationCreated" | "ObligationDueSoon" | "ObligationOverdue" | "ObligationCompleted" | "EvidenceBundleCreated" | "LegalHoldCreated" | "LegalHoldReleased" | "AgentActionTaken"required

      The events a webhook endpoint may subscribe to. SPEC.md's "Webhooks" section publishes this vocabulary verbatim — pact.created, obligation.due_soon, and their twenty-one siblings — and a subscription is customer-facing configuration, so the wire label and the stored label are the spec's dotted string, not a snake_case variant name. (Every other vocabulary here serializes snake_case because its SQL label is snake_case; this one's is not, so it carries its own serde rather than the vocabulary! macro's.) The set is closed: a twenty-fourth deliverable event is a spec change, and an unknown label is refused at the boundary rather than stored to silently match nothing.

    • data.deliveries[].[].payloadanyrequired

      The CloudEvents envelope, exactly as sent. References and statuses only: SPEC.md bars privileged document content from deliveries by default, so the payload names what happened and where the record lives, never the paper itself.

    • data.deliveries[].[].payloadSha256stringrequired
    • data.deliveries[].[].status"pending" | "in_flight" | "delivered" | "failed" | "dead_lettered" | "cancelled"required

      Where one event's delivery to one endpoint sits. Failed is retryable — the schema requires next_attempt_at on it, because an unscheduled retry is a delivery that silently never happens. DeadLettered is the end of the retry budget: the delivery leaves the ladder and waits for an operator to redeliver it.

    • data.deliveries[].[].attemptCountinteger (int32)required
    • data.deliveries[].[].nextAttemptAtstring | null (date-time)
    • data.deliveries[].[].responseStatusCodeinteger | null (int32)
    • data.deliveries[].[].responseBodyExcerptstring | null
    • data.deliveries[].[].errorMessagestring | null
    • data.deliveries[].[].firstAttemptedAtstring | null (date-time)
    • data.deliveries[].[].deliveredAtstring | null (date-time)
    • data.deliveries[].[].deadLetteredAtstring | null (date-time)
    • data.deliveries[].[].createdAtstring (date-time)required
    • data.deliveries[].[].updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/webhook-deliveries" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Get delivery

GET/v1/pacts/webhook-deliveries/{delivery_id}

pacts:readpacts_getDelivery

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • delivery_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      One event's delivery to one endpoint: the durable record behind the signed POST, its attempts, and — when the retry budget runs out — its dead-letter entry. The row carries the exact payload that was (or will be) sent and its SHA-256, so "what did we tell them" is answerable byte-for-byte months later. There is no separate attempts table: the schema folds the latest attempt's outcome onto the row (attempt_count, response_status_code, error_message), and the audit trail carries each transition.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.endpointIdstringrequired
    • data.eventIdstringrequired

      The logical event this delivery carries. Shared across every endpoint the event fanned out to — (endpoint_id, event_id) is the unique key, so a retried fan-out cannot deliver the same event twice to one receiver.

    • data.eventType"PactCreated" | "PactUpdated" | "PactExecuted" | "PactExpired" | "PactTerminated" | "DocumentUploaded" | "VersionCreated" | "ReviewRequested" | "ReviewCompleted" | "ApprovalRequested" | "ApprovalApproved" | "ApprovalRejected" | "SignatureSent" | "SignatureCompleted" | "SignatureDeclined" | "ObligationCreated" | "ObligationDueSoon" | "ObligationOverdue" | "ObligationCompleted" | "EvidenceBundleCreated" | "LegalHoldCreated" | "LegalHoldReleased" | "AgentActionTaken"required

      The events a webhook endpoint may subscribe to. SPEC.md's "Webhooks" section publishes this vocabulary verbatim — pact.created, obligation.due_soon, and their twenty-one siblings — and a subscription is customer-facing configuration, so the wire label and the stored label are the spec's dotted string, not a snake_case variant name. (Every other vocabulary here serializes snake_case because its SQL label is snake_case; this one's is not, so it carries its own serde rather than the vocabulary! macro's.) The set is closed: a twenty-fourth deliverable event is a spec change, and an unknown label is refused at the boundary rather than stored to silently match nothing.

    • data.payloadanyrequired

      The CloudEvents envelope, exactly as sent. References and statuses only: SPEC.md bars privileged document content from deliveries by default, so the payload names what happened and where the record lives, never the paper itself.

    • data.payloadSha256stringrequired
    • data.status"pending" | "in_flight" | "delivered" | "failed" | "dead_lettered" | "cancelled"required

      Where one event's delivery to one endpoint sits. Failed is retryable — the schema requires next_attempt_at on it, because an unscheduled retry is a delivery that silently never happens. DeadLettered is the end of the retry budget: the delivery leaves the ladder and waits for an operator to redeliver it.

    • data.attemptCountinteger (int32)required
    • data.nextAttemptAtstring | null (date-time)
    • data.responseStatusCodeinteger | null (int32)
    • data.responseBodyExcerptstring | null
    • data.errorMessagestring | null
    • data.firstAttemptedAtstring | null (date-time)
    • data.deliveredAtstring | null (date-time)
    • data.deadLetteredAtstring | null (date-time)
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/webhook-deliveries/$DELIVERY_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Redeliver

Put a dead-lettered delivery back on the ladder: `pending`, a fresh retry budget, due now

POST/v1/pacts/webhook-deliveries/{delivery_id}/redeliver

Idempotency-Key requiredPerson onlypacts_redeliverDelivery

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Put a dead-lettered delivery back on the ladder: pending, a fresh retry budget, due now. Only the dead-letter queue is redeliverable — a delivered delivery is history, and a live one is already moving.

Parameters

  • delivery_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

A JSON object; see the description above.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      One event's delivery to one endpoint: the durable record behind the signed POST, its attempts, and — when the retry budget runs out — its dead-letter entry. The row carries the exact payload that was (or will be) sent and its SHA-256, so "what did we tell them" is answerable byte-for-byte months later. There is no separate attempts table: the schema folds the latest attempt's outcome onto the row (attempt_count, response_status_code, error_message), and the audit trail carries each transition.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.endpointIdstringrequired
    • data.eventIdstringrequired

      The logical event this delivery carries. Shared across every endpoint the event fanned out to — (endpoint_id, event_id) is the unique key, so a retried fan-out cannot deliver the same event twice to one receiver.

    • data.eventType"PactCreated" | "PactUpdated" | "PactExecuted" | "PactExpired" | "PactTerminated" | "DocumentUploaded" | "VersionCreated" | "ReviewRequested" | "ReviewCompleted" | "ApprovalRequested" | "ApprovalApproved" | "ApprovalRejected" | "SignatureSent" | "SignatureCompleted" | "SignatureDeclined" | "ObligationCreated" | "ObligationDueSoon" | "ObligationOverdue" | "ObligationCompleted" | "EvidenceBundleCreated" | "LegalHoldCreated" | "LegalHoldReleased" | "AgentActionTaken"required

      The events a webhook endpoint may subscribe to. SPEC.md's "Webhooks" section publishes this vocabulary verbatim — pact.created, obligation.due_soon, and their twenty-one siblings — and a subscription is customer-facing configuration, so the wire label and the stored label are the spec's dotted string, not a snake_case variant name. (Every other vocabulary here serializes snake_case because its SQL label is snake_case; this one's is not, so it carries its own serde rather than the vocabulary! macro's.) The set is closed: a twenty-fourth deliverable event is a spec change, and an unknown label is refused at the boundary rather than stored to silently match nothing.

    • data.payloadanyrequired

      The CloudEvents envelope, exactly as sent. References and statuses only: SPEC.md bars privileged document content from deliveries by default, so the payload names what happened and where the record lives, never the paper itself.

    • data.payloadSha256stringrequired
    • data.status"pending" | "in_flight" | "delivered" | "failed" | "dead_lettered" | "cancelled"required

      Where one event's delivery to one endpoint sits. Failed is retryable — the schema requires next_attempt_at on it, because an unscheduled retry is a delivery that silently never happens. DeadLettered is the end of the retry budget: the delivery leaves the ladder and waits for an operator to redeliver it.

    • data.attemptCountinteger (int32)required
    • data.nextAttemptAtstring | null (date-time)
    • data.responseStatusCodeinteger | null (int32)
    • data.responseBodyExcerptstring | null
    • data.errorMessagestring | null
    • data.firstAttemptedAtstring | null (date-time)
    • data.deliveredAtstring | null (date-time)
    • data.deadLetteredAtstring | null (date-time)
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/webhook-deliveries/$DELIVERY_ID/redeliver" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '"string"'

Webhook endpoints

List endpoints

GET/v1/pacts/webhook-endpoints

pacts:readpacts_listEndpoints

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • statusquery · string

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.endpointsobject[]
    • data.endpoints[].[].idstringrequired
    • data.endpoints[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.endpoints[].[].scope.organizationIdstringrequired
    • data.endpoints[].[].scope.workspaceIdstringrequired
    • data.endpoints[].[].scope.projectIdstring | null
    • data.endpoints[].[].scope.environmentIdstringrequired
    • data.endpoints[].[].urlstringrequired
    • data.endpoints[].[].descriptionstring | null
    • data.endpoints[].[].eventTypes"PactCreated" | "PactUpdated" | "PactExecuted" | "PactExpired" | "PactTerminated" | "DocumentUploaded" | "VersionCreated" | "ReviewRequested" | "ReviewCompleted" | "ApprovalRequested" | "ApprovalApproved" | "ApprovalRejected" | "SignatureSent" | "SignatureCompleted" | "SignatureDeclined" | "ObligationCreated" | "ObligationDueSoon" | "ObligationOverdue" | "ObligationCompleted" | "EvidenceBundleCreated" | "LegalHoldCreated" | "LegalHoldReleased" | "AgentActionTaken"[]required
    • data.endpoints[].[].status"active" | "paused" | "failing" | "disabled"required

      Where a webhook endpoint sits. Failing is a health signal, not an off switch: the endpoint keeps receiving deliveries while its consecutive-failure count is over the threshold, because the alternative — stopping delivery when a receiver is already broken — hides the events it needs to catch up on. Paused and Disabled are the operator's off switches; only Disabled needs a reason (the schema refuses an unexplained one), because disabling is the state a dispute review asks about.

    • data.endpoints[].[].signingSecretRefstringrequired
    • data.endpoints[].[].signatureAlgorithmstringrequired
    • data.endpoints[].[].maxAttemptsinteger (int32)required
    • data.endpoints[].[].consecutiveFailuresinteger (int32)required
    • data.endpoints[].[].lastSuccessAtstring | null (date-time)
    • data.endpoints[].[].lastFailureAtstring | null (date-time)
    • data.endpoints[].[].disabledReasonstring | null
    • data.endpoints[].[].createdByActorIdstringrequired
    • data.endpoints[].[].createdAtstring (date-time)required
    • data.endpoints[].[].updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/webhook-endpoints" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Register an endpoint: validate, provision the signing secret through the plane, then write the row and its audit event in one transaction

POST/v1/pacts/webhook-endpoints

Idempotency-Key requiredPerson onlypacts_createEndpoint

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Register an endpoint: validate, provision the signing secret through the plane, then write the row and its audit event in one transaction.

Parameters

  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • urlstringrequired

    The receiver's URL. TLS-only — the schema refuses cleartext, and so does this handler, because legal events do not travel unencrypted.

  • descriptionstring | null
  • eventTypesstring[]required

    The SPEC subscription labels this endpoint receives. Non-empty, each known, none repeated.

  • maxAttemptsinteger | null (int32)

    The retry budget. Defaults to the schema's 8; must allow at least one attempt.

  • signatureAlgorithmstring | null

    Only hmac-sha256 is produced by this build. Asymmetric signing is a spec change, not a config value.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A webhook endpoint: a receiver's URL, its subscribed events, and the custody reference its deliveries are signed with. signing_secret_ref names where the signing secret lives — a secrets plane reference, never the secret itself. A webhook secret in a database column is a secret in every backup, and it is the only thing standing between a receiver and a forged legal event.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.urlstringrequired
    • data.descriptionstring | null
    • data.eventTypes"PactCreated" | "PactUpdated" | "PactExecuted" | "PactExpired" | "PactTerminated" | "DocumentUploaded" | "VersionCreated" | "ReviewRequested" | "ReviewCompleted" | "ApprovalRequested" | "ApprovalApproved" | "ApprovalRejected" | "SignatureSent" | "SignatureCompleted" | "SignatureDeclined" | "ObligationCreated" | "ObligationDueSoon" | "ObligationOverdue" | "ObligationCompleted" | "EvidenceBundleCreated" | "LegalHoldCreated" | "LegalHoldReleased" | "AgentActionTaken"[]required
    • data.status"active" | "paused" | "failing" | "disabled"required

      Where a webhook endpoint sits. Failing is a health signal, not an off switch: the endpoint keeps receiving deliveries while its consecutive-failure count is over the threshold, because the alternative — stopping delivery when a receiver is already broken — hides the events it needs to catch up on. Paused and Disabled are the operator's off switches; only Disabled needs a reason (the schema refuses an unexplained one), because disabling is the state a dispute review asks about.

    • data.signingSecretRefstringrequired
    • data.signatureAlgorithmstringrequired
    • data.maxAttemptsinteger (int32)required
    • data.consecutiveFailuresinteger (int32)required
    • data.lastSuccessAtstring | null (date-time)
    • data.lastFailureAtstring | null (date-time)
    • data.disabledReasonstring | null
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/webhook-endpoints" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "string",
    "eventTypes": []
  }'

Get endpoint

GET/v1/pacts/webhook-endpoints/{endpoint_id}

pacts:readpacts_getEndpoint

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Parameters

  • endpoint_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.endpointany
    • data.recentDeliveriesany
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/webhook-endpoints/$ENDPOINT_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Soft-delete an endpoint

DELETE/v1/pacts/webhook-endpoints/{endpoint_id}

Idempotency-Key requiredPerson onlypacts_deleteEndpoint

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Soft-delete an endpoint. Its deliveries stay: they are the record of what was sent, and deleting the receiver does not erase the sending.

Parameters

  • endpoint_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.idany
    • data.deletedboolean
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/pacts/webhook-endpoints/$ENDPOINT_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY"

Amend an endpoint's fields, or pause/resume it

PATCH/v1/pacts/webhook-endpoints/{endpoint_id}

Idempotency-Key requiredPerson onlypacts_updateEndpoint

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Amend an endpoint's fields, or pause/resume it.

Parameters

  • endpoint_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • urlstring | null
  • descriptionstring | null

    null clears the description.

  • eventTypesarray | null
  • maxAttemptsinteger | null (int32)
  • statusstring | null

    The operator moves: active and paused. Disabling goes through the disable route (it demands the reason); failing is computed from delivery outcomes and is never set by hand.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A webhook endpoint: a receiver's URL, its subscribed events, and the custody reference its deliveries are signed with. signing_secret_ref names where the signing secret lives — a secrets plane reference, never the secret itself. A webhook secret in a database column is a secret in every backup, and it is the only thing standing between a receiver and a forged legal event.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.urlstringrequired
    • data.descriptionstring | null
    • data.eventTypes"PactCreated" | "PactUpdated" | "PactExecuted" | "PactExpired" | "PactTerminated" | "DocumentUploaded" | "VersionCreated" | "ReviewRequested" | "ReviewCompleted" | "ApprovalRequested" | "ApprovalApproved" | "ApprovalRejected" | "SignatureSent" | "SignatureCompleted" | "SignatureDeclined" | "ObligationCreated" | "ObligationDueSoon" | "ObligationOverdue" | "ObligationCompleted" | "EvidenceBundleCreated" | "LegalHoldCreated" | "LegalHoldReleased" | "AgentActionTaken"[]required
    • data.status"active" | "paused" | "failing" | "disabled"required

      Where a webhook endpoint sits. Failing is a health signal, not an off switch: the endpoint keeps receiving deliveries while its consecutive-failure count is over the threshold, because the alternative — stopping delivery when a receiver is already broken — hides the events it needs to catch up on. Paused and Disabled are the operator's off switches; only Disabled needs a reason (the schema refuses an unexplained one), because disabling is the state a dispute review asks about.

    • data.signingSecretRefstringrequired
    • data.signatureAlgorithmstringrequired
    • data.maxAttemptsinteger (int32)required
    • data.consecutiveFailuresinteger (int32)required
    • data.lastSuccessAtstring | null (date-time)
    • data.lastFailureAtstring | null (date-time)
    • data.disabledReasonstring | null
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/pacts/webhook-endpoints/$ENDPOINT_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Deliveries

One endpoint's delivery history, newest first

GET/v1/pacts/webhook-endpoints/{endpoint_id}/deliveries

pacts:readpacts_listEndpointDeliveries

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

One endpoint's delivery history, newest first.

Parameters

  • endpoint_idpath · stringrequired
  • endpointIdquery · string
  • statusquery · string

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.deliveriesobject[]
    • data.deliveries[].[].idstringrequired
    • data.deliveries[].[].scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.deliveries[].[].scope.organizationIdstringrequired
    • data.deliveries[].[].scope.workspaceIdstringrequired
    • data.deliveries[].[].scope.projectIdstring | null
    • data.deliveries[].[].scope.environmentIdstringrequired
    • data.deliveries[].[].endpointIdstringrequired
    • data.deliveries[].[].eventIdstringrequired

      The logical event this delivery carries. Shared across every endpoint the event fanned out to — (endpoint_id, event_id) is the unique key, so a retried fan-out cannot deliver the same event twice to one receiver.

    • data.deliveries[].[].eventType"PactCreated" | "PactUpdated" | "PactExecuted" | "PactExpired" | "PactTerminated" | "DocumentUploaded" | "VersionCreated" | "ReviewRequested" | "ReviewCompleted" | "ApprovalRequested" | "ApprovalApproved" | "ApprovalRejected" | "SignatureSent" | "SignatureCompleted" | "SignatureDeclined" | "ObligationCreated" | "ObligationDueSoon" | "ObligationOverdue" | "ObligationCompleted" | "EvidenceBundleCreated" | "LegalHoldCreated" | "LegalHoldReleased" | "AgentActionTaken"required

      The events a webhook endpoint may subscribe to. SPEC.md's "Webhooks" section publishes this vocabulary verbatim — pact.created, obligation.due_soon, and their twenty-one siblings — and a subscription is customer-facing configuration, so the wire label and the stored label are the spec's dotted string, not a snake_case variant name. (Every other vocabulary here serializes snake_case because its SQL label is snake_case; this one's is not, so it carries its own serde rather than the vocabulary! macro's.) The set is closed: a twenty-fourth deliverable event is a spec change, and an unknown label is refused at the boundary rather than stored to silently match nothing.

    • data.deliveries[].[].payloadanyrequired

      The CloudEvents envelope, exactly as sent. References and statuses only: SPEC.md bars privileged document content from deliveries by default, so the payload names what happened and where the record lives, never the paper itself.

    • data.deliveries[].[].payloadSha256stringrequired
    • data.deliveries[].[].status"pending" | "in_flight" | "delivered" | "failed" | "dead_lettered" | "cancelled"required

      Where one event's delivery to one endpoint sits. Failed is retryable — the schema requires next_attempt_at on it, because an unscheduled retry is a delivery that silently never happens. DeadLettered is the end of the retry budget: the delivery leaves the ladder and waits for an operator to redeliver it.

    • data.deliveries[].[].attemptCountinteger (int32)required
    • data.deliveries[].[].nextAttemptAtstring | null (date-time)
    • data.deliveries[].[].responseStatusCodeinteger | null (int32)
    • data.deliveries[].[].responseBodyExcerptstring | null
    • data.deliveries[].[].errorMessagestring | null
    • data.deliveries[].[].firstAttemptedAtstring | null (date-time)
    • data.deliveries[].[].deliveredAtstring | null (date-time)
    • data.deliveries[].[].deadLetteredAtstring | null (date-time)
    • data.deliveries[].[].createdAtstring (date-time)required
    • data.deliveries[].[].updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/webhook-endpoints/$ENDPOINT_ID/deliveries" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Disable

Disable an endpoint, with the reason the schema and a dispute review both demand

POST/v1/pacts/webhook-endpoints/{endpoint_id}/disable

Idempotency-Key requiredPerson onlypacts_disableEndpoint

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Disable an endpoint, with the reason the schema and a dispute review both demand. A disabled endpoint receives no deliveries; its history stays.

Parameters

  • endpoint_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • reasonstringrequired

    Required: disabling a receiver's legal events is the state a dispute review asks about, and the schema refuses an unexplained one.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A webhook endpoint: a receiver's URL, its subscribed events, and the custody reference its deliveries are signed with. signing_secret_ref names where the signing secret lives — a secrets plane reference, never the secret itself. A webhook secret in a database column is a secret in every backup, and it is the only thing standing between a receiver and a forged legal event.

    • data.idstringrequired
    • data.scopeobjectrequired

      The scope columns every row carries. Serializes as the scope object the dashboard already reads.

    • data.scope.organizationIdstringrequired
    • data.scope.workspaceIdstringrequired
    • data.scope.projectIdstring | null
    • data.scope.environmentIdstringrequired
    • data.urlstringrequired
    • data.descriptionstring | null
    • data.eventTypes"PactCreated" | "PactUpdated" | "PactExecuted" | "PactExpired" | "PactTerminated" | "DocumentUploaded" | "VersionCreated" | "ReviewRequested" | "ReviewCompleted" | "ApprovalRequested" | "ApprovalApproved" | "ApprovalRejected" | "SignatureSent" | "SignatureCompleted" | "SignatureDeclined" | "ObligationCreated" | "ObligationDueSoon" | "ObligationOverdue" | "ObligationCompleted" | "EvidenceBundleCreated" | "LegalHoldCreated" | "LegalHoldReleased" | "AgentActionTaken"[]required
    • data.status"active" | "paused" | "failing" | "disabled"required

      Where a webhook endpoint sits. Failing is a health signal, not an off switch: the endpoint keeps receiving deliveries while its consecutive-failure count is over the threshold, because the alternative — stopping delivery when a receiver is already broken — hides the events it needs to catch up on. Paused and Disabled are the operator's off switches; only Disabled needs a reason (the schema refuses an unexplained one), because disabling is the state a dispute review asks about.

    • data.signingSecretRefstringrequired
    • data.signatureAlgorithmstringrequired
    • data.maxAttemptsinteger (int32)required
    • data.consecutiveFailuresinteger (int32)required
    • data.lastSuccessAtstring | null (date-time)
    • data.lastFailureAtstring | null (date-time)
    • data.disabledReasonstring | null
    • data.createdByActorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/webhook-endpoints/$ENDPOINT_ID/disable" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "string"
  }'

Rotate secret

Rotate the endpoint's signing secret

POST/v1/pacts/webhook-endpoints/{endpoint_id}/rotate-secret

Idempotency-Key requiredPerson onlypacts_rotateSecret

Scope pacts:admin at Pacts (the gateway requires pacts:write). Person-only: only the person's own session with pacts:admin (or pacts:*) may call it; every other principal, an agent or One acting for a company included, gets 403 PERSON_ONLY. Never an agent tool. Idempotency-Key is required.

Rotate the endpoint's signing secret.

Parameters

  • endpoint_idpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

A JSON object; see the description above.

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.endpointany
    • data.rotatedboolean
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/webhook-endpoints/$ENDPOINT_ID/rotate-secret" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '"string"'

Workflows

Dispatch one of the eleven SPEC workflows against a record in scope

POST/v1/pacts/workflows/dispatch

pacts:writeIdempotency-Key requiredpacts_dispatchWorkflow

Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.

Dispatch one of the eleven SPEC workflows against a record in scope.

Parameters

  • Idempotency-Keyheader · stringrequired

    Required on every write: 1-255 printable ASCII characters. Reusing a key replays the first answer and never re-runs the write.

Request body application/json

  • kindstringrequired

    The SPEC workflow name — pacts.obligation.monitor and its ten siblings. The subject type is bound to the kind (WorkflowKind::subject_type), so the body names only the record.

  • subjectIdstringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.runany
    • data.replayedany
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/pacts/workflows/dispatch" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "kind": "string",
    "subjectId": "string"
  }'

List runs in scope — everything, one kind, or one subject's history

GET/v1/pacts/workflows/runs

pacts:readpacts_listWorkflowRuns

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

List runs in scope — everything, one kind, or one subject's history.

Parameters

  • kindquery · string
  • subjectTypequery · string
  • subjectIdquery · string

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired
    • data.runsany
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/workflows/runs" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Where a dispatched run stands

GET/v1/pacts/workflows/runs/{run_id}

pacts:readpacts_getWorkflowRun

Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.

Where a dispatched run stands.

Parameters

  • run_idpath · stringrequired

Responses

  • 200Success: the {data} envelope
    Response fields
    • dataobjectrequired

      A JSON object (see l1felabs/pacts crates/pacts-api/src/handlers).

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

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