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:readpacts:signpacts:write- API keys
- —
- SDK
genesis.call('pacts_listDelegations', …)- CLI
- Through the SDK (
genesis.call) - MCP
- 110 tools; the other 34 through
genesis_call
Operations
Agent delegations
List delegations
GET/v1/pacts/agent-delegations
Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequireddata.agentDelegationsobject[]data.agentDelegations[].[].idstringrequireddata.agentDelegations[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.agentDelegations[].[].scope.organizationIdstringrequireddata.agentDelegations[].[].scope.workspaceIdstringrequireddata.agentDelegations[].[].scope.projectIdstring | nulldata.agentDelegations[].[].scope.environmentIdstringrequireddata.agentDelegations[].[].agentActorIdstringrequireddata.agentDelegations[].[].agentDidstring | nulldata.agentDelegations[].[].humanRootActorIdstringrequireddata.agentDelegations[].[].authorityGrantIdstringrequireddata.agentDelegations[].[].status"draft" | "active" | "suspended" | "revoked" | "expired"requiredThe lifecycle of an agent delegation.
data.agentDelegations[].[].allowedActions"draft" | "comment" | "redline" | "negotiate" | "approve" | "reject" | "sign" | "countersign" | "send" | "accept_terms" | "delegate" | "amend" | "terminate" | "waive" | "renew"[]requireddata.agentDelegations[].[].allowedAgreementTypesarray | nulldata.agentDelegations[].[].valueCeilingobject | nulldata.agentDelegations[].[].jurisdictionLimitsstring[]requireddata.agentDelegations[].[].humanApprovalThresholdobject | nulldata.agentDelegations[].[].requiresHumanCountersignaturebooleanrequireddata.agentDelegations[].[].effectiveAtstring (date-time)requireddata.agentDelegations[].[].expiresAtstring | null (date-time)data.agentDelegations[].[].revokedAtstring | null (date-time)data.agentDelegations[].[].revokedByActorIdstring | nulldata.agentDelegations[].[].createdByActorIdstringrequireddata.agentDelegations[].[].createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_listDelegations'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_listDelegations",
"arguments": {}
}
}Create delegation
POST/v1/pacts/agent-delegations
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 · stringrequiredRequired 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
agentActorIdstringrequiredagentDidstring | nullhumanRootActorIdstringrequiredauthorityGrantIdstringrequiredallowedActions"draft" | "comment" | "redline" | "negotiate" | "approve" | "reject" | "sign" | "countersign" | "send" | "accept_terms" | "delegate" | "amend" | "terminate" | "waive" | "renew"[]requiredallowedAgreementTypesarray | nullvalueCeilingobject | nulljurisdictionLimitsarray | nullhumanApprovalThresholdobject | nullrequiresHumanCountersignatureboolean | nulleffectiveAtstring | null (date-time)expiresAtstring | null (date-time)
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredWhat an agent may do, traced to the human accountable for it.
human_root_actor_idis always present: an agent whose authority traces to nobody is an agent no one answers for, whichSPEC.mdforbids.data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.agentActorIdstringrequireddata.agentDidstring | nulldata.humanRootActorIdstringrequireddata.authorityGrantIdstringrequireddata.status"draft" | "active" | "suspended" | "revoked" | "expired"requiredThe lifecycle of an agent delegation.
data.allowedActions"draft" | "comment" | "redline" | "negotiate" | "approve" | "reject" | "sign" | "countersign" | "send" | "accept_terms" | "delegate" | "amend" | "terminate" | "waive" | "renew"[]requireddata.allowedAgreementTypesarray | nulldata.valueCeilingobject | nulldata.jurisdictionLimitsstring[]requireddata.humanApprovalThresholdobject | nulldata.requiresHumanCountersignaturebooleanrequireddata.effectiveAtstring (date-time)requireddata.expiresAtstring | null (date-time)data.revokedAtstring | null (date-time)data.revokedByActorIdstring | nulldata.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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": []
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_createDelegation', {
body: {
agentActorId: 'string',
humanRootActorId: 'string',
authorityGrantId: 'string',
allowedActions: [],
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_createDelegation",
"arguments": {
"body": {
"agentActorId": "string",
"humanRootActorId": "string",
"authorityGrantId": "string",
"allowedActions": []
},
"idempotency_key": "<a stable key per change>"
}
}
}
}Get delegation
GET/v1/pacts/agent-delegations/{delegation_id}
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}envelopeResponse fields
dataobjectrequiredWhat an agent may do, traced to the human accountable for it.
human_root_actor_idis always present: an agent whose authority traces to nobody is an agent no one answers for, whichSPEC.mdforbids.data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.agentActorIdstringrequireddata.agentDidstring | nulldata.humanRootActorIdstringrequireddata.authorityGrantIdstringrequireddata.status"draft" | "active" | "suspended" | "revoked" | "expired"requiredThe lifecycle of an agent delegation.
data.allowedActions"draft" | "comment" | "redline" | "negotiate" | "approve" | "reject" | "sign" | "countersign" | "send" | "accept_terms" | "delegate" | "amend" | "terminate" | "waive" | "renew"[]requireddata.allowedAgreementTypesarray | nulldata.valueCeilingobject | nulldata.jurisdictionLimitsstring[]requireddata.humanApprovalThresholdobject | nulldata.requiresHumanCountersignaturebooleanrequireddata.effectiveAtstring (date-time)requireddata.expiresAtstring | null (date-time)data.revokedAtstring | null (date-time)data.revokedByActorIdstring | nulldata.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_getDelegation', {
delegation_id: '<delegation_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_getDelegation",
"arguments": {
"delegation_id": "<delegation_id>"
}
}
}Update delegation
PATCH/v1/pacts/agent-delegations/{delegation_id}
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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 | nullallowedAgreementTypesarray | nullvalueCeilingobject | nullhumanApprovalThresholdobject | nullrequiresHumanCountersignatureboolean | nullexpiresAtstring | null (date-time)
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredWhat an agent may do, traced to the human accountable for it.
human_root_actor_idis always present: an agent whose authority traces to nobody is an agent no one answers for, whichSPEC.mdforbids.data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.agentActorIdstringrequireddata.agentDidstring | nulldata.humanRootActorIdstringrequireddata.authorityGrantIdstringrequireddata.status"draft" | "active" | "suspended" | "revoked" | "expired"requiredThe lifecycle of an agent delegation.
data.allowedActions"draft" | "comment" | "redline" | "negotiate" | "approve" | "reject" | "sign" | "countersign" | "send" | "accept_terms" | "delegate" | "amend" | "terminate" | "waive" | "renew"[]requireddata.allowedAgreementTypesarray | nulldata.valueCeilingobject | nulldata.jurisdictionLimitsstring[]requireddata.humanApprovalThresholdobject | nulldata.requiresHumanCountersignaturebooleanrequireddata.effectiveAtstring (date-time)requireddata.expiresAtstring | null (date-time)data.revokedAtstring | null (date-time)data.revokedByActorIdstring | nulldata.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_updateDelegation', {
delegation_id: '<delegation_id>',
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_updateDelegation",
"arguments": {
"delegation_id": "<delegation_id>",
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}
}Activate
Activate delegation
POST/v1/pacts/agent-delegations/{delegation_id}/activate
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredWhat an agent may do, traced to the human accountable for it.
human_root_actor_idis always present: an agent whose authority traces to nobody is an agent no one answers for, whichSPEC.mdforbids.data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.agentActorIdstringrequireddata.agentDidstring | nulldata.humanRootActorIdstringrequireddata.authorityGrantIdstringrequireddata.status"draft" | "active" | "suspended" | "revoked" | "expired"requiredThe lifecycle of an agent delegation.
data.allowedActions"draft" | "comment" | "redline" | "negotiate" | "approve" | "reject" | "sign" | "countersign" | "send" | "accept_terms" | "delegate" | "amend" | "terminate" | "waive" | "renew"[]requireddata.allowedAgreementTypesarray | nulldata.valueCeilingobject | nulldata.jurisdictionLimitsstring[]requireddata.humanApprovalThresholdobject | nulldata.requiresHumanCountersignaturebooleanrequireddata.effectiveAtstring (date-time)requireddata.expiresAtstring | null (date-time)data.revokedAtstring | null (date-time)data.revokedByActorIdstring | nulldata.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_activateDelegation', {
delegation_id: '<delegation_id>',
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_activateDelegation",
"arguments": {
"delegation_id": "<delegation_id>",
"idempotency_key": "<a stable key per change>"
}
}
}
}Activate a playbook
POST/v1/pacts/playbooks/{playbook_id}/activate
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredA playbook: the positions and rules that govern a class of agreements.
fallback_positionsandescalation_rulesare 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.namestringrequireddata.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"[]requireddata.jurisdictionstring | nulldata.partyRole"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other" | nulldata.ownerActorIdstringrequireddata.status"draft" | "active" | "deprecated"requiredWhere a playbook sits in its working life.
data.approvedClauseIdsstring[]requireddata.blockedClausePatternsstring[]requireddata.fallbackPositionsanyrequireddata.escalationRulesanyrequireddata.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_activatePlaybook', {
playbook_id: '<playbook_id>',
body: 'string',
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_activatePlaybook",
"arguments": {
"playbook_id": "<playbook_id>",
"body": "string",
"idempotency_key": "<a stable key per change>"
}
}
}
}Revoke
Revoke delegation
POST/v1/pacts/agent-delegations/{delegation_id}/revoke
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredWhat an agent may do, traced to the human accountable for it.
human_root_actor_idis always present: an agent whose authority traces to nobody is an agent no one answers for, whichSPEC.mdforbids.data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.agentActorIdstringrequireddata.agentDidstring | nulldata.humanRootActorIdstringrequireddata.authorityGrantIdstringrequireddata.status"draft" | "active" | "suspended" | "revoked" | "expired"requiredThe lifecycle of an agent delegation.
data.allowedActions"draft" | "comment" | "redline" | "negotiate" | "approve" | "reject" | "sign" | "countersign" | "send" | "accept_terms" | "delegate" | "amend" | "terminate" | "waive" | "renew"[]requireddata.allowedAgreementTypesarray | nulldata.valueCeilingobject | nulldata.jurisdictionLimitsstring[]requireddata.humanApprovalThresholdobject | nulldata.requiresHumanCountersignaturebooleanrequireddata.effectiveAtstring (date-time)requireddata.expiresAtstring | null (date-time)data.revokedAtstring | null (date-time)data.revokedByActorIdstring | nulldata.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_revokeDelegation', {
delegation_id: '<delegation_id>',
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_revokeDelegation",
"arguments": {
"delegation_id": "<delegation_id>",
"idempotency_key": "<a stable key per change>"
}
}
}
}Revoke a decided approval
POST/v1/pacts/approvals/{approval_id}/revoke
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredAn 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_idis required andapproved_content_hashrecords 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.pactIdstringrequireddata.versionIdstringrequireddata.requestedByActorIdstringrequireddata.approverActorIdstringrequireddata.approvalType"legal" | "commercial" | "privacy" | "security" | "finance" | "procurement" | "executive" | "signature_authority" | "agent_delegation" | "exception"requiredThe kind of approval.
data.status"pending" | "approved" | "rejected" | "expired" | "revoked"requiredThe state of an approval.
data.authorityGrantIdstring | nulldata.approvedContentHashstring | nulldata.reasonstring | nulldata.decidedAtstring | null (date-time)data.expiresAtstring | null (date-time)data.createdAtstring (date-time)requireddata.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"'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_revokeApproval', {
approval_id: '<approval_id>',
body: 'string',
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_revokeApproval",
"arguments": {
"approval_id": "<approval_id>",
"body": "string",
"idempotency_key": "<a stable key per change>"
}
}
}
}Revoke grant
POST/v1/pacts/authority-grants/{grant_id}/revoke
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredAn 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.principalActorIdstringrequireddata.principalActorType"human" | "agent" | "service" | "counterparty_human" | "counterparty_agent" | "outside_counsel" | "system"requiredThe 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.representedPartyIdstringrequireddata.grantType"role" | "board_resolution" | "power_of_attorney" | "employment_authority" | "outside_counsel_engagement" | "procurement_policy" | "agent_delegation" | "service_account_policy" | "verifiable_credential" | "manual_counsel_override"requiredThe kind of authority basis a grant rests on.
data.sourceEvidenceRefIdstringrequireddata.maxContractValueobject | nulldata.allowedAgreementTypesarray | nullNonemeans 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"[]requireddata.jurisdictionstring | nulldata.effectiveAtstring (date-time)requireddata.expiresAtstring | null (date-time)data.revokedAtstring | null (date-time)data.revokedByActorIdstring | nulldata.revocationReasonstring | nulldata.verifiedByActorIdstring | nulldata.verifiedAtstring | null (date-time)data.verificationStatus"unverified" | "verified" | "disputed" | "expired" | "revoked" | "blocked"requiredThe verification state of a party, grant, or contact.
data.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_revokeGrant', {
grant_id: '<grant_id>',
body: {
reason: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_revokeGrant",
"arguments": {
"grant_id": "<grant_id>",
"body": {
"reason": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}
}Approvals
Get approval
GET/v1/pacts/approvals/{approval_id}
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}envelopeResponse fields
dataobjectrequiredAn 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_idis required andapproved_content_hashrecords 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.pactIdstringrequireddata.versionIdstringrequireddata.requestedByActorIdstringrequireddata.approverActorIdstringrequireddata.approvalType"legal" | "commercial" | "privacy" | "security" | "finance" | "procurement" | "executive" | "signature_authority" | "agent_delegation" | "exception"requiredThe kind of approval.
data.status"pending" | "approved" | "rejected" | "expired" | "revoked"requiredThe state of an approval.
data.authorityGrantIdstring | nulldata.approvedContentHashstring | nulldata.reasonstring | nulldata.decidedAtstring | null (date-time)data.expiresAtstring | null (date-time)data.createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_getApproval', {
approval_id: '<approval_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_getApproval",
"arguments": {
"approval_id": "<approval_id>"
}
}
}List approvals
GET/v1/pacts/pacts/{pact_id}/approvals
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}envelopeResponse fields
dataobjectrequireddata.approvalsobject[]data.approvals[].[].idstringrequireddata.approvals[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.approvals[].[].scope.organizationIdstringrequireddata.approvals[].[].scope.workspaceIdstringrequireddata.approvals[].[].scope.projectIdstring | nulldata.approvals[].[].scope.environmentIdstringrequireddata.approvals[].[].pactIdstringrequireddata.approvals[].[].versionIdstringrequireddata.approvals[].[].requestedByActorIdstringrequireddata.approvals[].[].approverActorIdstringrequireddata.approvals[].[].approvalType"legal" | "commercial" | "privacy" | "security" | "finance" | "procurement" | "executive" | "signature_authority" | "agent_delegation" | "exception"requiredThe kind of approval.
data.approvals[].[].status"pending" | "approved" | "rejected" | "expired" | "revoked"requiredThe state of an approval.
data.approvals[].[].authorityGrantIdstring | nulldata.approvals[].[].approvedContentHashstring | nulldata.approvals[].[].reasonstring | nulldata.approvals[].[].decidedAtstring | null (date-time)data.approvals[].[].expiresAtstring | null (date-time)data.approvals[].[].createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_listApprovals', {
pact_id: '<pact_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_listApprovals",
"arguments": {
"pact_id": "<pact_id>"
}
}
}Create approval
POST/v1/pacts/pacts/{pact_id}/approvals
Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.
Parameters
pact_idpath · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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
versionIdstringrequiredapproverActorIdstringrequiredapprovalType"legal" | "commercial" | "privacy" | "security" | "finance" | "procurement" | "executive" | "signature_authority" | "agent_delegation" | "exception"requiredThe kind of approval.
authorityGrantIdstring | nullexpiresAtstring | null (date-time)
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredAn 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_idis required andapproved_content_hashrecords 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.pactIdstringrequireddata.versionIdstringrequireddata.requestedByActorIdstringrequireddata.approverActorIdstringrequireddata.approvalType"legal" | "commercial" | "privacy" | "security" | "finance" | "procurement" | "executive" | "signature_authority" | "agent_delegation" | "exception"requiredThe kind of approval.
data.status"pending" | "approved" | "rejected" | "expired" | "revoked"requiredThe state of an approval.
data.authorityGrantIdstring | nulldata.approvedContentHashstring | nulldata.reasonstring | nulldata.decidedAtstring | null (date-time)data.expiresAtstring | null (date-time)data.createdAtstring (date-time)requireddata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_createApproval', {
pact_id: '<pact_id>',
body: {
versionId: 'string',
approverActorId: 'string',
approvalType: 'legal',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_createApproval",
"arguments": {
"pact_id": "<pact_id>",
"body": {
"versionId": "string",
"approverActorId": "string",
"approvalType": "legal"
},
"idempotency_key": "<a stable key per change>"
}
}
}Approve
Approve, pinning the content hash of the version as it is now
POST/v1/pacts/approvals/{approval_id}/approve
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredAn 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_idis required andapproved_content_hashrecords 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.pactIdstringrequireddata.versionIdstringrequireddata.requestedByActorIdstringrequireddata.approverActorIdstringrequireddata.approvalType"legal" | "commercial" | "privacy" | "security" | "finance" | "procurement" | "executive" | "signature_authority" | "agent_delegation" | "exception"requiredThe kind of approval.
data.status"pending" | "approved" | "rejected" | "expired" | "revoked"requiredThe state of an approval.
data.authorityGrantIdstring | nulldata.approvedContentHashstring | nulldata.reasonstring | nulldata.decidedAtstring | null (date-time)data.expiresAtstring | null (date-time)data.createdAtstring (date-time)requireddata.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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_approveApproval', {
approval_id: '<approval_id>',
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_approveApproval",
"arguments": {
"approval_id": "<approval_id>",
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}
}Approve a clause
POST/v1/pacts/clauses/{clause_id}/approve
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredA clause: versioned reusable legal text with an approval state.
body_sha256is computed by the service frombody, 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_idsis the ordered ladder to retreat to when the counterparty rejects this position.data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.libraryIdstringrequireddata.namestringrequireddata.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"requiredThe kind of reusable legal text a clause is.
data.bodystringrequireddata.bodySha256stringrequireddata.jurisdictionstring | nulldata.languagestringrequireddata.clauseVersionstringrequireddata.status"draft" | "approved" | "deprecated" | "blocked"requiredThe 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.
Approvedis the only state a playbook may treat as a position; the schema requires an approved clause to name its approver.data.ownerActorIdstringrequireddata.approvedByActorIdstring | nulldata.approvedAtstring | null (date-time)data.fallbackClauseIdsstring[]requireddata.riskTagsstring[]requireddata.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"[]requireddata.effectiveAtstring | null (date-time)data.expiresAtstring | null (date-time)data.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_approveClause', {
clause_id: '<clause_id>',
body: 'string',
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_approveClause",
"arguments": {
"clause_id": "<clause_id>",
"body": "string",
"idempotency_key": "<a stable key per change>"
}
}
}
}Reject
Reject, recording the reason the requester needs to act on
POST/v1/pacts/approvals/{approval_id}/reject
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredAn 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_idis required andapproved_content_hashrecords 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.pactIdstringrequireddata.versionIdstringrequireddata.requestedByActorIdstringrequireddata.approverActorIdstringrequireddata.approvalType"legal" | "commercial" | "privacy" | "security" | "finance" | "procurement" | "executive" | "signature_authority" | "agent_delegation" | "exception"requiredThe kind of approval.
data.status"pending" | "approved" | "rejected" | "expired" | "revoked"requiredThe state of an approval.
data.authorityGrantIdstring | nulldata.approvedContentHashstring | nulldata.reasonstring | nulldata.decidedAtstring | null (date-time)data.expiresAtstring | null (date-time)data.createdAtstring (date-time)requireddata.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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_rejectApproval', {
approval_id: '<approval_id>',
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_rejectApproval",
"arguments": {
"approval_id": "<approval_id>",
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}
}Waive
Waive a pending approval — say why, recorded as the reason
POST/v1/pacts/approvals/{approval_id}/waive
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredAn 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_idis required andapproved_content_hashrecords 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.pactIdstringrequireddata.versionIdstringrequireddata.requestedByActorIdstringrequireddata.approverActorIdstringrequireddata.approvalType"legal" | "commercial" | "privacy" | "security" | "finance" | "procurement" | "executive" | "signature_authority" | "agent_delegation" | "exception"requiredThe kind of approval.
data.status"pending" | "approved" | "rejected" | "expired" | "revoked"requiredThe state of an approval.
data.authorityGrantIdstring | nulldata.approvedContentHashstring | nulldata.reasonstring | nulldata.decidedAtstring | null (date-time)data.expiresAtstring | null (date-time)data.createdAtstring (date-time)requireddata.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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_waiveApproval', {
approval_id: '<approval_id>',
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_waiveApproval",
"arguments": {
"approval_id": "<approval_id>",
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}
}Waive an obligation, with the reason a dispute will turn on
POST/v1/pacts/obligations/{obligation_id}/waive
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredAn obligation: a duty an agreement imposes after signature. Extraction is a model output, so
confidenceis stored and an extracted obligation stays indraftuntil 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.pactIdstringrequireddata.sourceVersionIdstringrequireddata.sourceClauseRefanyrequireddata.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"requiredThe kind of duty an obligation is.
data.owedByPartyIdstringrequireddata.owedToPartyIdstringrequireddata.responsibleActorIdstring | nulldata.descriptionstringrequireddata.trigger"effective_date" | "signature_date" | "calendar_date" | "renewal_window" | "notice_received" | "incident" | "invoice" | "milestone" | "manual"requiredWhat fires an obligation into action.
data.dueAtstring | null (date-time)data.recurrenceanydata.status"draft" | "active" | "due_soon" | "overdue" | "fulfilled" | "waived" | "breached" | "disputed" | "terminated"requiredThe state of an obligation.
data.confidencenumberrequireddata.extractedByModelstring | nulldata.confirmedByActorIdstring | nulldata.confirmedAtstring | null (date-time)data.workflowRunIdstring | nulldata.lastCheckedAtstring | null (date-time)data.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_waiveObligation', {
obligation_id: '<obligation_id>',
body: {
reason: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_waiveObligation",
"arguments": {
"obligation_id": "<obligation_id>",
"body": {
"reason": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}Authority grants
List grants
GET/v1/pacts/authority-grants
Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequireddata.authorityGrantsobject[]data.authorityGrants[].[].idstringrequireddata.authorityGrants[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.authorityGrants[].[].scope.organizationIdstringrequireddata.authorityGrants[].[].scope.workspaceIdstringrequireddata.authorityGrants[].[].scope.projectIdstring | nulldata.authorityGrants[].[].scope.environmentIdstringrequireddata.authorityGrants[].[].principalActorIdstringrequireddata.authorityGrants[].[].principalActorType"human" | "agent" | "service" | "counterparty_human" | "counterparty_agent" | "outside_counsel" | "system"requiredThe 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[].[].representedPartyIdstringrequireddata.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"requiredThe kind of authority basis a grant rests on.
data.authorityGrants[].[].sourceEvidenceRefIdstringrequireddata.authorityGrants[].[].maxContractValueobject | nulldata.authorityGrants[].[].allowedAgreementTypesarray | nullNonemeans 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"[]requireddata.authorityGrants[].[].jurisdictionstring | nulldata.authorityGrants[].[].effectiveAtstring (date-time)requireddata.authorityGrants[].[].expiresAtstring | null (date-time)data.authorityGrants[].[].revokedAtstring | null (date-time)data.authorityGrants[].[].revokedByActorIdstring | nulldata.authorityGrants[].[].revocationReasonstring | nulldata.authorityGrants[].[].verifiedByActorIdstring | nulldata.authorityGrants[].[].verifiedAtstring | null (date-time)data.authorityGrants[].[].verificationStatus"unverified" | "verified" | "disputed" | "expired" | "revoked" | "blocked"requiredThe verification state of a party, grant, or contact.
data.authorityGrants[].[].createdByActorIdstringrequireddata.authorityGrants[].[].createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_listGrants'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_listGrants",
"arguments": {}
}
}Create grant
POST/v1/pacts/authority-grants
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 · stringrequiredRequired 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
principalActorIdstringrequiredprincipalActorType"human" | "agent" | "service" | "counterparty_human" | "counterparty_agent" | "outside_counsel" | "system" | nullrepresentedPartyIdstringrequiredgrantType"role" | "board_resolution" | "power_of_attorney" | "employment_authority" | "outside_counsel_engagement" | "procurement_policy" | "agent_delegation" | "service_account_policy" | "verifiable_credential" | "manual_counsel_override"requiredThe kind of authority basis a grant rests on.
sourceEvidenceRefIdstringrequiredmaxContractValueobject | nullallowedAgreementTypesarray | nullallowedActions"draft" | "comment" | "redline" | "negotiate" | "approve" | "reject" | "sign" | "countersign" | "send" | "accept_terms" | "delegate" | "amend" | "terminate" | "waive" | "renew"[]requiredjurisdictionstring | nulleffectiveAtstring | null (date-time)expiresAtstring | null (date-time)
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredAn 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.principalActorIdstringrequireddata.principalActorType"human" | "agent" | "service" | "counterparty_human" | "counterparty_agent" | "outside_counsel" | "system"requiredThe 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.representedPartyIdstringrequireddata.grantType"role" | "board_resolution" | "power_of_attorney" | "employment_authority" | "outside_counsel_engagement" | "procurement_policy" | "agent_delegation" | "service_account_policy" | "verifiable_credential" | "manual_counsel_override"requiredThe kind of authority basis a grant rests on.
data.sourceEvidenceRefIdstringrequireddata.maxContractValueobject | nulldata.allowedAgreementTypesarray | nullNonemeans 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"[]requireddata.jurisdictionstring | nulldata.effectiveAtstring (date-time)requireddata.expiresAtstring | null (date-time)data.revokedAtstring | null (date-time)data.revokedByActorIdstring | nulldata.revocationReasonstring | nulldata.verifiedByActorIdstring | nulldata.verifiedAtstring | null (date-time)data.verificationStatus"unverified" | "verified" | "disputed" | "expired" | "revoked" | "blocked"requiredThe verification state of a party, grant, or contact.
data.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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": []
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_createGrant', {
body: {
principalActorId: 'string',
representedPartyId: 'string',
grantType: 'role',
sourceEvidenceRefId: 'string',
allowedActions: [],
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_createGrant",
"arguments": {
"body": {
"principalActorId": "string",
"representedPartyId": "string",
"grantType": "role",
"sourceEvidenceRefId": "string",
"allowedActions": []
},
"idempotency_key": "<a stable key per change>"
}
}
}
}Get grant
GET/v1/pacts/authority-grants/{grant_id}
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}envelopeResponse fields
dataobjectrequiredAn 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.principalActorIdstringrequireddata.principalActorType"human" | "agent" | "service" | "counterparty_human" | "counterparty_agent" | "outside_counsel" | "system"requiredThe 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.representedPartyIdstringrequireddata.grantType"role" | "board_resolution" | "power_of_attorney" | "employment_authority" | "outside_counsel_engagement" | "procurement_policy" | "agent_delegation" | "service_account_policy" | "verifiable_credential" | "manual_counsel_override"requiredThe kind of authority basis a grant rests on.
data.sourceEvidenceRefIdstringrequireddata.maxContractValueobject | nulldata.allowedAgreementTypesarray | nullNonemeans 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"[]requireddata.jurisdictionstring | nulldata.effectiveAtstring (date-time)requireddata.expiresAtstring | null (date-time)data.revokedAtstring | null (date-time)data.revokedByActorIdstring | nulldata.revocationReasonstring | nulldata.verifiedByActorIdstring | nulldata.verifiedAtstring | null (date-time)data.verificationStatus"unverified" | "verified" | "disputed" | "expired" | "revoked" | "blocked"requiredThe verification state of a party, grant, or contact.
data.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_getGrant', {
grant_id: '<grant_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_getGrant",
"arguments": {
"grant_id": "<grant_id>"
}
}
}Update grant
PATCH/v1/pacts/authority-grants/{grant_id}
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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 | nullallowedAgreementTypesarray | nullallowedActionsarray | nulljurisdictionstring | nullexpiresAtstring | null (date-time)
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredAn 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.principalActorIdstringrequireddata.principalActorType"human" | "agent" | "service" | "counterparty_human" | "counterparty_agent" | "outside_counsel" | "system"requiredThe 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.representedPartyIdstringrequireddata.grantType"role" | "board_resolution" | "power_of_attorney" | "employment_authority" | "outside_counsel_engagement" | "procurement_policy" | "agent_delegation" | "service_account_policy" | "verifiable_credential" | "manual_counsel_override"requiredThe kind of authority basis a grant rests on.
data.sourceEvidenceRefIdstringrequireddata.maxContractValueobject | nulldata.allowedAgreementTypesarray | nullNonemeans 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"[]requireddata.jurisdictionstring | nulldata.effectiveAtstring (date-time)requireddata.expiresAtstring | null (date-time)data.revokedAtstring | null (date-time)data.revokedByActorIdstring | nulldata.revocationReasonstring | nulldata.verifiedByActorIdstring | nulldata.verifiedAtstring | null (date-time)data.verificationStatus"unverified" | "verified" | "disputed" | "expired" | "revoked" | "blocked"requiredThe verification state of a party, grant, or contact.
data.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_updateGrant', {
grant_id: '<grant_id>',
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_updateGrant",
"arguments": {
"grant_id": "<grant_id>",
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}
}Verify
Verify grant
POST/v1/pacts/authority-grants/{grant_id}/verify
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredAn 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.principalActorIdstringrequireddata.principalActorType"human" | "agent" | "service" | "counterparty_human" | "counterparty_agent" | "outside_counsel" | "system"requiredThe 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.representedPartyIdstringrequireddata.grantType"role" | "board_resolution" | "power_of_attorney" | "employment_authority" | "outside_counsel_engagement" | "procurement_policy" | "agent_delegation" | "service_account_policy" | "verifiable_credential" | "manual_counsel_override"requiredThe kind of authority basis a grant rests on.
data.sourceEvidenceRefIdstringrequireddata.maxContractValueobject | nulldata.allowedAgreementTypesarray | nullNonemeans 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"[]requireddata.jurisdictionstring | nulldata.effectiveAtstring (date-time)requireddata.expiresAtstring | null (date-time)data.revokedAtstring | null (date-time)data.revokedByActorIdstring | nulldata.revocationReasonstring | nulldata.verifiedByActorIdstring | nulldata.verifiedAtstring | null (date-time)data.verificationStatus"unverified" | "verified" | "disputed" | "expired" | "revoked" | "blocked"requiredThe verification state of a party, grant, or contact.
data.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_verifyGrant', {
grant_id: '<grant_id>',
body: 'string',
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_verifyGrant",
"arguments": {
"grant_id": "<grant_id>",
"body": "string",
"idempotency_key": "<a stable key per change>"
}
}
}
}Verify party
POST/v1/pacts/parties/{party_id}/verify
Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.
Parameters
party_idpath · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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"requiredThe verification state of a party, grant, or contact.
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredA party: the entity that signs or is represented.
data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.namestringrequireddata.partyType"legal_entity" | "individual" | "agent" | "government" | "trust" | "other"requiredThe legal form of a party.
data.role"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other"requiredA party's role in an agreement.
data.legalEntityIdstring | nulldata.jurisdictionstring | nulldata.addressanydata.externalPartybooleanrequireddata.verificationStatus"unverified" | "verified" | "disputed" | "expired" | "revoked" | "blocked"requiredThe verification state of a party, grant, or contact.
data.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_verifyParty', {
party_id: '<party_id>',
body: {
status: 'unverified',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_verifyParty",
"arguments": {
"party_id": "<party_id>",
"body": {
"status": "unverified"
},
"idempotency_key": "<a stable key per change>"
}
}
}Verify a package's signatures against their sealed digests
POST/v1/pacts/signature-packages/{package_id}/verify
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequireddata.packageIdstringdata.statusanydata.sealedContentHashanydata.sealedMatchesCurrentVersionanydata.signerCountintegerdata.signatureCountintegerdata.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"'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_verifyPackage', {
package_id: '<package_id>',
body: 'string',
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_verifyPackage",
"arguments": {
"package_id": "<package_id>",
"body": "string",
"idempotency_key": "<a stable key per change>"
}
}
}Authority
Answer whether an actor may take an action for a party
POST/v1/pacts/authority/check
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 · stringrequiredRequired 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
principalActorIdstringrequiredrepresentedPartyIdstringrequiredaction"draft" | "comment" | "redline" | "negotiate" | "approve" | "reject" | "sign" | "countersign" | "send" | "accept_terms" | "delegate" | "amend" | "terminate" | "waive" | "renew"requiredAn 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" | nullcontractValueinteger | null (int64)
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequireddata.permittedbooleandata.grantIdstringdata.blockanydata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_checkAuthority', {
body: {
principalActorId: 'string',
representedPartyId: 'string',
action: 'draft',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_checkAuthority",
"arguments": {
"body": {
"principalActorId": "string",
"representedPartyId": "string",
"action": "draft"
},
"idempotency_key": "<a stable key per change>"
}
}
}Authenticate
Record that the signer was authenticated, naming the method
POST/v1/pacts/ceremony/{ceremony_id}/authenticate
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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
methodstringrequiredHow the signer was authenticated (oidc, webauthn, aal2, etc.).
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredA 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, andsigner_authenticatedwere 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.signaturePackageIdstringrequireddata.signerActorIdstringrequireddata.sealedContentHashstringrequiredThe 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"requiredThe state of a ceremony session.
data.disclosureShownAtstring | null (date-time)data.consentGivenAtstring | null (date-time)data.authenticatedAtstring | null (date-time)data.authenticationMethodstring | nulldata.intentToSignAtstring | null (date-time)data.ipAddressHashstring | nulldata.userAgentHashstring | nulldata.expiresAtstring (date-time)requireddata.createdAtstring (date-time)requireddata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_recordAuthenticate', {
ceremony_id: '<ceremony_id>',
body: {
method: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_recordAuthenticate",
"arguments": {
"ceremony_id": "<ceremony_id>",
"body": {
"method": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}Consent
Record that the signer consented to electronic records
POST/v1/pacts/ceremony/{ceremony_id}/consent
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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
consentHashstringrequiredThe sha-256 of the consent statement the signer affirmed.
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredA 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, andsigner_authenticatedwere 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.signaturePackageIdstringrequireddata.signerActorIdstringrequireddata.sealedContentHashstringrequiredThe 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"requiredThe state of a ceremony session.
data.disclosureShownAtstring | null (date-time)data.consentGivenAtstring | null (date-time)data.authenticatedAtstring | null (date-time)data.authenticationMethodstring | nulldata.intentToSignAtstring | null (date-time)data.ipAddressHashstring | nulldata.userAgentHashstring | nulldata.expiresAtstring (date-time)requireddata.createdAtstring (date-time)requireddata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_recordConsent', {
ceremony_id: '<ceremony_id>',
body: {
consentHash: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_recordConsent",
"arguments": {
"ceremony_id": "<ceremony_id>",
"body": {
"consentHash": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}Disclosure
Record that the signer was shown the disclosure
POST/v1/pacts/ceremony/{ceremony_id}/disclosure
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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
disclosureHashstringrequiredThe 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}envelopeResponse fields
dataobjectrequiredA 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, andsigner_authenticatedwere 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.signaturePackageIdstringrequireddata.signerActorIdstringrequireddata.sealedContentHashstringrequiredThe 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"requiredThe state of a ceremony session.
data.disclosureShownAtstring | null (date-time)data.consentGivenAtstring | null (date-time)data.authenticatedAtstring | null (date-time)data.authenticationMethodstring | nulldata.intentToSignAtstring | null (date-time)data.ipAddressHashstring | nulldata.userAgentHashstring | nulldata.expiresAtstring (date-time)requireddata.createdAtstring (date-time)requireddata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_recordDisclosure', {
ceremony_id: '<ceremony_id>',
body: {
disclosureHash: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_recordDisclosure",
"arguments": {
"ceremony_id": "<ceremony_id>",
"body": {
"disclosureHash": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}Intent
Record that the signer affirmed their intent to sign
POST/v1/pacts/ceremony/{ceremony_id}/intent
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredA 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, andsigner_authenticatedwere 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.signaturePackageIdstringrequireddata.signerActorIdstringrequireddata.sealedContentHashstringrequiredThe 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"requiredThe state of a ceremony session.
data.disclosureShownAtstring | null (date-time)data.consentGivenAtstring | null (date-time)data.authenticatedAtstring | null (date-time)data.authenticationMethodstring | nulldata.intentToSignAtstring | null (date-time)data.ipAddressHashstring | nulldata.userAgentHashstring | nulldata.expiresAtstring (date-time)requireddata.createdAtstring (date-time)requireddata.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"'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_recordIntent', {
ceremony_id: '<ceremony_id>',
body: 'string',
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_recordIntent",
"arguments": {
"ceremony_id": "<ceremony_id>",
"body": "string",
"idempotency_key": "<a stable key per change>"
}
}
}Clause libraries
List libraries
GET/v1/pacts/clause-libraries
Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequireddata.librariesobject[]data.libraries[].[].idstringrequireddata.libraries[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.libraries[].[].scope.organizationIdstringrequireddata.libraries[].[].scope.workspaceIdstringrequireddata.libraries[].[].scope.projectIdstring | nulldata.libraries[].[].scope.environmentIdstringrequireddata.libraries[].[].namestringrequireddata.libraries[].[].descriptionstring | nulldata.libraries[].[].ownerActorIdstringrequireddata.libraries[].[].jurisdictionstring | nulldata.libraries[].[].languagestringrequireddata.libraries[].[].isDefaultbooleanrequireddata.libraries[].[].createdByActorIdstringrequireddata.libraries[].[].createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_listLibraries'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_listLibraries",
"arguments": {}
}
}Create library
POST/v1/pacts/clause-libraries
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 · stringrequiredRequired 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
namestringrequireddescriptionstring | nullownerActorIdstring | nullDefaults to the caller: a library's owner is whoever created it unless the caller names another owner.
jurisdictionstring | nulllanguagestring | nullisDefaultboolean | null
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredA 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.namestringrequireddata.descriptionstring | nulldata.ownerActorIdstringrequireddata.jurisdictionstring | nulldata.languagestringrequireddata.isDefaultbooleanrequireddata.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_createLibrary', {
body: {
name: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_createLibrary",
"arguments": {
"body": {
"name": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}
}Get library
GET/v1/pacts/clause-libraries/{library_id}
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}envelopeResponse fields
dataobjectrequiredA 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.namestringrequireddata.descriptionstring | nulldata.ownerActorIdstringrequireddata.jurisdictionstring | nulldata.languagestringrequireddata.isDefaultbooleanrequireddata.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_getLibrary', {
library_id: '<library_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_getLibrary",
"arguments": {
"library_id": "<library_id>"
}
}
}Update library
PATCH/v1/pacts/clause-libraries/{library_id}
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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 | nulldescriptionstring | nullownerActorIdstring | nulljurisdictionstring | nulllanguagestring | nullisDefaultboolean | null
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredA 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.namestringrequireddata.descriptionstring | nulldata.ownerActorIdstringrequireddata.jurisdictionstring | nulldata.languagestringrequireddata.isDefaultbooleanrequireddata.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_updateLibrary', {
library_id: '<library_id>',
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_updateLibrary",
"arguments": {
"library_id": "<library_id>",
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}
}Clauses
List clauses
GET/v1/pacts/clauses
Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.
Parameters
libraryIdquery · stringclauseTypequery · "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}envelopeResponse fields
dataobjectrequireddata.clausesobject[]data.clauses[].[].idstringrequireddata.clauses[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.clauses[].[].scope.organizationIdstringrequireddata.clauses[].[].scope.workspaceIdstringrequireddata.clauses[].[].scope.projectIdstring | nulldata.clauses[].[].scope.environmentIdstringrequireddata.clauses[].[].libraryIdstringrequireddata.clauses[].[].namestringrequireddata.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"requiredThe kind of reusable legal text a clause is.
data.clauses[].[].bodystringrequireddata.clauses[].[].bodySha256stringrequireddata.clauses[].[].jurisdictionstring | nulldata.clauses[].[].languagestringrequireddata.clauses[].[].clauseVersionstringrequireddata.clauses[].[].status"draft" | "approved" | "deprecated" | "blocked"requiredThe 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.
Approvedis the only state a playbook may treat as a position; the schema requires an approved clause to name its approver.data.clauses[].[].ownerActorIdstringrequireddata.clauses[].[].approvedByActorIdstring | nulldata.clauses[].[].approvedAtstring | null (date-time)data.clauses[].[].fallbackClauseIdsstring[]requireddata.clauses[].[].riskTagsstring[]requireddata.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"[]requireddata.clauses[].[].effectiveAtstring | null (date-time)data.clauses[].[].expiresAtstring | null (date-time)data.clauses[].[].createdByActorIdstringrequireddata.clauses[].[].createdAtstring (date-time)requireddata.clauses[].[].updatedAtstring (date-time)required
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/clauses" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_listClauses'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_listClauses",
"arguments": {}
}
}Create clause
POST/v1/pacts/clauses
Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.
Parameters
Idempotency-Keyheader · stringrequiredRequired 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
libraryIdstringrequirednamestringrequiredclauseType"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"requiredThe kind of reusable legal text a clause is.
bodystringrequiredThe clause text. The digest is computed from this server-side; there is no digest field to supply.
jurisdictionstring | nulllanguagestring | nullclauseVersionstring | nullownerActorIdstring | nullfallbackClauseIdsstring[]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}envelopeResponse fields
dataobjectrequiredA clause: versioned reusable legal text with an approval state.
body_sha256is computed by the service frombody, 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_idsis the ordered ladder to retreat to when the counterparty rejects this position.data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.libraryIdstringrequireddata.namestringrequireddata.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"requiredThe kind of reusable legal text a clause is.
data.bodystringrequireddata.bodySha256stringrequireddata.jurisdictionstring | nulldata.languagestringrequireddata.clauseVersionstringrequireddata.status"draft" | "approved" | "deprecated" | "blocked"requiredThe 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.
Approvedis the only state a playbook may treat as a position; the schema requires an approved clause to name its approver.data.ownerActorIdstringrequireddata.approvedByActorIdstring | nulldata.approvedAtstring | null (date-time)data.fallbackClauseIdsstring[]requireddata.riskTagsstring[]requireddata.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"[]requireddata.effectiveAtstring | null (date-time)data.expiresAtstring | null (date-time)data.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_createClause', {
body: {
libraryId: 'string',
name: 'string',
clauseType: 'confidentiality',
body: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_createClause",
"arguments": {
"body": {
"libraryId": "string",
"name": "string",
"clauseType": "confidentiality",
"body": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}Get clause
GET/v1/pacts/clauses/{clause_id}
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}envelopeResponse fields
dataobjectrequiredA clause: versioned reusable legal text with an approval state.
body_sha256is computed by the service frombody, 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_idsis the ordered ladder to retreat to when the counterparty rejects this position.data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.libraryIdstringrequireddata.namestringrequireddata.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"requiredThe kind of reusable legal text a clause is.
data.bodystringrequireddata.bodySha256stringrequireddata.jurisdictionstring | nulldata.languagestringrequireddata.clauseVersionstringrequireddata.status"draft" | "approved" | "deprecated" | "blocked"requiredThe 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.
Approvedis the only state a playbook may treat as a position; the schema requires an approved clause to name its approver.data.ownerActorIdstringrequireddata.approvedByActorIdstring | nulldata.approvedAtstring | null (date-time)data.fallbackClauseIdsstring[]requireddata.riskTagsstring[]requireddata.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"[]requireddata.effectiveAtstring | null (date-time)data.expiresAtstring | null (date-time)data.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_getClause', {
clause_id: '<clause_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_getClause",
"arguments": {
"clause_id": "<clause_id>"
}
}
}Update clause
PATCH/v1/pacts/clauses/{clause_id}
Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.
Parameters
clause_idpath · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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 | nullbodystring | nullA 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 | nulllanguagestring | nullclauseVersionstring | nullownerActorIdstring | nullfallbackClauseIdsarray | nullriskTagsarray | nulldataClassesarray | nulleffectiveAtstring | null (date-time)expiresAtstring | null (date-time)
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredA clause: versioned reusable legal text with an approval state.
body_sha256is computed by the service frombody, 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_idsis the ordered ladder to retreat to when the counterparty rejects this position.data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.libraryIdstringrequireddata.namestringrequireddata.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"requiredThe kind of reusable legal text a clause is.
data.bodystringrequireddata.bodySha256stringrequireddata.jurisdictionstring | nulldata.languagestringrequireddata.clauseVersionstringrequireddata.status"draft" | "approved" | "deprecated" | "blocked"requiredThe 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.
Approvedis the only state a playbook may treat as a position; the schema requires an approved clause to name its approver.data.ownerActorIdstringrequireddata.approvedByActorIdstring | nulldata.approvedAtstring | null (date-time)data.fallbackClauseIdsstring[]requireddata.riskTagsstring[]requireddata.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"[]requireddata.effectiveAtstring | null (date-time)data.expiresAtstring | null (date-time)data.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_updateClause', {
clause_id: '<clause_id>',
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_updateClause",
"arguments": {
"clause_id": "<clause_id>",
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}Deprecate
Deprecate a clause
POST/v1/pacts/clauses/{clause_id}/deprecate
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredA clause: versioned reusable legal text with an approval state.
body_sha256is computed by the service frombody, 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_idsis the ordered ladder to retreat to when the counterparty rejects this position.data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.libraryIdstringrequireddata.namestringrequireddata.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"requiredThe kind of reusable legal text a clause is.
data.bodystringrequireddata.bodySha256stringrequireddata.jurisdictionstring | nulldata.languagestringrequireddata.clauseVersionstringrequireddata.status"draft" | "approved" | "deprecated" | "blocked"requiredThe 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.
Approvedis the only state a playbook may treat as a position; the schema requires an approved clause to name its approver.data.ownerActorIdstringrequireddata.approvedByActorIdstring | nulldata.approvedAtstring | null (date-time)data.fallbackClauseIdsstring[]requireddata.riskTagsstring[]requireddata.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"[]requireddata.effectiveAtstring | null (date-time)data.expiresAtstring | null (date-time)data.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_deprecateClause', {
clause_id: '<clause_id>',
body: 'string',
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_deprecateClause",
"arguments": {
"clause_id": "<clause_id>",
"body": "string",
"idempotency_key": "<a stable key per change>"
}
}
}
}Deprecate a playbook
POST/v1/pacts/playbooks/{playbook_id}/deprecate
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredA playbook: the positions and rules that govern a class of agreements.
fallback_positionsandescalation_rulesare 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.namestringrequireddata.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"[]requireddata.jurisdictionstring | nulldata.partyRole"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other" | nulldata.ownerActorIdstringrequireddata.status"draft" | "active" | "deprecated"requiredWhere a playbook sits in its working life.
data.approvedClauseIdsstring[]requireddata.blockedClausePatternsstring[]requireddata.fallbackPositionsanyrequireddata.escalationRulesanyrequireddata.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_deprecatePlaybook', {
playbook_id: '<playbook_id>',
body: 'string',
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_deprecatePlaybook",
"arguments": {
"playbook_id": "<playbook_id>",
"body": "string",
"idempotency_key": "<a stable key per change>"
}
}
}
}Evidence
List evidence
GET/v1/pacts/evidence
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 · stringsubjectResourceIdquery · string
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequireddata.evidenceobject[]data.evidence[].[].idstringrequireddata.evidence[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.evidence[].[].scope.organizationIdstringrequireddata.evidence[].[].scope.workspaceIdstringrequireddata.evidence[].[].scope.projectIdstring | nulldata.evidence[].[].scope.environmentIdstringrequireddata.evidence[].[].uristringrequireddata.evidence[].[].artifactIdstring | nulldata.evidence[].[].sha256stringrequiredBare 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[].[].contentTypestringrequireddata.evidence[].[].byteSizeinteger | null (int64)data.evidence[].[].source"upload" | "email" | "chat" | "api" | "mcp" | "model" | "approval" | "signature" | "workflow" | "audit" | "external"requiredWhere a piece of evidence came from. The provenance of a reference decides how much of the record a verifier can reconstruct: an
uploadpoints at bytes Pacts stored, anexternalreference is a notarized claim about bytes it never held.data.evidence[].[].redactionState"raw" | "redacted" | "encrypted" | "withheld"requiredWhether the referenced content is in the clear.
data.evidence[].[].privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"requiredA privilege assertion.
Nonemeans none is claimed.data.evidence[].[].subjectResourceTypestring | nullWhat 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 | nulldata.evidence[].[].createdByActorIdstring | nullNullable 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_listEvidence'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_listEvidence",
"arguments": {}
}
}Record an evidence reference
POST/v1/pacts/evidence
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 · stringrequiredRequired 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
uristringrequiredartifactIdstring | nullsha256stringrequiredThe 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.
contentTypestringrequiredbyteSizeinteger | null (int64)source"upload" | "email" | "chat" | "api" | "mcp" | "model" | "approval" | "signature" | "workflow" | "audit" | "external"requiredWhere a piece of evidence came from. The provenance of a reference decides how much of the record a verifier can reconstruct: an
uploadpoints at bytes Pacts stored, anexternalreference is a notarized claim about bytes it never held.redactionState"raw" | "redacted" | "encrypted" | "withheld" | nullprivilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest" | nullsubjectResourceTypestring | nullsubjectResourceIdstring | null
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredA 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
sha256is required and why the row is append-only: re-pointing a reference would change what an approval or a signature cited.data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.uristringrequireddata.artifactIdstring | nulldata.sha256stringrequiredBare 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.contentTypestringrequireddata.byteSizeinteger | null (int64)data.source"upload" | "email" | "chat" | "api" | "mcp" | "model" | "approval" | "signature" | "workflow" | "audit" | "external"requiredWhere a piece of evidence came from. The provenance of a reference decides how much of the record a verifier can reconstruct: an
uploadpoints at bytes Pacts stored, anexternalreference is a notarized claim about bytes it never held.data.redactionState"raw" | "redacted" | "encrypted" | "withheld"requiredWhether the referenced content is in the clear.
data.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"requiredA privilege assertion.
Nonemeans none is claimed.data.subjectResourceTypestring | nullWhat 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 | nulldata.createdByActorIdstring | nullNullable 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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_recordEvidence', {
body: {
uri: 'string',
sha256: 'string',
contentType: 'string',
source: 'upload',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_recordEvidence",
"arguments": {
"body": {
"uri": "string",
"sha256": "string",
"contentType": "string",
"source": "upload"
},
"idempotency_key": "<a stable key per change>"
}
}
}Get evidence
GET/v1/pacts/evidence/{evidence_id}
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}envelopeResponse fields
dataobjectrequiredA 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
sha256is required and why the row is append-only: re-pointing a reference would change what an approval or a signature cited.data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.uristringrequireddata.artifactIdstring | nulldata.sha256stringrequiredBare 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.contentTypestringrequireddata.byteSizeinteger | null (int64)data.source"upload" | "email" | "chat" | "api" | "mcp" | "model" | "approval" | "signature" | "workflow" | "audit" | "external"requiredWhere a piece of evidence came from. The provenance of a reference decides how much of the record a verifier can reconstruct: an
uploadpoints at bytes Pacts stored, anexternalreference is a notarized claim about bytes it never held.data.redactionState"raw" | "redacted" | "encrypted" | "withheld"requiredWhether the referenced content is in the clear.
data.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"requiredA privilege assertion.
Nonemeans none is claimed.data.subjectResourceTypestring | nullWhat 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 | nulldata.createdByActorIdstring | nullNullable 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_getEvidence', {
evidence_id: '<evidence_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_getEvidence",
"arguments": {
"evidence_id": "<evidence_id>"
}
}
}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
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 · stringrequiredRequired 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"requiredWhat 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 | nullThe subject. At least one is required — a bundle must be about something.
matterIdstring | nullevidenceRefIdsstring[]requiredThe member refs, in bundle order. Order is part of what the bundle asserts: a negotiation history reads differently rearranged.
anchorboolean | nullAnchor 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 | nullThe Auto org this bundle's signature is for (a company One runs). Forwarded to Auto's
signcheck.
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredThe 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)requireddata.bundleIdstringrequireddata.bundleTypestringrequireddata.organizationIdstringrequireddata.workspaceIdstringrequireddata.projectIdstring | nulldata.environmentIdstringrequireddata.pactIdstring | nulldata.matterIdstring | nulldata.manifestRefstringrequireddata.manifestSha256stringrequiredThe manifest digest as recorded on the bundle row. The verifier recomputes it from
manifestrather than trusting this copy — which is what makes a doctored export detectable.data.evidenceRefCountinteger (int32)requireddata.createdByActorIdstringrequireddata.createdAtstringrequireddata.manifestobjectrequiredThe 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)requireddata.manifest.bundleIdstringrequireddata.manifest.bundleTypestringrequireddata.manifest.organizationIdstringrequireddata.manifest.workspaceIdstringrequireddata.manifest.projectIdstring | nulldata.manifest.environmentIdstringrequireddata.manifest.pactIdstring | nulldata.manifest.matterIdstring | nulldata.manifest.entriesobject[]requiredThe refs, in bundle order.
data.manifest.entries[].[].ordinalinteger (int32)required1-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[].[].evidenceRefIdstringrequireddata.manifest.entries[].[].sha256stringrequiredBare lowercase hex of the ref's content digest, as recorded.
data.manifest.entries[].[].uristringrequireddata.manifest.entries[].[].contentTypestringrequireddata.manifest.entries[].[].byteSizeinteger | null (int64)data.manifest.entriesDigeststringrequiredThe ordered-set digest of
entries, computed by [entries_digest_of].data.manifest.createdByActorIdstringrequireddata.manifest.createdAtstringrequiredCanonical text (see [
canonical_time_text]): the bundle row'screated_at, at storage precision.data.evidenceRefsobject[]requireddata.evidenceRefs[].[].idstringrequireddata.evidenceRefs[].[].uristringrequireddata.evidenceRefs[].[].sha256stringrequireddata.evidenceRefs[].[].contentTypestringrequireddata.evidenceRefs[].[].byteSizeinteger | null (int64)data.evidenceRefs[].[].sourcestringrequireddata.evidenceRefs[].[].redactionStatestringrequireddata.signatureobject | nulldata.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": []
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_createBundle', {
body: {
bundleType: 'signature_certificate',
evidenceRefIds: [],
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_createBundle",
"arguments": {
"body": {
"bundleType": "signature_certificate",
"evidenceRefIds": []
},
"idempotency_key": "<a stable key per change>"
}
}
}A bundle with its refs in order and its manifest — the API view
GET/v1/pacts/evidence/bundles/{bundle_id}
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}envelopeResponse fields
dataobjectrequireddata.bundleanydata.evidenceRefsobject[]data.evidenceRefs[].[].idstringrequireddata.evidenceRefs[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.evidenceRefs[].[].scope.organizationIdstringrequireddata.evidenceRefs[].[].scope.workspaceIdstringrequireddata.evidenceRefs[].[].scope.projectIdstring | nulldata.evidenceRefs[].[].scope.environmentIdstringrequireddata.evidenceRefs[].[].uristringrequireddata.evidenceRefs[].[].artifactIdstring | nulldata.evidenceRefs[].[].sha256stringrequiredBare 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[].[].contentTypestringrequireddata.evidenceRefs[].[].byteSizeinteger | null (int64)data.evidenceRefs[].[].source"upload" | "email" | "chat" | "api" | "mcp" | "model" | "approval" | "signature" | "workflow" | "audit" | "external"requiredWhere a piece of evidence came from. The provenance of a reference decides how much of the record a verifier can reconstruct: an
uploadpoints at bytes Pacts stored, anexternalreference is a notarized claim about bytes it never held.data.evidenceRefs[].[].redactionState"raw" | "redacted" | "encrypted" | "withheld"requiredWhether the referenced content is in the clear.
data.evidenceRefs[].[].privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"requiredA privilege assertion.
Nonemeans none is claimed.data.evidenceRefs[].[].subjectResourceTypestring | nullWhat 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 | nulldata.evidenceRefs[].[].createdByActorIdstring | nullNullable in the schema: system-recorded evidence (a model run's output) has no human author.
data.evidenceRefs[].[].createdAtstring (date-time)requireddata.manifestanydata.anchorany
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/evidence/bundles/$BUNDLE_ID" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_getBundle', {
bundle_id: '<bundle_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_getBundle",
"arguments": {
"bundle_id": "<bundle_id>"
}
}
}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
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}envelopeResponse fields
dataobjectrequireddata.bundleanydata.offlineVerificationPassedboolean
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/evidence/bundles/$BUNDLE_ID/download" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_downloadBundle', {
bundle_id: '<bundle_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_downloadBundle",
"arguments": {
"bundle_id": "<bundle_id>"
}
}
}Seal a bundle: anchor its manifest digest
POST/v1/pacts/evidence/bundles/{bundle_id}/seal
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequireddata.bundleIdstringdata.anchoredbooleandata.receiptIdstringdata.anchoredAtanydata.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"'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_sealBundle', {
bundle_id: '<bundle_id>',
body: 'string',
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_sealBundle",
"arguments": {
"bundle_id": "<bundle_id>",
"body": "string",
"idempotency_key": "<a stable key per change>"
}
}
}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
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequireddata.bundleIdstringdata.manifestSha256anydata.verifiedbooleandata.failureanydata.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"'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_verifyBundle', {
bundle_id: '<bundle_id>',
body: 'string',
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_verifyBundle",
"arguments": {
"bundle_id": "<bundle_id>",
"body": "string",
"idempotency_key": "<a stable key per change>"
}
}
}Evidence about a matter
GET/v1/pacts/matters/{matter_id}/evidence
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}envelopeResponse fields
dataobjectrequireddata.evidenceobject[]data.evidence[].[].idstringrequireddata.evidence[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.evidence[].[].scope.organizationIdstringrequireddata.evidence[].[].scope.workspaceIdstringrequireddata.evidence[].[].scope.projectIdstring | nulldata.evidence[].[].scope.environmentIdstringrequireddata.evidence[].[].uristringrequireddata.evidence[].[].artifactIdstring | nulldata.evidence[].[].sha256stringrequiredBare 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[].[].contentTypestringrequireddata.evidence[].[].byteSizeinteger | null (int64)data.evidence[].[].source"upload" | "email" | "chat" | "api" | "mcp" | "model" | "approval" | "signature" | "workflow" | "audit" | "external"requiredWhere a piece of evidence came from. The provenance of a reference decides how much of the record a verifier can reconstruct: an
uploadpoints at bytes Pacts stored, anexternalreference is a notarized claim about bytes it never held.data.evidence[].[].redactionState"raw" | "redacted" | "encrypted" | "withheld"requiredWhether the referenced content is in the clear.
data.evidence[].[].privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"requiredA privilege assertion.
Nonemeans none is claimed.data.evidence[].[].subjectResourceTypestring | nullWhat 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 | nulldata.evidence[].[].createdByActorIdstring | nullNullable 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_listMatterEvidence', {
matter_id: '<matter_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_listMatterEvidence",
"arguments": {
"matter_id": "<matter_id>"
}
}
}Evidence about a pact: the subject-scoped listing a bundle is assembled from
GET/v1/pacts/pacts/{pact_id}/evidence
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}envelopeResponse fields
dataobjectrequireddata.evidenceobject[]data.evidence[].[].idstringrequireddata.evidence[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.evidence[].[].scope.organizationIdstringrequireddata.evidence[].[].scope.workspaceIdstringrequireddata.evidence[].[].scope.projectIdstring | nulldata.evidence[].[].scope.environmentIdstringrequireddata.evidence[].[].uristringrequireddata.evidence[].[].artifactIdstring | nulldata.evidence[].[].sha256stringrequiredBare 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[].[].contentTypestringrequireddata.evidence[].[].byteSizeinteger | null (int64)data.evidence[].[].source"upload" | "email" | "chat" | "api" | "mcp" | "model" | "approval" | "signature" | "workflow" | "audit" | "external"requiredWhere a piece of evidence came from. The provenance of a reference decides how much of the record a verifier can reconstruct: an
uploadpoints at bytes Pacts stored, anexternalreference is a notarized claim about bytes it never held.data.evidence[].[].redactionState"raw" | "redacted" | "encrypted" | "withheld"requiredWhether the referenced content is in the clear.
data.evidence[].[].privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"requiredA privilege assertion.
Nonemeans none is claimed.data.evidence[].[].subjectResourceTypestring | nullWhat 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 | nulldata.evidence[].[].createdByActorIdstring | nullNullable 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_listPactEvidence', {
pact_id: '<pact_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_listPactEvidence",
"arguments": {
"pact_id": "<pact_id>"
}
}
}Legal holds
List holds
GET/v1/pacts/legal-holds
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}envelopeResponse fields
dataobjectrequireddata.holdsobject[]data.holds[].[].idstringrequireddata.holds[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.holds[].[].scope.organizationIdstringrequireddata.holds[].[].scope.workspaceIdstringrequireddata.holds[].[].scope.projectIdstring | nulldata.holds[].[].scope.environmentIdstringrequireddata.holds[].[].namestringrequireddata.holds[].[].targetType"matter" | "pact" | "party" | "tenant"requiredWhat a legal hold preserves. A
Tenanthold names no target id: the scope columns are the target, and it covers every record in the scope.data.holds[].[].targetIdstring | nullNoneonly 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"requiredThe state of a legal hold.
Expiredis reachable by a sweep, not by the API: a hold whoseexpires_athas 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[].[].basisstringrequiredThe legal basis: the matter number, the preservation letter, the regulator.
data.holds[].[].issuedByActorIdstringrequiredWho placed the hold. Always the authenticated caller — never supplied, like an approver, so the record of who acted cannot be claimed.
data.holds[].[].counselActorIdstringrequiredThe 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)requireddata.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 | nulldata.holds[].[].releaseReasonstring | nulldata.holds[].[].createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_listHolds'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_listHolds",
"arguments": {}
}
}Place a legal hold
POST/v1/pacts/legal-holds
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 · stringrequiredRequired 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
namestringrequiredtargetType"matter" | "pact" | "party" | "tenant"requiredWhat a legal hold preserves. A
Tenanthold names no target id: the scope columns are the target, and it covers every record in the scope.targetIdstring | nullRequired for a matter, pact, or party hold; must be absent for a tenant-wide hold, where the scope itself is the target.
basisstringrequiredThe legal basis: the matter number, the preservation letter, the regulator.
counselActorIdstringrequiredThe 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}envelopeResponse fields
dataobjectrequiredA 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_deleteto 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 — isactive. Release is accountable.pacts_holds_release_is_accountablerequires 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.namestringrequireddata.targetType"matter" | "pact" | "party" | "tenant"requiredWhat a legal hold preserves. A
Tenanthold names no target id: the scope columns are the target, and it covers every record in the scope.data.targetIdstring | nullNoneonly 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"requiredThe state of a legal hold.
Expiredis reachable by a sweep, not by the API: a hold whoseexpires_athas 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.basisstringrequiredThe legal basis: the matter number, the preservation letter, the regulator.
data.issuedByActorIdstringrequiredWho placed the hold. Always the authenticated caller — never supplied, like an approver, so the record of who acted cannot be claimed.
data.counselActorIdstringrequiredThe counsel responsible for the instruction. Identifiable and required: a hold is a legal instruction, and releasing one wrongly is spoliation.
data.issuedAtstring (date-time)requireddata.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 | nulldata.releaseReasonstring | nulldata.createdAtstring (date-time)requireddata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_createHold', {
body: {
name: 'string',
targetType: 'matter',
basis: 'string',
counselActorId: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_createHold",
"arguments": {
"body": {
"name": "string",
"targetType": "matter",
"basis": "string",
"counselActorId": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}
}Get hold
GET/v1/pacts/legal-holds/{hold_id}
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}envelopeResponse fields
dataobjectrequiredA 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_deleteto 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 — isactive. Release is accountable.pacts_holds_release_is_accountablerequires 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.namestringrequireddata.targetType"matter" | "pact" | "party" | "tenant"requiredWhat a legal hold preserves. A
Tenanthold names no target id: the scope columns are the target, and it covers every record in the scope.data.targetIdstring | nullNoneonly 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"requiredThe state of a legal hold.
Expiredis reachable by a sweep, not by the API: a hold whoseexpires_athas 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.basisstringrequiredThe legal basis: the matter number, the preservation letter, the regulator.
data.issuedByActorIdstringrequiredWho placed the hold. Always the authenticated caller — never supplied, like an approver, so the record of who acted cannot be claimed.
data.counselActorIdstringrequiredThe counsel responsible for the instruction. Identifiable and required: a hold is a legal instruction, and releasing one wrongly is spoliation.
data.issuedAtstring (date-time)requireddata.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 | nulldata.releaseReasonstring | nulldata.createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_getHold', {
hold_id: '<hold_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_getHold",
"arguments": {
"hold_id": "<hold_id>"
}
}
}Amend an active hold: its name, basis, counsel, or advisory expiry
PATCH/v1/pacts/legal-holds/{hold_id}
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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 | nullbasisstring | nullcounselActorIdstring | nullexpiresAtstring | null (date-time)nullclears 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}envelopeResponse fields
dataobjectrequiredA 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_deleteto 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 — isactive. Release is accountable.pacts_holds_release_is_accountablerequires 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.namestringrequireddata.targetType"matter" | "pact" | "party" | "tenant"requiredWhat a legal hold preserves. A
Tenanthold names no target id: the scope columns are the target, and it covers every record in the scope.data.targetIdstring | nullNoneonly 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"requiredThe state of a legal hold.
Expiredis reachable by a sweep, not by the API: a hold whoseexpires_athas 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.basisstringrequiredThe legal basis: the matter number, the preservation letter, the regulator.
data.issuedByActorIdstringrequiredWho placed the hold. Always the authenticated caller — never supplied, like an approver, so the record of who acted cannot be claimed.
data.counselActorIdstringrequiredThe counsel responsible for the instruction. Identifiable and required: a hold is a legal instruction, and releasing one wrongly is spoliation.
data.issuedAtstring (date-time)requireddata.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 | nulldata.releaseReasonstring | nulldata.createdAtstring (date-time)requireddata.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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_updateHold', {
hold_id: '<hold_id>',
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_updateHold",
"arguments": {
"hold_id": "<hold_id>",
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}
}Release
Release a hold, with the reason the release will answer for
POST/v1/pacts/legal-holds/{hold_id}/release
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredA 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_deleteto 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 — isactive. Release is accountable.pacts_holds_release_is_accountablerequires 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.namestringrequireddata.targetType"matter" | "pact" | "party" | "tenant"requiredWhat a legal hold preserves. A
Tenanthold names no target id: the scope columns are the target, and it covers every record in the scope.data.targetIdstring | nullNoneonly 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"requiredThe state of a legal hold.
Expiredis reachable by a sweep, not by the API: a hold whoseexpires_athas 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.basisstringrequiredThe legal basis: the matter number, the preservation letter, the regulator.
data.issuedByActorIdstringrequiredWho placed the hold. Always the authenticated caller — never supplied, like an approver, so the record of who acted cannot be claimed.
data.counselActorIdstringrequiredThe counsel responsible for the instruction. Identifiable and required: a hold is a legal instruction, and releasing one wrongly is spoliation.
data.issuedAtstring (date-time)requireddata.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 | nulldata.releaseReasonstring | nulldata.createdAtstring (date-time)requireddata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_releaseHold', {
hold_id: '<hold_id>',
body: {
reason: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_releaseHold",
"arguments": {
"hold_id": "<hold_id>",
"body": {
"reason": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}
}Matters
List matters
GET/v1/pacts/matters
Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequireddata.mattersobject[]data.matters[].[].idstringrequireddata.matters[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.matters[].[].scope.organizationIdstringrequireddata.matters[].[].scope.workspaceIdstringrequireddata.matters[].[].scope.projectIdstring | nulldata.matters[].[].scope.environmentIdstringrequireddata.matters[].[].namestringrequireddata.matters[].[].matterType"commercial_contract" | "vendor_procurement" | "customer_sales" | "employment" | "fundraising" | "ip" | "privacy" | "security" | "litigation" | "compliance" | "corporate" | "real_estate" | "other"requiredWhat kind of legal matter this is.
data.matters[].[].status"open" | "paused" | "closed" | "archived"requiredWhere a matter sits in its working life.
data.matters[].[].ownerActorIdstringrequireddata.matters[].[].legalOwnerActorIdstring | nulldata.matters[].[].labelsstring[]requireddata.matters[].[].privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"requiredA privilege assertion.
Nonemeans none is claimed.data.matters[].[].retentionPolicyIdstring | nulldata.matters[].[].createdByActorIdstringrequireddata.matters[].[].createdAtstring (date-time)requireddata.matters[].[].updatedAtstring (date-time)requireddata.matters[].[].closedAtstring | null (date-time)
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/matters" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_listMatters'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_listMatters",
"arguments": {}
}
}Create a matter
POST/v1/pacts/matters
Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.
Parameters
Idempotency-Keyheader · stringrequiredRequired 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
namestringrequiredmatterType"commercial_contract" | "vendor_procurement" | "customer_sales" | "employment" | "fundraising" | "ip" | "privacy" | "security" | "litigation" | "compliance" | "corporate" | "real_estate" | "other"requiredWhat kind of legal matter this is.
ownerActorIdstring | nulllegalOwnerActorIdstring | nulllabelsstring[]privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest" | nullretentionPolicyIdstring | null
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredA matter: the legal workspace pacts belong to.
data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.namestringrequireddata.matterType"commercial_contract" | "vendor_procurement" | "customer_sales" | "employment" | "fundraising" | "ip" | "privacy" | "security" | "litigation" | "compliance" | "corporate" | "real_estate" | "other"requiredWhat kind of legal matter this is.
data.status"open" | "paused" | "closed" | "archived"requiredWhere a matter sits in its working life.
data.ownerActorIdstringrequireddata.legalOwnerActorIdstring | nulldata.labelsstring[]requireddata.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"requiredA privilege assertion.
Nonemeans none is claimed.data.retentionPolicyIdstring | nulldata.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requireddata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_createMatter', {
body: {
name: 'string',
matterType: 'commercial_contract',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_createMatter",
"arguments": {
"body": {
"name": "string",
"matterType": "commercial_contract"
},
"idempotency_key": "<a stable key per change>"
}
}
}Get matter
GET/v1/pacts/matters/{matter_id}
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}envelopeResponse fields
dataobjectrequiredA matter: the legal workspace pacts belong to.
data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.namestringrequireddata.matterType"commercial_contract" | "vendor_procurement" | "customer_sales" | "employment" | "fundraising" | "ip" | "privacy" | "security" | "litigation" | "compliance" | "corporate" | "real_estate" | "other"requiredWhat kind of legal matter this is.
data.status"open" | "paused" | "closed" | "archived"requiredWhere a matter sits in its working life.
data.ownerActorIdstringrequireddata.legalOwnerActorIdstring | nulldata.labelsstring[]requireddata.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"requiredA privilege assertion.
Nonemeans none is claimed.data.retentionPolicyIdstring | nulldata.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_getMatter', {
matter_id: '<matter_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_getMatter",
"arguments": {
"matter_id": "<matter_id>"
}
}
}Update matter
PATCH/v1/pacts/matters/{matter_id}
Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.
Parameters
matter_idpath · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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 | nullownerActorIdstring | nulllegalOwnerActorIdstring | nullThree-state: absent leaves alone, null clears, value sets.
labelsarray | nullprivilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest" | null
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredA matter: the legal workspace pacts belong to.
data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.namestringrequireddata.matterType"commercial_contract" | "vendor_procurement" | "customer_sales" | "employment" | "fundraising" | "ip" | "privacy" | "security" | "litigation" | "compliance" | "corporate" | "real_estate" | "other"requiredWhat kind of legal matter this is.
data.status"open" | "paused" | "closed" | "archived"requiredWhere a matter sits in its working life.
data.ownerActorIdstringrequireddata.legalOwnerActorIdstring | nulldata.labelsstring[]requireddata.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"requiredA privilege assertion.
Nonemeans none is claimed.data.retentionPolicyIdstring | nulldata.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requireddata.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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_updateMatter', {
matter_id: '<matter_id>',
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_updateMatter",
"arguments": {
"matter_id": "<matter_id>",
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}Archive
Archive matter
POST/v1/pacts/matters/{matter_id}/archive
Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.
Parameters
matter_idpath · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredA matter: the legal workspace pacts belong to.
data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.namestringrequireddata.matterType"commercial_contract" | "vendor_procurement" | "customer_sales" | "employment" | "fundraising" | "ip" | "privacy" | "security" | "litigation" | "compliance" | "corporate" | "real_estate" | "other"requiredWhat kind of legal matter this is.
data.status"open" | "paused" | "closed" | "archived"requiredWhere a matter sits in its working life.
data.ownerActorIdstringrequireddata.legalOwnerActorIdstring | nulldata.labelsstring[]requireddata.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"requiredA privilege assertion.
Nonemeans none is claimed.data.retentionPolicyIdstring | nulldata.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_archiveMatter', {
matter_id: '<matter_id>',
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_archiveMatter",
"arguments": {
"matter_id": "<matter_id>",
"idempotency_key": "<a stable key per change>"
}
}
}Archive a pact
POST/v1/pacts/pacts/{pact_id}/archive
Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.
Parameters
pact_idpath · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredA pact: the canonical agreement container.
data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.matterIdstring | nulldata.namestringrequireddata.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"requiredThe 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"requiredThe 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"requiredHow much legal weight a pact's signatures may carry.
data.governingLawstring | nulldata.venuestring | nulldata.primaryLanguagestringrequireddata.valueobject | nulldata.startDatestring | null (date)data.effectiveDatestring | null (date)data.expirationDatestring | null (date)data.renewalanydata.riskSummaryanydata.aiSummarystring | nulldata.createdByActorIdstringrequireddata.responsibleAttorneyActorIdstring | nulldata.businessOwnerActorIdstring | nulldata.confidentialityClass"public" | "internal" | "confidential" | "highly_confidential" | "restricted"requiredHow sensitive the record is.
data.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"requiredA privilege assertion.
Nonemeans none is claimed.data.currentDocumentVersionIdstring | nulldata.signaturePackageIdstring | nulldata.createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_archivePact', {
pact_id: '<pact_id>',
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_archivePact",
"arguments": {
"pact_id": "<pact_id>",
"idempotency_key": "<a stable key per change>"
}
}
}Audit
Get matter audit
GET/v1/pacts/matters/{matter_id}/audit
Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.
Parameters
matter_idpath · stringrequiredlimitquery · integer (int64)
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequireddata.matterIdstringdata.eventsany
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/matters/$MATTER_ID/audit" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_getMatterAudit', {
matter_id: '<matter_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_getMatterAudit",
"arguments": {
"matter_id": "<matter_id>"
}
}
}Get pact audit
GET/v1/pacts/pacts/{pact_id}/audit
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}envelopeResponse fields
dataobjectrequireddata.pactIdstringdata.eventsany
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/pacts/$PACT_ID/audit" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_getPactAudit', {
pact_id: '<pact_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_getPactAudit",
"arguments": {
"pact_id": "<pact_id>"
}
}
}Close
Close matter
POST/v1/pacts/matters/{matter_id}/close
Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.
Parameters
matter_idpath · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredA matter: the legal workspace pacts belong to.
data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.namestringrequireddata.matterType"commercial_contract" | "vendor_procurement" | "customer_sales" | "employment" | "fundraising" | "ip" | "privacy" | "security" | "litigation" | "compliance" | "corporate" | "real_estate" | "other"requiredWhat kind of legal matter this is.
data.status"open" | "paused" | "closed" | "archived"requiredWhere a matter sits in its working life.
data.ownerActorIdstringrequireddata.legalOwnerActorIdstring | nulldata.labelsstring[]requireddata.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"requiredA privilege assertion.
Nonemeans none is claimed.data.retentionPolicyIdstring | nulldata.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_closeMatter', {
matter_id: '<matter_id>',
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_closeMatter",
"arguments": {
"matter_id": "<matter_id>",
"idempotency_key": "<a stable key per change>"
}
}
}Obligations
List obligations
GET/v1/pacts/obligations
Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequireddata.obligationsobject[]data.obligations[].[].idstringrequireddata.obligations[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.obligations[].[].scope.organizationIdstringrequireddata.obligations[].[].scope.workspaceIdstringrequireddata.obligations[].[].scope.projectIdstring | nulldata.obligations[].[].scope.environmentIdstringrequireddata.obligations[].[].pactIdstringrequireddata.obligations[].[].sourceVersionIdstringrequireddata.obligations[].[].sourceClauseRefanyrequireddata.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"requiredThe kind of duty an obligation is.
data.obligations[].[].owedByPartyIdstringrequireddata.obligations[].[].owedToPartyIdstringrequireddata.obligations[].[].responsibleActorIdstring | nulldata.obligations[].[].descriptionstringrequireddata.obligations[].[].trigger"effective_date" | "signature_date" | "calendar_date" | "renewal_window" | "notice_received" | "incident" | "invoice" | "milestone" | "manual"requiredWhat fires an obligation into action.
data.obligations[].[].dueAtstring | null (date-time)data.obligations[].[].recurrenceanydata.obligations[].[].status"draft" | "active" | "due_soon" | "overdue" | "fulfilled" | "waived" | "breached" | "disputed" | "terminated"requiredThe state of an obligation.
data.obligations[].[].confidencenumberrequireddata.obligations[].[].extractedByModelstring | nulldata.obligations[].[].confirmedByActorIdstring | nulldata.obligations[].[].confirmedAtstring | null (date-time)data.obligations[].[].workflowRunIdstring | nulldata.obligations[].[].lastCheckedAtstring | null (date-time)data.obligations[].[].createdByActorIdstringrequireddata.obligations[].[].createdAtstring (date-time)requireddata.obligations[].[].updatedAtstring (date-time)required
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/obligations" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_listObligations'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_listObligations",
"arguments": {}
}
}Get obligation
GET/v1/pacts/obligations/{obligation_id}
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}envelopeResponse fields
dataobjectrequireddata.obligationobjectAn obligation: a duty an agreement imposes after signature. Extraction is a model output, so
confidenceis stored and an extracted obligation stays indraftuntil 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.idstringrequireddata.obligation.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.obligation.scope.organizationIdstringrequireddata.obligation.scope.workspaceIdstringrequireddata.obligation.scope.projectIdstring | nulldata.obligation.scope.environmentIdstringrequireddata.obligation.pactIdstringrequireddata.obligation.sourceVersionIdstringrequireddata.obligation.sourceClauseRefanyrequireddata.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"requiredThe kind of duty an obligation is.
data.obligation.owedByPartyIdstringrequireddata.obligation.owedToPartyIdstringrequireddata.obligation.responsibleActorIdstring | nulldata.obligation.descriptionstringrequireddata.obligation.trigger"effective_date" | "signature_date" | "calendar_date" | "renewal_window" | "notice_received" | "incident" | "invoice" | "milestone" | "manual"requiredWhat fires an obligation into action.
data.obligation.dueAtstring | null (date-time)data.obligation.recurrenceanydata.obligation.status"draft" | "active" | "due_soon" | "overdue" | "fulfilled" | "waived" | "breached" | "disputed" | "terminated"requiredThe state of an obligation.
data.obligation.confidencenumberrequireddata.obligation.extractedByModelstring | nulldata.obligation.confirmedByActorIdstring | nulldata.obligation.confirmedAtstring | null (date-time)data.obligation.workflowRunIdstring | nulldata.obligation.lastCheckedAtstring | null (date-time)data.obligation.createdByActorIdstringrequireddata.obligation.createdAtstring (date-time)requireddata.obligation.updatedAtstring (date-time)requireddata.eventsany
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/obligations/$OBLIGATION_ID" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_getObligation', {
obligation_id: '<obligation_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_getObligation",
"arguments": {
"obligation_id": "<obligation_id>"
}
}
}Update obligation
PATCH/v1/pacts/obligations/{obligation_id}
Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.
Parameters
obligation_idpath · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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 | nullresponsibleActorIdstring | nulldueAtstring | null (date-time)recurrenceany
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredAn obligation: a duty an agreement imposes after signature. Extraction is a model output, so
confidenceis stored and an extracted obligation stays indraftuntil 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.pactIdstringrequireddata.sourceVersionIdstringrequireddata.sourceClauseRefanyrequireddata.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"requiredThe kind of duty an obligation is.
data.owedByPartyIdstringrequireddata.owedToPartyIdstringrequireddata.responsibleActorIdstring | nulldata.descriptionstringrequireddata.trigger"effective_date" | "signature_date" | "calendar_date" | "renewal_window" | "notice_received" | "incident" | "invoice" | "milestone" | "manual"requiredWhat fires an obligation into action.
data.dueAtstring | null (date-time)data.recurrenceanydata.status"draft" | "active" | "due_soon" | "overdue" | "fulfilled" | "waived" | "breached" | "disputed" | "terminated"requiredThe state of an obligation.
data.confidencenumberrequireddata.extractedByModelstring | nulldata.confirmedByActorIdstring | nulldata.confirmedAtstring | null (date-time)data.workflowRunIdstring | nulldata.lastCheckedAtstring | null (date-time)data.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_updateObligation', {
obligation_id: '<obligation_id>',
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_updateObligation",
"arguments": {
"obligation_id": "<obligation_id>",
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}Obligations falling due within the calendar horizon
GET/v1/pacts/obligations/calendar
Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequireddata.fromstringdata.tostringdata.obligationsobject[]data.obligations[].[].idstringrequireddata.obligations[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.obligations[].[].scope.organizationIdstringrequireddata.obligations[].[].scope.workspaceIdstringrequireddata.obligations[].[].scope.projectIdstring | nulldata.obligations[].[].scope.environmentIdstringrequireddata.obligations[].[].pactIdstringrequireddata.obligations[].[].sourceVersionIdstringrequireddata.obligations[].[].sourceClauseRefanyrequireddata.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"requiredThe kind of duty an obligation is.
data.obligations[].[].owedByPartyIdstringrequireddata.obligations[].[].owedToPartyIdstringrequireddata.obligations[].[].responsibleActorIdstring | nulldata.obligations[].[].descriptionstringrequireddata.obligations[].[].trigger"effective_date" | "signature_date" | "calendar_date" | "renewal_window" | "notice_received" | "incident" | "invoice" | "milestone" | "manual"requiredWhat fires an obligation into action.
data.obligations[].[].dueAtstring | null (date-time)data.obligations[].[].recurrenceanydata.obligations[].[].status"draft" | "active" | "due_soon" | "overdue" | "fulfilled" | "waived" | "breached" | "disputed" | "terminated"requiredThe state of an obligation.
data.obligations[].[].confidencenumberrequireddata.obligations[].[].extractedByModelstring | nulldata.obligations[].[].confirmedByActorIdstring | nulldata.obligations[].[].confirmedAtstring | null (date-time)data.obligations[].[].workflowRunIdstring | nulldata.obligations[].[].lastCheckedAtstring | null (date-time)data.obligations[].[].createdByActorIdstringrequireddata.obligations[].[].createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_getObligationCalendar'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_getObligationCalendar",
"arguments": {}
}
}Obligations at risk
GET/v1/pacts/obligations/risk
Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequireddata.atRiskobject[]data.atRisk[].[].idstringrequireddata.atRisk[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.atRisk[].[].scope.organizationIdstringrequireddata.atRisk[].[].scope.workspaceIdstringrequireddata.atRisk[].[].scope.projectIdstring | nulldata.atRisk[].[].scope.environmentIdstringrequireddata.atRisk[].[].pactIdstringrequireddata.atRisk[].[].sourceVersionIdstringrequireddata.atRisk[].[].sourceClauseRefanyrequireddata.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"requiredThe kind of duty an obligation is.
data.atRisk[].[].owedByPartyIdstringrequireddata.atRisk[].[].owedToPartyIdstringrequireddata.atRisk[].[].responsibleActorIdstring | nulldata.atRisk[].[].descriptionstringrequireddata.atRisk[].[].trigger"effective_date" | "signature_date" | "calendar_date" | "renewal_window" | "notice_received" | "incident" | "invoice" | "milestone" | "manual"requiredWhat fires an obligation into action.
data.atRisk[].[].dueAtstring | null (date-time)data.atRisk[].[].recurrenceanydata.atRisk[].[].status"draft" | "active" | "due_soon" | "overdue" | "fulfilled" | "waived" | "breached" | "disputed" | "terminated"requiredThe state of an obligation.
data.atRisk[].[].confidencenumberrequireddata.atRisk[].[].extractedByModelstring | nulldata.atRisk[].[].confirmedByActorIdstring | nulldata.atRisk[].[].confirmedAtstring | null (date-time)data.atRisk[].[].workflowRunIdstring | nulldata.atRisk[].[].lastCheckedAtstring | null (date-time)data.atRisk[].[].createdByActorIdstringrequireddata.atRisk[].[].createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_listObligationsAtRisk'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_listObligationsAtRisk",
"arguments": {}
}
}Accept extracted obligations, in draft
POST/v1/pacts/pacts/{pact_id}/obligations/extract
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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
sourceVersionIdstringrequiredobligationsobject[]requiredThe 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"requiredThe kind of duty an obligation is.
obligations[].[].owedByPartyIdstringrequiredobligations[].[].owedToPartyIdstringrequiredobligations[].[].descriptionstringrequiredobligations[].[].trigger"effective_date" | "signature_date" | "calendar_date" | "renewal_window" | "notice_received" | "incident" | "invoice" | "milestone" | "manual"requiredWhat fires an obligation into action.
obligations[].[].dueAtstring | null (date-time)obligations[].[].recurrenceanyobligations[].[].sourceClauseRefanyobligations[].[].confidencenumber | nullobligations[].[].extractedByModelstring | null
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequireddata.obligationsobject[]data.obligations[].[].idstringrequireddata.obligations[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.obligations[].[].scope.organizationIdstringrequireddata.obligations[].[].scope.workspaceIdstringrequireddata.obligations[].[].scope.projectIdstring | nulldata.obligations[].[].scope.environmentIdstringrequireddata.obligations[].[].pactIdstringrequireddata.obligations[].[].sourceVersionIdstringrequireddata.obligations[].[].sourceClauseRefanyrequireddata.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"requiredThe kind of duty an obligation is.
data.obligations[].[].owedByPartyIdstringrequireddata.obligations[].[].owedToPartyIdstringrequireddata.obligations[].[].responsibleActorIdstring | nulldata.obligations[].[].descriptionstringrequireddata.obligations[].[].trigger"effective_date" | "signature_date" | "calendar_date" | "renewal_window" | "notice_received" | "incident" | "invoice" | "milestone" | "manual"requiredWhat fires an obligation into action.
data.obligations[].[].dueAtstring | null (date-time)data.obligations[].[].recurrenceanydata.obligations[].[].status"draft" | "active" | "due_soon" | "overdue" | "fulfilled" | "waived" | "breached" | "disputed" | "terminated"requiredThe state of an obligation.
data.obligations[].[].confidencenumberrequireddata.obligations[].[].extractedByModelstring | nulldata.obligations[].[].confirmedByActorIdstring | nulldata.obligations[].[].confirmedAtstring | null (date-time)data.obligations[].[].workflowRunIdstring | nulldata.obligations[].[].lastCheckedAtstring | null (date-time)data.obligations[].[].createdByActorIdstringrequireddata.obligations[].[].createdAtstring (date-time)requireddata.obligations[].[].updatedAtstring (date-time)requireddata.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": []
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_extractObligations', {
pact_id: '<pact_id>',
body: {
sourceVersionId: 'string',
obligations: [],
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_extractObligations",
"arguments": {
"pact_id": "<pact_id>",
"body": {
"sourceVersionId": "string",
"obligations": []
},
"idempotency_key": "<a stable key per change>"
}
}
}Assign
Assign an obligation to a responsible actor
POST/v1/pacts/obligations/{obligation_id}/assign
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredAn obligation: a duty an agreement imposes after signature. Extraction is a model output, so
confidenceis stored and an extracted obligation stays indraftuntil 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.pactIdstringrequireddata.sourceVersionIdstringrequireddata.sourceClauseRefanyrequireddata.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"requiredThe kind of duty an obligation is.
data.owedByPartyIdstringrequireddata.owedToPartyIdstringrequireddata.responsibleActorIdstring | nulldata.descriptionstringrequireddata.trigger"effective_date" | "signature_date" | "calendar_date" | "renewal_window" | "notice_received" | "incident" | "invoice" | "milestone" | "manual"requiredWhat fires an obligation into action.
data.dueAtstring | null (date-time)data.recurrenceanydata.status"draft" | "active" | "due_soon" | "overdue" | "fulfilled" | "waived" | "breached" | "disputed" | "terminated"requiredThe state of an obligation.
data.confidencenumberrequireddata.extractedByModelstring | nulldata.confirmedByActorIdstring | nulldata.confirmedAtstring | null (date-time)data.workflowRunIdstring | nulldata.lastCheckedAtstring | null (date-time)data.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_assignObligation', {
obligation_id: '<obligation_id>',
body: {
responsibleActorId: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_assignObligation",
"arguments": {
"obligation_id": "<obligation_id>",
"body": {
"responsibleActorId": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}Complete
Complete an obligation, optionally attaching evidence of completion
POST/v1/pacts/obligations/{obligation_id}/complete
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredAn obligation: a duty an agreement imposes after signature. Extraction is a model output, so
confidenceis stored and an extracted obligation stays indraftuntil 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.pactIdstringrequireddata.sourceVersionIdstringrequireddata.sourceClauseRefanyrequireddata.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"requiredThe kind of duty an obligation is.
data.owedByPartyIdstringrequireddata.owedToPartyIdstringrequireddata.responsibleActorIdstring | nulldata.descriptionstringrequireddata.trigger"effective_date" | "signature_date" | "calendar_date" | "renewal_window" | "notice_received" | "incident" | "invoice" | "milestone" | "manual"requiredWhat fires an obligation into action.
data.dueAtstring | null (date-time)data.recurrenceanydata.status"draft" | "active" | "due_soon" | "overdue" | "fulfilled" | "waived" | "breached" | "disputed" | "terminated"requiredThe state of an obligation.
data.confidencenumberrequireddata.extractedByModelstring | nulldata.confirmedByActorIdstring | nulldata.confirmedAtstring | null (date-time)data.workflowRunIdstring | nulldata.lastCheckedAtstring | null (date-time)data.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_completeObligation', {
obligation_id: '<obligation_id>',
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_completeObligation",
"arguments": {
"obligation_id": "<obligation_id>",
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}Complete a review, moving it to a terminal status
POST/v1/pacts/reviews/{review_id}/complete
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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"requiredThe state of a review.
waiverReasonstring | null
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredA 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.pactIdstringrequireddata.versionIdstringrequireddata.reviewType"legal" | "privacy" | "security" | "finance" | "procurement" | "tax" | "commercial" | "executive" | "agent_policy"requiredThe kind of review requested.
data.assignedActorIdstringrequireddata.requestedByActorIdstringrequireddata.status"requested" | "in_progress" | "approved" | "changes_requested" | "rejected" | "waived"requiredThe state of a review.
data.decisionsanyrequireddata.waiverReasonstring | nulldata.dueAtstring | null (date-time)data.completedAtstring | null (date-time)data.createdAtstring (date-time)requireddata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_completeReview', {
review_id: '<review_id>',
body: {
status: 'requested',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_completeReview",
"arguments": {
"review_id": "<review_id>",
"body": {
"status": "requested"
},
"idempotency_key": "<a stable key per change>"
}
}
}
}Confirm
Confirm an obligation, moving it from draft to active
POST/v1/pacts/obligations/{obligation_id}/confirm
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredAn obligation: a duty an agreement imposes after signature. Extraction is a model output, so
confidenceis stored and an extracted obligation stays indraftuntil 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.pactIdstringrequireddata.sourceVersionIdstringrequireddata.sourceClauseRefanyrequireddata.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"requiredThe kind of duty an obligation is.
data.owedByPartyIdstringrequireddata.owedToPartyIdstringrequireddata.responsibleActorIdstring | nulldata.descriptionstringrequireddata.trigger"effective_date" | "signature_date" | "calendar_date" | "renewal_window" | "notice_received" | "incident" | "invoice" | "milestone" | "manual"requiredWhat fires an obligation into action.
data.dueAtstring | null (date-time)data.recurrenceanydata.status"draft" | "active" | "due_soon" | "overdue" | "fulfilled" | "waived" | "breached" | "disputed" | "terminated"requiredThe state of an obligation.
data.confidencenumberrequireddata.extractedByModelstring | nulldata.confirmedByActorIdstring | nulldata.confirmedAtstring | null (date-time)data.workflowRunIdstring | nulldata.lastCheckedAtstring | null (date-time)data.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_confirmObligation', {
obligation_id: '<obligation_id>',
body: 'string',
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_confirmObligation",
"arguments": {
"obligation_id": "<obligation_id>",
"body": "string",
"idempotency_key": "<a stable key per change>"
}
}
}Dispute
Dispute an obligation, with the reason
POST/v1/pacts/obligations/{obligation_id}/dispute
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredAn obligation: a duty an agreement imposes after signature. Extraction is a model output, so
confidenceis stored and an extracted obligation stays indraftuntil 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.pactIdstringrequireddata.sourceVersionIdstringrequireddata.sourceClauseRefanyrequireddata.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"requiredThe kind of duty an obligation is.
data.owedByPartyIdstringrequireddata.owedToPartyIdstringrequireddata.responsibleActorIdstring | nulldata.descriptionstringrequireddata.trigger"effective_date" | "signature_date" | "calendar_date" | "renewal_window" | "notice_received" | "incident" | "invoice" | "milestone" | "manual"requiredWhat fires an obligation into action.
data.dueAtstring | null (date-time)data.recurrenceanydata.status"draft" | "active" | "due_soon" | "overdue" | "fulfilled" | "waived" | "breached" | "disputed" | "terminated"requiredThe state of an obligation.
data.confidencenumberrequireddata.extractedByModelstring | nulldata.confirmedByActorIdstring | nulldata.confirmedAtstring | null (date-time)data.workflowRunIdstring | nulldata.lastCheckedAtstring | null (date-time)data.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_disputeObligation', {
obligation_id: '<obligation_id>',
body: {
reason: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_disputeObligation",
"arguments": {
"obligation_id": "<obligation_id>",
"body": {
"reason": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}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
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequireddata.obligationIdstringdata.workflowRunIdstringdata.runanydata.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"'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_startWorkflow', {
obligation_id: '<obligation_id>',
body: 'string',
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_startWorkflow",
"arguments": {
"obligation_id": "<obligation_id>",
"body": "string",
"idempotency_key": "<a stable key per change>"
}
}
}Pacts
List pacts
GET/v1/pacts/pacts
Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequireddata.pactsobject[]data.pacts[].[].idstringrequireddata.pacts[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.pacts[].[].scope.organizationIdstringrequireddata.pacts[].[].scope.workspaceIdstringrequireddata.pacts[].[].scope.projectIdstring | nulldata.pacts[].[].scope.environmentIdstringrequireddata.pacts[].[].matterIdstring | nulldata.pacts[].[].namestringrequireddata.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"requiredThe 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"requiredThe 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"requiredHow much legal weight a pact's signatures may carry.
data.pacts[].[].governingLawstring | nulldata.pacts[].[].venuestring | nulldata.pacts[].[].primaryLanguagestringrequireddata.pacts[].[].valueobject | nulldata.pacts[].[].startDatestring | null (date)data.pacts[].[].effectiveDatestring | null (date)data.pacts[].[].expirationDatestring | null (date)data.pacts[].[].renewalanydata.pacts[].[].riskSummaryanydata.pacts[].[].aiSummarystring | nulldata.pacts[].[].createdByActorIdstringrequireddata.pacts[].[].responsibleAttorneyActorIdstring | nulldata.pacts[].[].businessOwnerActorIdstring | nulldata.pacts[].[].confidentialityClass"public" | "internal" | "confidential" | "highly_confidential" | "restricted"requiredHow sensitive the record is.
data.pacts[].[].privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"requiredA privilege assertion.
Nonemeans none is claimed.data.pacts[].[].currentDocumentVersionIdstring | nulldata.pacts[].[].signaturePackageIdstring | nulldata.pacts[].[].createdAtstring (date-time)requireddata.pacts[].[].updatedAtstring (date-time)required
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/pacts" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_listPacts'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_listPacts",
"arguments": {}
}
}Create a pact (draft-only unless a legal-effect mode is set)
POST/v1/pacts/pacts
Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.
Parameters
Idempotency-Keyheader · stringrequiredRequired 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
namestringrequiredagreementType"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"requiredThe agreement's legal form.
matterIdstring | nulllegalEffectMode"test" | "draft_only" | "production_candidate" | "production" | nullgoverningLawstring | nullvenuestring | nullprimaryLanguagestring | nullvalueobject | nullstartDatestring | null (date)effectiveDatestring | null (date)expirationDatestring | null (date)responsibleAttorneyActorIdstring | nullbusinessOwnerActorIdstring | nullconfidentialityClass"public" | "internal" | "confidential" | "highly_confidential" | "restricted" | nullprivilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest" | null
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredA pact: the canonical agreement container.
data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.matterIdstring | nulldata.namestringrequireddata.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"requiredThe 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"requiredThe 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"requiredHow much legal weight a pact's signatures may carry.
data.governingLawstring | nulldata.venuestring | nulldata.primaryLanguagestringrequireddata.valueobject | nulldata.startDatestring | null (date)data.effectiveDatestring | null (date)data.expirationDatestring | null (date)data.renewalanydata.riskSummaryanydata.aiSummarystring | nulldata.createdByActorIdstringrequireddata.responsibleAttorneyActorIdstring | nulldata.businessOwnerActorIdstring | nulldata.confidentialityClass"public" | "internal" | "confidential" | "highly_confidential" | "restricted"requiredHow sensitive the record is.
data.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"requiredA privilege assertion.
Nonemeans none is claimed.data.currentDocumentVersionIdstring | nulldata.signaturePackageIdstring | nulldata.createdAtstring (date-time)requireddata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_createPact', {
body: {
name: 'string',
agreementType: 'msa',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_createPact",
"arguments": {
"body": {
"name": "string",
"agreementType": "msa"
},
"idempotency_key": "<a stable key per change>"
}
}
}Get a pact
GET/v1/pacts/pacts/{pact_id}
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}envelopeResponse fields
dataobjectrequiredA pact: the canonical agreement container.
data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.matterIdstring | nulldata.namestringrequireddata.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"requiredThe 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"requiredThe 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"requiredHow much legal weight a pact's signatures may carry.
data.governingLawstring | nulldata.venuestring | nulldata.primaryLanguagestringrequireddata.valueobject | nulldata.startDatestring | null (date)data.effectiveDatestring | null (date)data.expirationDatestring | null (date)data.renewalanydata.riskSummaryanydata.aiSummarystring | nulldata.createdByActorIdstringrequireddata.responsibleAttorneyActorIdstring | nulldata.businessOwnerActorIdstring | nulldata.confidentialityClass"public" | "internal" | "confidential" | "highly_confidential" | "restricted"requiredHow sensitive the record is.
data.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"requiredA privilege assertion.
Nonemeans none is claimed.data.currentDocumentVersionIdstring | nulldata.signaturePackageIdstring | nulldata.createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_getPact', {
pact_id: '<pact_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_getPact",
"arguments": {
"pact_id": "<pact_id>"
}
}
}Update a pact
PATCH/v1/pacts/pacts/{pact_id}
Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.
Parameters
pact_idpath · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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 | nullagreementType"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" | nullgoverningLawstring | nullvenuestring | nullprimaryLanguagestring | nullvalueobject | nullstartDatestring | null (date)effectiveDatestring | null (date)expirationDatestring | null (date)responsibleAttorneyActorIdstring | nullbusinessOwnerActorIdstring | nullconfidentialityClass"public" | "internal" | "confidential" | "highly_confidential" | "restricted" | nullprivilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest" | nullmatterIdstring | null
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredA pact: the canonical agreement container.
data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.matterIdstring | nulldata.namestringrequireddata.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"requiredThe 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"requiredThe 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"requiredHow much legal weight a pact's signatures may carry.
data.governingLawstring | nulldata.venuestring | nulldata.primaryLanguagestringrequireddata.valueobject | nulldata.startDatestring | null (date)data.effectiveDatestring | null (date)data.expirationDatestring | null (date)data.renewalanydata.riskSummaryanydata.aiSummarystring | nulldata.createdByActorIdstringrequireddata.responsibleAttorneyActorIdstring | nulldata.businessOwnerActorIdstring | nulldata.confidentialityClass"public" | "internal" | "confidential" | "highly_confidential" | "restricted"requiredHow sensitive the record is.
data.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"requiredA privilege assertion.
Nonemeans none is claimed.data.currentDocumentVersionIdstring | nulldata.signaturePackageIdstring | nulldata.createdAtstring (date-time)requireddata.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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_updatePact', {
pact_id: '<pact_id>',
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_updatePact",
"arguments": {
"pact_id": "<pact_id>",
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}Ai
Answer a question about a pact (AI run with citations)
POST/v1/pacts/pacts/{pact_id}/ai/answer-question
Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.
Parameters
pact_idpath · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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 | nullThe version to work over. Absent means the pact's current context.
modelstring | nullAn explicit model to request instead of the operation's default class.
tokenBudgetinteger | null (int32)The Lanes packing budget, in tokens.
permittedDataClassesarray | nullNarrows the data classes the run may see. The default permits every class; an explicitly empty list is a visibility refusal.
constraintsobject | nullquestionstringrequired
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredA 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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_answerQuestion', {
pact_id: '<pact_id>',
body: {
question: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_answerQuestion",
"arguments": {
"pact_id": "<pact_id>",
"body": {
"question": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}Classify a pact (AI run)
POST/v1/pacts/pacts/{pact_id}/ai/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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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 | nullThe version to work over. Absent means the pact's current context.
modelstring | nullAn explicit model to request instead of the operation's default class.
tokenBudgetinteger | null (int32)The Lanes packing budget, in tokens.
permittedDataClassesarray | nullNarrows 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}envelopeResponse fields
dataobjectrequiredA 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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_classify', {
pact_id: '<pact_id>',
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_classify",
"arguments": {
"pact_id": "<pact_id>",
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}Extract the key terms of a pact (AI run)
POST/v1/pacts/pacts/{pact_id}/ai/extract-terms
Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.
Parameters
pact_idpath · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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 | nullThe version to work over. Absent means the pact's current context.
modelstring | nullAn explicit model to request instead of the operation's default class.
tokenBudgetinteger | null (int32)The Lanes packing budget, in tokens.
permittedDataClassesarray | nullNarrows 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}envelopeResponse fields
dataobjectrequiredA 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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_extractTerms', {
pact_id: '<pact_id>',
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_extractTerms",
"arguments": {
"pact_id": "<pact_id>",
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}Generate a draft of a pact (AI run; enters human review)
POST/v1/pacts/pacts/{pact_id}/ai/generate-draft
Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.
Parameters
pact_idpath · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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 | nullThe version to work over. Absent means the pact's current context.
modelstring | nullAn explicit model to request instead of the operation's default class.
tokenBudgetinteger | null (int32)The Lanes packing budget, in tokens.
permittedDataClassesarray | nullNarrows the data classes the run may see. The default permits every class; an explicitly empty list is a visibility refusal.
constraintsobject | nullinstructionsstring | nullExtra drafting instruction ("governed by Delaware law", "short form").
reviewerActorIdstring | nullWhen 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}envelopeResponse fields
dataobjectrequiredA 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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_generateDraft', {
pact_id: '<pact_id>',
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_generateDraft",
"arguments": {
"pact_id": "<pact_id>",
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}Review the risk in a pact (AI run)
POST/v1/pacts/pacts/{pact_id}/ai/review-risk
Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.
Parameters
pact_idpath · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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 | nullThe version to work over. Absent means the pact's current context.
modelstring | nullAn explicit model to request instead of the operation's default class.
tokenBudgetinteger | null (int32)The Lanes packing budget, in tokens.
permittedDataClassesarray | nullNarrows 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}envelopeResponse fields
dataobjectrequiredA 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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_reviewRisk', {
pact_id: '<pact_id>',
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_reviewRisk",
"arguments": {
"pact_id": "<pact_id>",
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}Get an AI run over a pact, with its output and citations
GET/v1/pacts/pacts/{pact_id}/ai/runs/{run_id}
Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.
Parameters
pact_idpath · stringrequiredrun_idpath · stringrequired
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequireddata.runanydata.citationsobject[]data.citations[].[].idstringrequireddata.citations[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.citations[].[].scope.organizationIdstringrequireddata.citations[].[].scope.workspaceIdstringrequireddata.citations[].[].scope.projectIdstring | nulldata.citations[].[].scope.environmentIdstringrequireddata.citations[].[].runIdstringrequireddata.citations[].[].target"document" | "version" | "clause" | "playbook" | "evidence_ref" | "external"requiredWhat kind of source a citation names.
Externalis 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 | nulldata.citations[].[].citedUristring | nulldata.citations[].[].quotedTextstring | nulldata.citations[].[].locatorstring | nulldata.citations[].[].status"pending" | "resolved" | "unresolved"requiredWhether a citation checked out.
Pendingmeans validation has not run — a run whose citations sit in pending forever is a run nobody checked.Unresolvedis 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 | nulldata.citations[].[].createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_getAiRun', {
pact_id: '<pact_id>',
run_id: '<run_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_getAiRun",
"arguments": {
"pact_id": "<pact_id>",
"run_id": "<run_id>"
}
}
}Suggest redlines on a pact (AI run)
POST/v1/pacts/pacts/{pact_id}/ai/suggest-redlines
Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.
Parameters
pact_idpath · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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 | nullThe version to work over. Absent means the pact's current context.
modelstring | nullAn explicit model to request instead of the operation's default class.
tokenBudgetinteger | null (int32)The Lanes packing budget, in tokens.
permittedDataClassesarray | nullNarrows 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}envelopeResponse fields
dataobjectrequiredA 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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_suggestRedlines', {
pact_id: '<pact_id>',
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_suggestRedlines",
"arguments": {
"pact_id": "<pact_id>",
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}Summarize a pact (AI run)
POST/v1/pacts/pacts/{pact_id}/ai/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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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 | nullThe version to work over. Absent means the pact's current context.
modelstring | nullAn explicit model to request instead of the operation's default class.
tokenBudgetinteger | null (int32)The Lanes packing budget, in tokens.
permittedDataClassesarray | nullNarrows 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}envelopeResponse fields
dataobjectrequiredA 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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_summarize', {
pact_id: '<pact_id>',
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_summarize",
"arguments": {
"pact_id": "<pact_id>",
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}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
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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 | nullRe-validate the citations of a recorded run.
citationsarray | nullValidate an ad-hoc set of citations (an output produced elsewhere).
versionIdstring | null
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequireddata.reportanydata.runanydata.subjectRunIdstringdata.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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_validateCitations', {
pact_id: '<pact_id>',
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_validateCitations",
"arguments": {
"pact_id": "<pact_id>",
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}Authority org
Bind the pact's signatures to an Auto org (docs/systems/charter-gate.md)
PUT/v1/pacts/pacts/{pact_id}/authority-org
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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
authorityOrgIdstringrequiredThe 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}envelopeResponse fields
dataobjectrequireddata.pactIdstringdata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_bindAuthorityOrg', {
pact_id: '<pact_id>',
body: {
authorityOrgId: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_bindAuthorityOrg",
"arguments": {
"pact_id": "<pact_id>",
"body": {
"authorityOrgId": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}
}Documents
List documents
GET/v1/pacts/pacts/{pact_id}/documents
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}envelopeResponse fields
dataobjectrequireddata.documentsobject[]data.documents[].[].idstringrequireddata.documents[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.documents[].[].scope.organizationIdstringrequireddata.documents[].[].scope.workspaceIdstringrequireddata.documents[].[].scope.projectIdstring | nulldata.documents[].[].scope.environmentIdstringrequireddata.documents[].[].pactIdstringrequireddata.documents[].[].versionIdstringrequireddata.documents[].[].documentType"draft" | "redline" | "clean" | "exhibit" | "schedule" | "attachment" | "amendment" | "side_letter" | "certificate" | "notice" | "evidence"requiredWhat role a document plays in an agreement.
data.documents[].[].titlestringrequireddata.documents[].[].format"docx" | "pdf" | "html" | "markdown" | "txt" | "json" | "image"requiredThe file format of a document's bytes.
data.documents[].[].storageRefstringrequireddata.documents[].[].storageScope"global_user_drive" | "tenant_dedicated" | "self_hosted"requiredWhere a document's bytes are stored.
data.documents[].[].oceansObjectIdstring | null (uuid)data.documents[].[].driveOwnerActorIdstring | nulldata.documents[].[].drivePathstring | nulldata.documents[].[].driveLabelsstring[]requireddata.documents[].[].textExtractRefstring | nulldata.documents[].[].sha256stringrequireddata.documents[].[].byteSizeinteger (int64)requireddata.documents[].[].source"uploaded" | "generated" | "imported" | "email" | "api" | "mcp" | "counterparty" | "signature_provider"requiredHow a document's bytes arrived.
data.documents[].[].createdByActorIdstringrequireddata.documents[].[].createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_listDocuments', {
pact_id: '<pact_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_listDocuments",
"arguments": {
"pact_id": "<pact_id>"
}
}
}Store a document (base64 bytes) on a pact version
POST/v1/pacts/pacts/{pact_id}/documents
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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
contentBase64stringrequiredThe 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.
titlestringrequireddocumentType"draft" | "redline" | "clean" | "exhibit" | "schedule" | "attachment" | "amendment" | "side_letter" | "certificate" | "notice" | "evidence"requiredWhat role a document plays in an agreement.
format"docx" | "pdf" | "html" | "markdown" | "txt" | "json" | "image"requiredThe file format of a document's bytes.
versionIdstringrequiredThe 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}envelopeResponse fields
dataobjectrequiredA document: one content-addressed artifact attached to a pact and version.
sha256is 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.pactIdstringrequireddata.versionIdstringrequireddata.documentType"draft" | "redline" | "clean" | "exhibit" | "schedule" | "attachment" | "amendment" | "side_letter" | "certificate" | "notice" | "evidence"requiredWhat role a document plays in an agreement.
data.titlestringrequireddata.format"docx" | "pdf" | "html" | "markdown" | "txt" | "json" | "image"requiredThe file format of a document's bytes.
data.storageRefstringrequireddata.storageScope"global_user_drive" | "tenant_dedicated" | "self_hosted"requiredWhere a document's bytes are stored.
data.oceansObjectIdstring | null (uuid)data.driveOwnerActorIdstring | nulldata.drivePathstring | nulldata.driveLabelsstring[]requireddata.textExtractRefstring | nulldata.sha256stringrequireddata.byteSizeinteger (int64)requireddata.source"uploaded" | "generated" | "imported" | "email" | "api" | "mcp" | "counterparty" | "signature_provider"requiredHow a document's bytes arrived.
data.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_createDocument', {
pact_id: '<pact_id>',
body: {
contentBase64: 'string',
title: 'string',
documentType: 'draft',
format: 'docx',
versionId: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_createDocument",
"arguments": {
"pact_id": "<pact_id>",
"body": {
"contentBase64": "string",
"title": "string",
"documentType": "draft",
"format": "docx",
"versionId": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}Get document
GET/v1/pacts/pacts/{pact_id}/documents/{document_id}
Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.
Parameters
pact_idpath · stringrequireddocument_idpath · stringrequired
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredA document: one content-addressed artifact attached to a pact and version.
sha256is 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.pactIdstringrequireddata.versionIdstringrequireddata.documentType"draft" | "redline" | "clean" | "exhibit" | "schedule" | "attachment" | "amendment" | "side_letter" | "certificate" | "notice" | "evidence"requiredWhat role a document plays in an agreement.
data.titlestringrequireddata.format"docx" | "pdf" | "html" | "markdown" | "txt" | "json" | "image"requiredThe file format of a document's bytes.
data.storageRefstringrequireddata.storageScope"global_user_drive" | "tenant_dedicated" | "self_hosted"requiredWhere a document's bytes are stored.
data.oceansObjectIdstring | null (uuid)data.driveOwnerActorIdstring | nulldata.drivePathstring | nulldata.driveLabelsstring[]requireddata.textExtractRefstring | nulldata.sha256stringrequireddata.byteSizeinteger (int64)requireddata.source"uploaded" | "generated" | "imported" | "email" | "api" | "mcp" | "counterparty" | "signature_provider"requiredHow a document's bytes arrived.
data.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_getDocument', {
pact_id: '<pact_id>',
document_id: '<document_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_getDocument",
"arguments": {
"pact_id": "<pact_id>",
"document_id": "<document_id>"
}
}
}Extract text from a stored document
POST/v1/pacts/pacts/{pact_id}/documents/{document_id}/extract-text
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 · stringrequireddocument_idpath · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequireddata.documentIdstringdata.textExtractRefanydata.characterCountintegerdata.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"'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_extractText', {
pact_id: '<pact_id>',
document_id: '<document_id>',
body: 'string',
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_extractText",
"arguments": {
"pact_id": "<pact_id>",
"document_id": "<document_id>",
"body": "string",
"idempotency_key": "<a stable key per change>"
}
}
}Reviews
List reviews
GET/v1/pacts/pacts/{pact_id}/reviews
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}envelopeResponse fields
dataobjectrequireddata.reviewsobject[]data.reviews[].[].idstringrequireddata.reviews[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.reviews[].[].scope.organizationIdstringrequireddata.reviews[].[].scope.workspaceIdstringrequireddata.reviews[].[].scope.projectIdstring | nulldata.reviews[].[].scope.environmentIdstringrequireddata.reviews[].[].pactIdstringrequireddata.reviews[].[].versionIdstringrequireddata.reviews[].[].reviewType"legal" | "privacy" | "security" | "finance" | "procurement" | "tax" | "commercial" | "executive" | "agent_policy"requiredThe kind of review requested.
data.reviews[].[].assignedActorIdstringrequireddata.reviews[].[].requestedByActorIdstringrequireddata.reviews[].[].status"requested" | "in_progress" | "approved" | "changes_requested" | "rejected" | "waived"requiredThe state of a review.
data.reviews[].[].decisionsanyrequireddata.reviews[].[].waiverReasonstring | nulldata.reviews[].[].dueAtstring | null (date-time)data.reviews[].[].completedAtstring | null (date-time)data.reviews[].[].createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_listReviews', {
pact_id: '<pact_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_listReviews",
"arguments": {
"pact_id": "<pact_id>"
}
}
}Create review
POST/v1/pacts/pacts/{pact_id}/reviews
Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.
Parameters
pact_idpath · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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
versionIdstringrequiredreviewType"legal" | "privacy" | "security" | "finance" | "procurement" | "tax" | "commercial" | "executive" | "agent_policy"requiredThe kind of review requested.
assignedActorIdstringrequireddueAtstring | null (date-time)
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredA 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.pactIdstringrequireddata.versionIdstringrequireddata.reviewType"legal" | "privacy" | "security" | "finance" | "procurement" | "tax" | "commercial" | "executive" | "agent_policy"requiredThe kind of review requested.
data.assignedActorIdstringrequireddata.requestedByActorIdstringrequireddata.status"requested" | "in_progress" | "approved" | "changes_requested" | "rejected" | "waived"requiredThe state of a review.
data.decisionsanyrequireddata.waiverReasonstring | nulldata.dueAtstring | null (date-time)data.completedAtstring | null (date-time)data.createdAtstring (date-time)requireddata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_createReview', {
pact_id: '<pact_id>',
body: {
versionId: 'string',
reviewType: 'legal',
assignedActorId: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_createReview",
"arguments": {
"pact_id": "<pact_id>",
"body": {
"versionId": "string",
"reviewType": "legal",
"assignedActorId": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}Get review
GET/v1/pacts/reviews/{review_id}
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}envelopeResponse fields
dataobjectrequiredA 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.pactIdstringrequireddata.versionIdstringrequireddata.reviewType"legal" | "privacy" | "security" | "finance" | "procurement" | "tax" | "commercial" | "executive" | "agent_policy"requiredThe kind of review requested.
data.assignedActorIdstringrequireddata.requestedByActorIdstringrequireddata.status"requested" | "in_progress" | "approved" | "changes_requested" | "rejected" | "waived"requiredThe state of a review.
data.decisionsanyrequireddata.waiverReasonstring | nulldata.dueAtstring | null (date-time)data.completedAtstring | null (date-time)data.createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_getReview', {
review_id: '<review_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_getReview",
"arguments": {
"review_id": "<review_id>"
}
}
}Update review
PATCH/v1/pacts/reviews/{review_id}
Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.
Parameters
review_idpath · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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 | nulldueAtstring | null (date-time)decisionsany
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredA 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.pactIdstringrequireddata.versionIdstringrequireddata.reviewType"legal" | "privacy" | "security" | "finance" | "procurement" | "tax" | "commercial" | "executive" | "agent_policy"requiredThe kind of review requested.
data.assignedActorIdstringrequireddata.requestedByActorIdstringrequireddata.status"requested" | "in_progress" | "approved" | "changes_requested" | "rejected" | "waived"requiredThe state of a review.
data.decisionsanyrequireddata.waiverReasonstring | nulldata.dueAtstring | null (date-time)data.completedAtstring | null (date-time)data.createdAtstring (date-time)requireddata.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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_updateReview', {
review_id: '<review_id>',
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_updateReview",
"arguments": {
"review_id": "<review_id>",
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}Signature packages
List a pact's signature packages
GET/v1/pacts/pacts/{pact_id}/signature-packages
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}envelopeResponse fields
dataobjectrequireddata.signaturePackagesobject[]data.signaturePackages[].[].idstringrequireddata.signaturePackages[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.signaturePackages[].[].scope.organizationIdstringrequireddata.signaturePackages[].[].scope.workspaceIdstringrequireddata.signaturePackages[].[].scope.projectIdstring | nulldata.signaturePackages[].[].scope.environmentIdstringrequireddata.signaturePackages[].[].pactIdstringrequireddata.signaturePackages[].[].versionIdstringrequireddata.signaturePackages[].[].provider"pacts_native" | "docusign" | "adobe_sign" | "hellosign" | "qualified_trust_service" | "external"requiredWho is providing the signing service.
data.signaturePackages[].[].signatureLevel"test_signature" | "electronic" | "advanced_electronic" | "qualified_electronic" | "electronic_seal" | "agent_signature"requiredThe assurance level of a signature. Ordered weakest to strongest, with
test_signaturedeliberately 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"requiredThe lifecycle of a signature package.
data.signaturePackages[].[].orderedSigningbooleanrequireddata.signaturePackages[].[].sealedContentHashstring | nulldata.signaturePackages[].[].sealedAtstring | null (date-time)data.signaturePackages[].[].completionCertificateRefstring | nulldata.signaturePackages[].[].completionCertificateSha256string | nulldata.signaturePackages[].[].declineReasonstring | nulldata.signaturePackages[].[].voidReasonstring | nulldata.signaturePackages[].[].expiresAtstring | null (date-time)data.signaturePackages[].[].createdByActorIdstringrequireddata.signaturePackages[].[].createdAtstring (date-time)requireddata.signaturePackages[].[].updatedAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_listPackages', {
pact_id: '<pact_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_listPackages",
"arguments": {
"pact_id": "<pact_id>"
}
}
}Create a signature package for a version (signers, level, order)
POST/v1/pacts/pacts/{pact_id}/signature-packages
Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.
Parameters
pact_idpath · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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
versionIdstringrequiredsignatureLevel"test_signature" | "electronic" | "advanced_electronic" | "qualified_electronic" | "electronic_seal" | "agent_signature"requiredThe assurance level of a signature. Ordered weakest to strongest, with
test_signaturedeliberately 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 | nullexpiresAtstring | null (date-time)signersobject[]requiredsigners[].[].signerActorIdstringrequiredsigners[].[].signerActorType"human" | "agent" | "service" | "counterparty_human" | "counterparty_agent" | "outside_counsel" | "system" | nullsigners[].[].representedPartyIdstringrequiredsigners[].[].authorityGrantIdstring | nullsigners[].[].signingOrderinteger (int32)required
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredA 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.pactIdstringrequireddata.versionIdstringrequireddata.provider"pacts_native" | "docusign" | "adobe_sign" | "hellosign" | "qualified_trust_service" | "external"requiredWho is providing the signing service.
data.signatureLevel"test_signature" | "electronic" | "advanced_electronic" | "qualified_electronic" | "electronic_seal" | "agent_signature"requiredThe assurance level of a signature. Ordered weakest to strongest, with
test_signaturedeliberately 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"requiredThe lifecycle of a signature package.
data.orderedSigningbooleanrequireddata.sealedContentHashstring | nulldata.sealedAtstring | null (date-time)data.completionCertificateRefstring | nulldata.completionCertificateSha256string | nulldata.declineReasonstring | nulldata.voidReasonstring | nulldata.expiresAtstring | null (date-time)data.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requireddata.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": []
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_createPackage', {
pact_id: '<pact_id>',
body: {
versionId: 'string',
signatureLevel: 'test_signature',
signers: [],
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_createPackage",
"arguments": {
"pact_id": "<pact_id>",
"body": {
"versionId": "string",
"signatureLevel": "test_signature",
"signers": []
},
"idempotency_key": "<a stable key per change>"
}
}
}Get a signature package
GET/v1/pacts/signature-packages/{package_id}
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}envelopeResponse fields
dataobjectrequireddata.packageanydata.signersanydata.signaturesany
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/signature-packages/$PACKAGE_ID" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_getPackage', {
package_id: '<package_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_getPackage",
"arguments": {
"package_id": "<package_id>"
}
}
}Submit for approval
Submit for approval
POST/v1/pacts/pacts/{pact_id}/submit-for-approval
Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.
Parameters
pact_idpath · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredA pact: the canonical agreement container.
data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.matterIdstring | nulldata.namestringrequireddata.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"requiredThe 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"requiredThe 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"requiredHow much legal weight a pact's signatures may carry.
data.governingLawstring | nulldata.venuestring | nulldata.primaryLanguagestringrequireddata.valueobject | nulldata.startDatestring | null (date)data.effectiveDatestring | null (date)data.expirationDatestring | null (date)data.renewalanydata.riskSummaryanydata.aiSummarystring | nulldata.createdByActorIdstringrequireddata.responsibleAttorneyActorIdstring | nulldata.businessOwnerActorIdstring | nulldata.confidentialityClass"public" | "internal" | "confidential" | "highly_confidential" | "restricted"requiredHow sensitive the record is.
data.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"requiredA privilege assertion.
Nonemeans none is claimed.data.currentDocumentVersionIdstring | nulldata.signaturePackageIdstring | nulldata.createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_submitForApproval', {
pact_id: '<pact_id>',
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_submitForApproval",
"arguments": {
"pact_id": "<pact_id>",
"idempotency_key": "<a stable key per change>"
}
}
}Submit for review
Submit for review
POST/v1/pacts/pacts/{pact_id}/submit-for-review
Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.
Parameters
pact_idpath · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredA pact: the canonical agreement container.
data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.matterIdstring | nulldata.namestringrequireddata.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"requiredThe 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"requiredThe 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"requiredHow much legal weight a pact's signatures may carry.
data.governingLawstring | nulldata.venuestring | nulldata.primaryLanguagestringrequireddata.valueobject | nulldata.startDatestring | null (date)data.effectiveDatestring | null (date)data.expirationDatestring | null (date)data.renewalanydata.riskSummaryanydata.aiSummarystring | nulldata.createdByActorIdstringrequireddata.responsibleAttorneyActorIdstring | nulldata.businessOwnerActorIdstring | nulldata.confidentialityClass"public" | "internal" | "confidential" | "highly_confidential" | "restricted"requiredHow sensitive the record is.
data.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"requiredA privilege assertion.
Nonemeans none is claimed.data.currentDocumentVersionIdstring | nulldata.signaturePackageIdstring | nulldata.createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_submitForReview', {
pact_id: '<pact_id>',
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_submitForReview",
"arguments": {
"pact_id": "<pact_id>",
"idempotency_key": "<a stable key per change>"
}
}
}Versions
List versions
GET/v1/pacts/pacts/{pact_id}/versions
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}envelopeResponse fields
dataobjectrequireddata.versionsobject[]data.versions[].[].idstringrequireddata.versions[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.versions[].[].scope.organizationIdstringrequireddata.versions[].[].scope.workspaceIdstringrequireddata.versions[].[].scope.projectIdstring | nulldata.versions[].[].scope.environmentIdstringrequireddata.versions[].[].pactIdstringrequireddata.versions[].[].ordinalinteger (int32)requireddata.versions[].[].parentVersionIdstring | nulldata.versions[].[].labelstringrequireddata.versions[].[].aiGeneratedbooleanrequireddata.versions[].[].modelTraceIdstring | nulldata.versions[].[].changeSummarystring | nulldata.versions[].[].redlineAgainstVersionIdstring | nulldata.versions[].[].status"draft" | "reviewed" | "approved" | "sent" | "superseded" | "executed"requiredThe lifecycle of a version.
data.versions[].[].contentHashstring | nulldata.versions[].[].createdByActorIdstringrequireddata.versions[].[].createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_listVersions', {
pact_id: '<pact_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_listVersions",
"arguments": {
"pact_id": "<pact_id>"
}
}
}Create a version of a pact
POST/v1/pacts/pacts/{pact_id}/versions
Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.
Parameters
pact_idpath · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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
labelstringrequiredparentVersionIdstring | nullchangeSummarystring | nulldocumentsarray | nullThe 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}envelopeResponse fields
dataobjectrequiredA version: an ordered set of documents plus the digest of that set.
content_hashis 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.pactIdstringrequireddata.ordinalinteger (int32)requireddata.parentVersionIdstring | nulldata.labelstringrequireddata.aiGeneratedbooleanrequireddata.modelTraceIdstring | nulldata.changeSummarystring | nulldata.redlineAgainstVersionIdstring | nulldata.status"draft" | "reviewed" | "approved" | "sent" | "superseded" | "executed"requiredThe lifecycle of a version.
data.contentHashstring | nulldata.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_createVersion', {
pact_id: '<pact_id>',
body: {
label: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_createVersion",
"arguments": {
"pact_id": "<pact_id>",
"body": {
"label": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}Get version
GET/v1/pacts/pacts/{pact_id}/versions/{version_id}
Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.
Parameters
pact_idpath · stringrequiredversion_idpath · stringrequired
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredA version: an ordered set of documents plus the digest of that set.
content_hashis 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.pactIdstringrequireddata.ordinalinteger (int32)requireddata.parentVersionIdstring | nulldata.labelstringrequireddata.aiGeneratedbooleanrequireddata.modelTraceIdstring | nulldata.changeSummarystring | nulldata.redlineAgainstVersionIdstring | nulldata.status"draft" | "reviewed" | "approved" | "sent" | "superseded" | "executed"requiredThe lifecycle of a version.
data.contentHashstring | nulldata.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_getVersion', {
pact_id: '<pact_id>',
version_id: '<version_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_getVersion",
"arguments": {
"pact_id": "<pact_id>",
"version_id": "<version_id>"
}
}
}Approve a version for signature: finalize its hash and mark it approved
POST/v1/pacts/pacts/{pact_id}/versions/{version_id}/approve-for-signature
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 · stringrequiredversion_idpath · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredA version: an ordered set of documents plus the digest of that set.
content_hashis 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.pactIdstringrequireddata.ordinalinteger (int32)requireddata.parentVersionIdstring | nulldata.labelstringrequireddata.aiGeneratedbooleanrequireddata.modelTraceIdstring | nulldata.changeSummarystring | nulldata.redlineAgainstVersionIdstring | nulldata.status"draft" | "reviewed" | "approved" | "sent" | "superseded" | "executed"requiredThe lifecycle of a version.
data.contentHashstring | nulldata.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_approveForSignature', {
pact_id: '<pact_id>',
version_id: '<version_id>',
body: 'string',
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_approveForSignature",
"arguments": {
"pact_id": "<pact_id>",
"version_id": "<version_id>",
"body": "string",
"idempotency_key": "<a stable key per change>"
}
}
}
}Compare two versions' document digests, ordinal by ordinal
POST/v1/pacts/pacts/{pact_id}/versions/{version_id}/compare
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 · stringrequiredversion_idpath · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequireddata.versionIdstringdata.otherVersionIdstringdata.identicalanydata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_compareVersions', {
pact_id: '<pact_id>',
version_id: '<version_id>',
body: {
otherVersionId: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_compareVersions",
"arguments": {
"pact_id": "<pact_id>",
"version_id": "<version_id>",
"body": {
"otherVersionId": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}Start a redline: a new draft version whose base is an existing one
POST/v1/pacts/pacts/{pact_id}/versions/{version_id}/redline
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 · stringrequiredversion_idpath · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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
baseVersionIdstringrequiredlabelstringrequiredchangeSummarystring | null
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequireddata.redlineVersionIdstringdata.baseVersionIdstringdata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_redlineVersion', {
pact_id: '<pact_id>',
version_id: '<version_id>',
body: {
baseVersionId: 'string',
label: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_redlineVersion",
"arguments": {
"pact_id": "<pact_id>",
"version_id": "<version_id>",
"body": {
"baseVersionId": "string",
"label": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}Void
Void a pact, with the reason
POST/v1/pacts/pacts/{pact_id}/void
Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.
Parameters
pact_idpath · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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
reasonstringrequiredRequired: voiding a pact is a legal act, and the audit trail has to say why it happened.
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredA pact: the canonical agreement container.
data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.matterIdstring | nulldata.namestringrequireddata.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"requiredThe 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"requiredThe 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"requiredHow much legal weight a pact's signatures may carry.
data.governingLawstring | nulldata.venuestring | nulldata.primaryLanguagestringrequireddata.valueobject | nulldata.startDatestring | null (date)data.effectiveDatestring | null (date)data.expirationDatestring | null (date)data.renewalanydata.riskSummaryanydata.aiSummarystring | nulldata.createdByActorIdstringrequireddata.responsibleAttorneyActorIdstring | nulldata.businessOwnerActorIdstring | nulldata.confidentialityClass"public" | "internal" | "confidential" | "highly_confidential" | "restricted"requiredHow sensitive the record is.
data.privilegeClass"none" | "attorney_client" | "work_product" | "joint_defense" | "common_interest"requiredA privilege assertion.
Nonemeans none is claimed.data.currentDocumentVersionIdstring | nulldata.signaturePackageIdstring | nulldata.createdAtstring (date-time)requireddata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_voidPact', {
pact_id: '<pact_id>',
body: {
reason: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_voidPact",
"arguments": {
"pact_id": "<pact_id>",
"body": {
"reason": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}Void a signature package, with the reason
POST/v1/pacts/signature-packages/{package_id}/void
Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.
Parameters
package_idpath · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredA 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.pactIdstringrequireddata.versionIdstringrequireddata.provider"pacts_native" | "docusign" | "adobe_sign" | "hellosign" | "qualified_trust_service" | "external"requiredWho is providing the signing service.
data.signatureLevel"test_signature" | "electronic" | "advanced_electronic" | "qualified_electronic" | "electronic_seal" | "agent_signature"requiredThe assurance level of a signature. Ordered weakest to strongest, with
test_signaturedeliberately 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"requiredThe lifecycle of a signature package.
data.orderedSigningbooleanrequireddata.sealedContentHashstring | nulldata.sealedAtstring | null (date-time)data.completionCertificateRefstring | nulldata.completionCertificateSha256string | nulldata.declineReasonstring | nulldata.voidReasonstring | nulldata.expiresAtstring | null (date-time)data.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requireddata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_voidPackage', {
package_id: '<package_id>',
body: {
reason: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_voidPackage",
"arguments": {
"package_id": "<package_id>",
"body": {
"reason": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}Parties
List parties
GET/v1/pacts/parties
Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequireddata.partiesobject[]data.parties[].[].idstringrequireddata.parties[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.parties[].[].scope.organizationIdstringrequireddata.parties[].[].scope.workspaceIdstringrequireddata.parties[].[].scope.projectIdstring | nulldata.parties[].[].scope.environmentIdstringrequireddata.parties[].[].namestringrequireddata.parties[].[].partyType"legal_entity" | "individual" | "agent" | "government" | "trust" | "other"requiredThe legal form of a party.
data.parties[].[].role"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other"requiredA party's role in an agreement.
data.parties[].[].legalEntityIdstring | nulldata.parties[].[].jurisdictionstring | nulldata.parties[].[].addressanydata.parties[].[].externalPartybooleanrequireddata.parties[].[].verificationStatus"unverified" | "verified" | "disputed" | "expired" | "revoked" | "blocked"requiredThe verification state of a party, grant, or contact.
data.parties[].[].createdByActorIdstringrequireddata.parties[].[].createdAtstring (date-time)requireddata.parties[].[].updatedAtstring (date-time)required
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/parties" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_listParties'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_listParties",
"arguments": {}
}
}Create a party
POST/v1/pacts/parties
Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.
Parameters
Idempotency-Keyheader · stringrequiredRequired 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
namestringrequiredpartyType"legal_entity" | "individual" | "agent" | "government" | "trust" | "other"requiredThe legal form of a party.
role"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other"requiredA party's role in an agreement.
legalEntityIdstring | nulljurisdictionstring | nulladdressanyexternalPartyboolean | null
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredA party: the entity that signs or is represented.
data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.namestringrequireddata.partyType"legal_entity" | "individual" | "agent" | "government" | "trust" | "other"requiredThe legal form of a party.
data.role"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other"requiredA party's role in an agreement.
data.legalEntityIdstring | nulldata.jurisdictionstring | nulldata.addressanydata.externalPartybooleanrequireddata.verificationStatus"unverified" | "verified" | "disputed" | "expired" | "revoked" | "blocked"requiredThe verification state of a party, grant, or contact.
data.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_createParty', {
body: {
name: 'string',
partyType: 'legal_entity',
role: 'customer',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_createParty",
"arguments": {
"body": {
"name": "string",
"partyType": "legal_entity",
"role": "customer"
},
"idempotency_key": "<a stable key per change>"
}
}
}Get party
GET/v1/pacts/parties/{party_id}
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}envelopeResponse fields
dataobjectrequiredA party: the entity that signs or is represented.
data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.namestringrequireddata.partyType"legal_entity" | "individual" | "agent" | "government" | "trust" | "other"requiredThe legal form of a party.
data.role"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other"requiredA party's role in an agreement.
data.legalEntityIdstring | nulldata.jurisdictionstring | nulldata.addressanydata.externalPartybooleanrequireddata.verificationStatus"unverified" | "verified" | "disputed" | "expired" | "revoked" | "blocked"requiredThe verification state of a party, grant, or contact.
data.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_getParty', {
party_id: '<party_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_getParty",
"arguments": {
"party_id": "<party_id>"
}
}
}Update party
PATCH/v1/pacts/parties/{party_id}
Scope pacts:write. Not delegable: a delegated principal (One acting for a company) gets 403 PERSON_ONLY. Idempotency-Key is required.
Parameters
party_idpath · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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 | nullrole"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other" | nulllegalEntityIdstring | nulljurisdictionstring | nulladdressany
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredA party: the entity that signs or is represented.
data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.namestringrequireddata.partyType"legal_entity" | "individual" | "agent" | "government" | "trust" | "other"requiredThe legal form of a party.
data.role"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other"requiredA party's role in an agreement.
data.legalEntityIdstring | nulldata.jurisdictionstring | nulldata.addressanydata.externalPartybooleanrequireddata.verificationStatus"unverified" | "verified" | "disputed" | "expired" | "revoked" | "blocked"requiredThe verification state of a party, grant, or contact.
data.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_updateParty', {
party_id: '<party_id>',
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_updateParty",
"arguments": {
"party_id": "<party_id>",
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}Playbooks
List playbooks
GET/v1/pacts/playbooks
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 · stringpartyRolequery · "customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other"
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequireddata.playbooksobject[]data.playbooks[].[].idstringrequireddata.playbooks[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.playbooks[].[].scope.organizationIdstringrequireddata.playbooks[].[].scope.workspaceIdstringrequireddata.playbooks[].[].scope.projectIdstring | nulldata.playbooks[].[].scope.environmentIdstringrequireddata.playbooks[].[].namestringrequireddata.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"[]requireddata.playbooks[].[].jurisdictionstring | nulldata.playbooks[].[].partyRole"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other" | nulldata.playbooks[].[].ownerActorIdstringrequireddata.playbooks[].[].status"draft" | "active" | "deprecated"requiredWhere a playbook sits in its working life.
data.playbooks[].[].approvedClauseIdsstring[]requireddata.playbooks[].[].blockedClausePatternsstring[]requireddata.playbooks[].[].fallbackPositionsanyrequireddata.playbooks[].[].escalationRulesanyrequireddata.playbooks[].[].createdByActorIdstringrequireddata.playbooks[].[].createdAtstring (date-time)requireddata.playbooks[].[].updatedAtstring (date-time)required
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/playbooks" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_listPlaybooks'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_listPlaybooks",
"arguments": {}
}
}Create playbook
POST/v1/pacts/playbooks
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 · stringrequiredRequired 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
namestringrequiredagreementTypes"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"[]requiredjurisdictionstring | nullpartyRole"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other" | nullownerActorIdstring | nullapprovedClauseIdsstring[]blockedClausePatternsstring[]fallbackPositionsanyescalationRulesanyrulesobject[]rules[].[].idstring | nullPresent 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[].[].namestringrequiredrules[].[].conditionanyrules[].[].severity"info" | "low" | "medium" | "high" | "critical"requiredHow much weight a triggered playbook rule carries.
rules[].[].requiredAction"none" | "warn" | "redline" | "approval_required" | "counsel_review_required" | "block"requiredWhat 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 | nullrules[].[].messagestringrequired
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequireddata.playbookobjectA playbook: the positions and rules that govern a class of agreements.
fallback_positionsandescalation_rulesare 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.idstringrequireddata.playbook.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.playbook.scope.organizationIdstringrequireddata.playbook.scope.workspaceIdstringrequireddata.playbook.scope.projectIdstring | nulldata.playbook.scope.environmentIdstringrequireddata.playbook.namestringrequireddata.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"[]requireddata.playbook.jurisdictionstring | nulldata.playbook.partyRole"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other" | nulldata.playbook.ownerActorIdstringrequireddata.playbook.status"draft" | "active" | "deprecated"requiredWhere a playbook sits in its working life.
data.playbook.approvedClauseIdsstring[]requireddata.playbook.blockedClausePatternsstring[]requireddata.playbook.fallbackPositionsanyrequireddata.playbook.escalationRulesanyrequireddata.playbook.createdByActorIdstringrequireddata.playbook.createdAtstring (date-time)requireddata.playbook.updatedAtstring (date-time)requireddata.rulesobject[]data.rules[].[].idstringrequireddata.rules[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.rules[].[].scope.organizationIdstringrequireddata.rules[].[].scope.workspaceIdstringrequireddata.rules[].[].scope.projectIdstring | nulldata.rules[].[].scope.environmentIdstringrequireddata.rules[].[].playbookIdstringrequireddata.rules[].[].ordinalinteger (int32)requireddata.rules[].[].namestringrequireddata.rules[].[].conditionanyrequireddata.rules[].[].severity"info" | "low" | "medium" | "high" | "critical"requiredHow much weight a triggered playbook rule carries.
data.rules[].[].requiredAction"none" | "warn" | "redline" | "approval_required" | "counsel_review_required" | "block"requiredWhat 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 | nulldata.rules[].[].messagestringrequireddata.rules[].[].createdByActorIdstringrequireddata.rules[].[].createdAtstring (date-time)requireddata.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": []
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_createPlaybook', {
body: {
name: 'string',
agreementTypes: [],
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_createPlaybook",
"arguments": {
"body": {
"name": "string",
"agreementTypes": []
},
"idempotency_key": "<a stable key per change>"
}
}
}
}Get playbook
GET/v1/pacts/playbooks/{playbook_id}
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}envelopeResponse fields
dataobjectrequireddata.playbookobjectA playbook: the positions and rules that govern a class of agreements.
fallback_positionsandescalation_rulesare 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.idstringrequireddata.playbook.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.playbook.scope.organizationIdstringrequireddata.playbook.scope.workspaceIdstringrequireddata.playbook.scope.projectIdstring | nulldata.playbook.scope.environmentIdstringrequireddata.playbook.namestringrequireddata.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"[]requireddata.playbook.jurisdictionstring | nulldata.playbook.partyRole"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other" | nulldata.playbook.ownerActorIdstringrequireddata.playbook.status"draft" | "active" | "deprecated"requiredWhere a playbook sits in its working life.
data.playbook.approvedClauseIdsstring[]requireddata.playbook.blockedClausePatternsstring[]requireddata.playbook.fallbackPositionsanyrequireddata.playbook.escalationRulesanyrequireddata.playbook.createdByActorIdstringrequireddata.playbook.createdAtstring (date-time)requireddata.playbook.updatedAtstring (date-time)requireddata.rulesobject[]data.rules[].[].idstringrequireddata.rules[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.rules[].[].scope.organizationIdstringrequireddata.rules[].[].scope.workspaceIdstringrequireddata.rules[].[].scope.projectIdstring | nulldata.rules[].[].scope.environmentIdstringrequireddata.rules[].[].playbookIdstringrequireddata.rules[].[].ordinalinteger (int32)requireddata.rules[].[].namestringrequireddata.rules[].[].conditionanyrequireddata.rules[].[].severity"info" | "low" | "medium" | "high" | "critical"requiredHow much weight a triggered playbook rule carries.
data.rules[].[].requiredAction"none" | "warn" | "redline" | "approval_required" | "counsel_review_required" | "block"requiredWhat 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 | nulldata.rules[].[].messagestringrequireddata.rules[].[].createdByActorIdstringrequireddata.rules[].[].createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_getPlaybook', {
playbook_id: '<playbook_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_getPlaybook",
"arguments": {
"playbook_id": "<playbook_id>"
}
}
}Update playbook
PATCH/v1/pacts/playbooks/{playbook_id}
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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 | nullagreementTypesarray | nulljurisdictionstring | nullpartyRole"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other" | nullownerActorIdstring | nullapprovedClauseIdsarray | nullblockedClausePatternsarray | nullfallbackPositionsanyescalationRulesanyrulesarray | nullWhen 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}envelopeResponse fields
dataobjectrequireddata.playbookobjectA playbook: the positions and rules that govern a class of agreements.
fallback_positionsandescalation_rulesare 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.idstringrequireddata.playbook.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.playbook.scope.organizationIdstringrequireddata.playbook.scope.workspaceIdstringrequireddata.playbook.scope.projectIdstring | nulldata.playbook.scope.environmentIdstringrequireddata.playbook.namestringrequireddata.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"[]requireddata.playbook.jurisdictionstring | nulldata.playbook.partyRole"customer" | "vendor" | "provider" | "recipient" | "discloser" | "processor" | "controller" | "employer" | "employee" | "contractor" | "licensor" | "licensee" | "buyer" | "seller" | "partner" | "other" | nulldata.playbook.ownerActorIdstringrequireddata.playbook.status"draft" | "active" | "deprecated"requiredWhere a playbook sits in its working life.
data.playbook.approvedClauseIdsstring[]requireddata.playbook.blockedClausePatternsstring[]requireddata.playbook.fallbackPositionsanyrequireddata.playbook.escalationRulesanyrequireddata.playbook.createdByActorIdstringrequireddata.playbook.createdAtstring (date-time)requireddata.playbook.updatedAtstring (date-time)requireddata.rulesobject[]data.rules[].[].idstringrequireddata.rules[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.rules[].[].scope.organizationIdstringrequireddata.rules[].[].scope.workspaceIdstringrequireddata.rules[].[].scope.projectIdstring | nulldata.rules[].[].scope.environmentIdstringrequireddata.rules[].[].playbookIdstringrequireddata.rules[].[].ordinalinteger (int32)requireddata.rules[].[].namestringrequireddata.rules[].[].conditionanyrequireddata.rules[].[].severity"info" | "low" | "medium" | "high" | "critical"requiredHow much weight a triggered playbook rule carries.
data.rules[].[].requiredAction"none" | "warn" | "redline" | "approval_required" | "counsel_review_required" | "block"requiredWhat 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 | nulldata.rules[].[].messagestringrequireddata.rules[].[].createdByActorIdstringrequireddata.rules[].[].createdAtstring (date-time)requireddata.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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_updatePlaybook', {
playbook_id: '<playbook_id>',
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_updatePlaybook",
"arguments": {
"playbook_id": "<playbook_id>",
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}
}Test
Test a proposed clause set against a playbook
POST/v1/pacts/playbooks/{playbook_id}/test
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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[]requiredThe 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" | nullWhen 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}envelopeResponse fields
dataobjectrequiredThe test report. The evaluation is flattened in: outcome, findings, and fallbacks sit beside the playbook identity.
data.playbookIdstringrequireddata.playbookStatus"draft" | "active" | "deprecated"requiredWhere a playbook sits in its working life.
data.clausesEvaluatedintegerrequireddata.outcome"pass" | "deviations" | "blocked"requiredThe summary verdict.
data.findingsobject[]requireddata.findings[].[].clauseIdstringrequireddata.findings[].[].kind"unknown_clause" | "not_approved" | "deprecated" | "blocked" | "outside_approved_set" | "blocked_pattern"requiredWhy a cited clause deviates from the playbook.
data.findings[].[].messagestringrequireddata.fallbacksobject[]requireddata.fallbacks[].[].clauseIdstringrequireddata.fallbacks[].[].suggestedClauseIdsstring[]requireddata.rulesobject[]requiredThe playbook's rules — the governing rule set. Their conditions are evaluated by the policy engine over extracted pact terms, not here.
data.rules[].[].idstringrequireddata.rules[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.rules[].[].scope.organizationIdstringrequireddata.rules[].[].scope.workspaceIdstringrequireddata.rules[].[].scope.projectIdstring | nulldata.rules[].[].scope.environmentIdstringrequireddata.rules[].[].playbookIdstringrequireddata.rules[].[].ordinalinteger (int32)requireddata.rules[].[].namestringrequireddata.rules[].[].conditionanyrequireddata.rules[].[].severity"info" | "low" | "medium" | "high" | "critical"requiredHow much weight a triggered playbook rule carries.
data.rules[].[].requiredAction"none" | "warn" | "redline" | "approval_required" | "counsel_review_required" | "block"requiredWhat 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 | nulldata.rules[].[].messagestringrequireddata.rules[].[].createdByActorIdstringrequireddata.rules[].[].createdAtstring (date-time)requireddata.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": []
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_testPlaybook', {
playbook_id: '<playbook_id>',
body: {
clauseIds: [],
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_testPlaybook",
"arguments": {
"playbook_id": "<playbook_id>",
"body": {
"clauseIds": []
},
"idempotency_key": "<a stable key per change>"
}
}
}Retention policies
List policies
GET/v1/pacts/retention-policies
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}envelopeResponse fields
dataobjectrequireddata.policiesobject[]data.policies[].[].idstringrequireddata.policies[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.policies[].[].scope.organizationIdstringrequireddata.policies[].[].scope.workspaceIdstringrequireddata.policies[].[].scope.projectIdstring | nulldata.policies[].[].scope.environmentIdstringrequireddata.policies[].[].namestringrequireddata.policies[].[].basis"tenant_default" | "matter" | "agreement_type" | "executed_agreement" | "draft" | "ai_output" | "webhook" | "audit" | "evidence_bundle"requiredWhat 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" | nullNarrows 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.
Noneonly for a policy that retains indefinitely — every destructive action carries a period.data.policies[].[].actionAtExpiry"retain_indefinitely" | "delete" | "anonymize" | "archive_then_delete"requiredWhat happens when a retention window closes.
data.policies[].[].exportBeforeDeletionbooleanrequiredWhether an export must be produced before anything is destroyed.
data.policies[].[].leaveTombstonebooleanrequiredWhether a tombstone survives deletion, so the absence is recorded rather than the row simply vanishing.
data.policies[].[].isActivebooleanrequireddata.policies[].[].approvedByActorIdstring | nullWho 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[].[].createdByActorIdstringrequireddata.policies[].[].createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_listPolicies'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_listPolicies",
"arguments": {}
}
}Create policy
POST/v1/pacts/retention-policies
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 · stringrequiredRequired 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
namestringrequiredbasis"tenant_default" | "matter" | "agreement_type" | "executed_agreement" | "draft" | "ai_output" | "webhook" | "audit" | "evidence_bundle"requiredWhat 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" | nullNarrows 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"requiredWhat happens when a retention window closes.
exportBeforeDeletionboolean | nullleaveTombstoneboolean | nullisActiveboolean | nullDefaults to active. An active destructive policy is signed off at the write: the caller is recorded as its approver.
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredA 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_approvedrefuses an active destructive policy that names no approver — automated destruction of legal records on an unapproved policy is the failure that prevents.data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.namestringrequireddata.basis"tenant_default" | "matter" | "agreement_type" | "executed_agreement" | "draft" | "ai_output" | "webhook" | "audit" | "evidence_bundle"requiredWhat 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" | nullNarrows 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.
Noneonly for a policy that retains indefinitely — every destructive action carries a period.data.actionAtExpiry"retain_indefinitely" | "delete" | "anonymize" | "archive_then_delete"requiredWhat happens when a retention window closes.
data.exportBeforeDeletionbooleanrequiredWhether an export must be produced before anything is destroyed.
data.leaveTombstonebooleanrequiredWhether a tombstone survives deletion, so the absence is recorded rather than the row simply vanishing.
data.isActivebooleanrequireddata.approvedByActorIdstring | nullWho 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.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_createPolicy', {
body: {
name: 'string',
basis: 'tenant_default',
actionAtExpiry: 'retain_indefinitely',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_createPolicy",
"arguments": {
"body": {
"name": "string",
"basis": "tenant_default",
"actionAtExpiry": "retain_indefinitely"
},
"idempotency_key": "<a stable key per change>"
}
}
}
}Get policy
GET/v1/pacts/retention-policies/{policy_id}
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}envelopeResponse fields
dataobjectrequiredA 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_approvedrefuses an active destructive policy that names no approver — automated destruction of legal records on an unapproved policy is the failure that prevents.data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.namestringrequireddata.basis"tenant_default" | "matter" | "agreement_type" | "executed_agreement" | "draft" | "ai_output" | "webhook" | "audit" | "evidence_bundle"requiredWhat 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" | nullNarrows 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.
Noneonly for a policy that retains indefinitely — every destructive action carries a period.data.actionAtExpiry"retain_indefinitely" | "delete" | "anonymize" | "archive_then_delete"requiredWhat happens when a retention window closes.
data.exportBeforeDeletionbooleanrequiredWhether an export must be produced before anything is destroyed.
data.leaveTombstonebooleanrequiredWhether a tombstone survives deletion, so the absence is recorded rather than the row simply vanishing.
data.isActivebooleanrequireddata.approvedByActorIdstring | nullWho 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.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_getPolicy', {
policy_id: '<policy_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_getPolicy",
"arguments": {
"policy_id": "<policy_id>"
}
}
}Update policy
PATCH/v1/pacts/retention-policies/{policy_id}
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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 | nullbasis"tenant_default" | "matter" | "agreement_type" | "executed_agreement" | "draft" | "ai_output" | "webhook" | "audit" | "evidence_bundle" | nullagreementType"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" | nullnullclears the type — legal only when the basis is not (or is being moved off)agreement_type; the schema enforces the pairing.retentionPeriodDaysinteger | null (int32)nullclears the period — legal only for retain-indefinitely; the schema refuses to leave destruction unscheduled.actionAtExpiry"retain_indefinitely" | "delete" | "anonymize" | "archive_then_delete" | nullexportBeforeDeletionboolean | nullleaveTombstoneboolean | nullisActiveboolean | null
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredA 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_approvedrefuses an active destructive policy that names no approver — automated destruction of legal records on an unapproved policy is the failure that prevents.data.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.namestringrequireddata.basis"tenant_default" | "matter" | "agreement_type" | "executed_agreement" | "draft" | "ai_output" | "webhook" | "audit" | "evidence_bundle"requiredWhat 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" | nullNarrows 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.
Noneonly for a policy that retains indefinitely — every destructive action carries a period.data.actionAtExpiry"retain_indefinitely" | "delete" | "anonymize" | "archive_then_delete"requiredWhat happens when a retention window closes.
data.exportBeforeDeletionbooleanrequiredWhether an export must be produced before anything is destroyed.
data.leaveTombstonebooleanrequiredWhether a tombstone survives deletion, so the absence is recorded rather than the row simply vanishing.
data.isActivebooleanrequireddata.approvedByActorIdstring | nullWho 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.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_updatePolicy', {
policy_id: '<policy_id>',
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_updatePolicy",
"arguments": {
"policy_id": "<policy_id>",
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}
}Session
The caller's own resolved scope (who am I)
GET/v1/pacts/session
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}envelopeResponse fields
dataobjectrequireddata.actorIdstringdata.organizationIdstringdata.workspaceIdstringdata.projectIdstringdata.environmentIdstringdata.environmentClassanydata.permitsProductionLegalEffectanydata.requestIdstring
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/session" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_getSession'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_getSession",
"arguments": {}
}
}Ceremony
Open a ceremony session for a signer on a package
POST/v1/pacts/signature-packages/{package_id}/ceremony
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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
signerActorIdstringrequiredipAddressHashstring | nulluserAgentHashstring | null
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredA 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, andsigner_authenticatedwere 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.signaturePackageIdstringrequireddata.signerActorIdstringrequireddata.sealedContentHashstringrequiredThe 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"requiredThe state of a ceremony session.
data.disclosureShownAtstring | null (date-time)data.consentGivenAtstring | null (date-time)data.authenticatedAtstring | null (date-time)data.authenticationMethodstring | nulldata.intentToSignAtstring | null (date-time)data.ipAddressHashstring | nulldata.userAgentHashstring | nulldata.expiresAtstring (date-time)requireddata.createdAtstring (date-time)requireddata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_openCeremony', {
package_id: '<package_id>',
body: {
signerActorId: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_openCeremony",
"arguments": {
"package_id": "<package_id>",
"body": {
"signerActorId": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}Certificate
Get a signature package's completion certificate
GET/v1/pacts/signature-packages/{package_id}/certificate
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}envelopeResponse fields
dataobjectrequireddata.packageIdstringdata.statusanydata.certificateRefanydata.certificateSha256anydata.certificateanydata.offlineVerificationPassedboolean
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/signature-packages/$PACKAGE_ID/certificate" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_getCertificate', {
package_id: '<package_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_getCertificate",
"arguments": {
"package_id": "<package_id>"
}
}
}Send
Seal the package to the version's current hash and mark it sent
POST/v1/pacts/signature-packages/{package_id}/send
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredA 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.pactIdstringrequireddata.versionIdstringrequireddata.provider"pacts_native" | "docusign" | "adobe_sign" | "hellosign" | "qualified_trust_service" | "external"requiredWho is providing the signing service.
data.signatureLevel"test_signature" | "electronic" | "advanced_electronic" | "qualified_electronic" | "electronic_seal" | "agent_signature"requiredThe assurance level of a signature. Ordered weakest to strongest, with
test_signaturedeliberately 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"requiredThe lifecycle of a signature package.
data.orderedSigningbooleanrequireddata.sealedContentHashstring | nulldata.sealedAtstring | null (date-time)data.completionCertificateRefstring | nulldata.completionCertificateSha256string | nulldata.declineReasonstring | nulldata.voidReasonstring | nulldata.expiresAtstring | null (date-time)data.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requireddata.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"'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_sendPackage', {
package_id: '<package_id>',
body: 'string',
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_sendPackage",
"arguments": {
"package_id": "<package_id>",
"body": "string",
"idempotency_key": "<a stable key per change>"
}
}
}Sign
Record a signature
POST/v1/pacts/signature-packages/{package_id}/sign
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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
signerActorIdstringrequiredThe signer. Resolved from the invitation list, re-checked here.
representedPartyIdstringrequiredauthorityGrantIdstringrequiredintentCapturedboolean | nullCeremony evidence. A real level requires all three.
consentCapturedboolean | nullsignerAuthenticatedboolean | nullauthenticationMethodstring | nullsignatureValueRefstring | nullCryptographic 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 | nullsigningKeyIdstring | nullauthorityOrgIdstring | nullThe Auto org this signature is for (a company One runs). Forwarded to Auto's
signcheck; a chartered tenant refuses a check without it.
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequireddata.signatureanydata.packageStatusanydata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_signPackage', {
package_id: '<package_id>',
body: {
signerActorId: 'string',
representedPartyId: 'string',
authorityGrantId: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_signPackage",
"arguments": {
"package_id": "<package_id>",
"body": {
"signerActorId": "string",
"representedPartyId": "string",
"authorityGrantId": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}Usage
List usage
GET/v1/pacts/usage
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 · stringfromquery · string (date-time)toquery · string (date-time)limitquery · integer (int64)
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequireddata.usageobject[]data.usage[].[].idstringrequireddata.usage[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.usage[].[].scope.organizationIdstringrequireddata.usage[].[].scope.workspaceIdstringrequireddata.usage[].[].scope.projectIdstring | nulldata.usage[].[].scope.environmentIdstringrequireddata.usage[].[].accountIdstringrequiredThe billing account the event is attributed to: the organization Garden invoices for this usage.
data.usage[].[].subjectIdstringrequiredThe 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"requiredThe resource a usage event meters, per
SPEC.md's billing section.data.usage[].[].resourceIdstringrequiredThe metered record's id — the signature, the AI run, the document. Together with
occurred_atit is the idempotency identity: a retried action re-emits the same identity and the schema refuses the duplicate.data.usage[].[].quantityanyrequiredThe metered amount. Exact decimal end to end: NUMERIC in the row, [
rust_decimal::Decimal] here, a JSON number on the wire.data.usage[].[].unitstringrequiredWhat
quantitycounts in:signature,token,byte, and the like.data.usage[].[].metadataanyrequiredAttribution 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;
Nonemeans the reporter still owes the call. The schema keeps the two reporting columns in lockstep.data.usage[].[].gardenEventIdstring | nullGarden's own id for the accepted event (
ue_...), the cross-system handle a billing dispute is resolved with.data.usage[].[].occurredAtstring (date-time)requiredWhen 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_listUsage'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_listUsage",
"arguments": {}
}
}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
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}envelopeResponse fields
dataobjectrequireddata.summaryany
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/usage/summary" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_summarizeUsage'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_summarizeUsage",
"arguments": {}
}
}Webhook deliveries
Deliveries across the scope, newest first
GET/v1/pacts/webhook-deliveries
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 · stringstatusquery · string
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequireddata.deliveriesobject[]data.deliveries[].[].idstringrequireddata.deliveries[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.deliveries[].[].scope.organizationIdstringrequireddata.deliveries[].[].scope.workspaceIdstringrequireddata.deliveries[].[].scope.projectIdstring | nulldata.deliveries[].[].scope.environmentIdstringrequireddata.deliveries[].[].endpointIdstringrequireddata.deliveries[].[].eventIdstringrequiredThe 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"requiredThe 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 thevocabulary!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[].[].payloadanyrequiredThe CloudEvents envelope, exactly as sent. References and statuses only:
SPEC.mdbars privileged document content from deliveries by default, so the payload names what happened and where the record lives, never the paper itself.data.deliveries[].[].payloadSha256stringrequireddata.deliveries[].[].status"pending" | "in_flight" | "delivered" | "failed" | "dead_lettered" | "cancelled"requiredWhere one event's delivery to one endpoint sits.
Failedis retryable — the schema requiresnext_attempt_aton it, because an unscheduled retry is a delivery that silently never happens.DeadLetteredis the end of the retry budget: the delivery leaves the ladder and waits for an operator to redeliver it.data.deliveries[].[].attemptCountinteger (int32)requireddata.deliveries[].[].nextAttemptAtstring | null (date-time)data.deliveries[].[].responseStatusCodeinteger | null (int32)data.deliveries[].[].responseBodyExcerptstring | nulldata.deliveries[].[].errorMessagestring | nulldata.deliveries[].[].firstAttemptedAtstring | null (date-time)data.deliveries[].[].deliveredAtstring | null (date-time)data.deliveries[].[].deadLetteredAtstring | null (date-time)data.deliveries[].[].createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_listDeliveries'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_listDeliveries",
"arguments": {}
}
}Get delivery
GET/v1/pacts/webhook-deliveries/{delivery_id}
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}envelopeResponse fields
dataobjectrequiredOne 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.endpointIdstringrequireddata.eventIdstringrequiredThe 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"requiredThe 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 thevocabulary!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.payloadanyrequiredThe CloudEvents envelope, exactly as sent. References and statuses only:
SPEC.mdbars privileged document content from deliveries by default, so the payload names what happened and where the record lives, never the paper itself.data.payloadSha256stringrequireddata.status"pending" | "in_flight" | "delivered" | "failed" | "dead_lettered" | "cancelled"requiredWhere one event's delivery to one endpoint sits.
Failedis retryable — the schema requiresnext_attempt_aton it, because an unscheduled retry is a delivery that silently never happens.DeadLetteredis the end of the retry budget: the delivery leaves the ladder and waits for an operator to redeliver it.data.attemptCountinteger (int32)requireddata.nextAttemptAtstring | null (date-time)data.responseStatusCodeinteger | null (int32)data.responseBodyExcerptstring | nulldata.errorMessagestring | nulldata.firstAttemptedAtstring | null (date-time)data.deliveredAtstring | null (date-time)data.deadLetteredAtstring | null (date-time)data.createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_getDelivery', {
delivery_id: '<delivery_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_getDelivery",
"arguments": {
"delivery_id": "<delivery_id>"
}
}
}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
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequiredOne 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.endpointIdstringrequireddata.eventIdstringrequiredThe 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"requiredThe 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 thevocabulary!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.payloadanyrequiredThe CloudEvents envelope, exactly as sent. References and statuses only:
SPEC.mdbars privileged document content from deliveries by default, so the payload names what happened and where the record lives, never the paper itself.data.payloadSha256stringrequireddata.status"pending" | "in_flight" | "delivered" | "failed" | "dead_lettered" | "cancelled"requiredWhere one event's delivery to one endpoint sits.
Failedis retryable — the schema requiresnext_attempt_aton it, because an unscheduled retry is a delivery that silently never happens.DeadLetteredis the end of the retry budget: the delivery leaves the ladder and waits for an operator to redeliver it.data.attemptCountinteger (int32)requireddata.nextAttemptAtstring | null (date-time)data.responseStatusCodeinteger | null (int32)data.responseBodyExcerptstring | nulldata.errorMessagestring | nulldata.firstAttemptedAtstring | null (date-time)data.deliveredAtstring | null (date-time)data.deadLetteredAtstring | null (date-time)data.createdAtstring (date-time)requireddata.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"'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_redeliverDelivery', {
delivery_id: '<delivery_id>',
body: 'string',
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_redeliverDelivery",
"arguments": {
"delivery_id": "<delivery_id>",
"body": "string",
"idempotency_key": "<a stable key per change>"
}
}
}
}Webhook endpoints
List endpoints
GET/v1/pacts/webhook-endpoints
Scope pacts:read. A delegated principal (One acting for a person in a company) may call it.
Parameters
statusquery · string
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequireddata.endpointsobject[]data.endpoints[].[].idstringrequireddata.endpoints[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.endpoints[].[].scope.organizationIdstringrequireddata.endpoints[].[].scope.workspaceIdstringrequireddata.endpoints[].[].scope.projectIdstring | nulldata.endpoints[].[].scope.environmentIdstringrequireddata.endpoints[].[].urlstringrequireddata.endpoints[].[].descriptionstring | nulldata.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"[]requireddata.endpoints[].[].status"active" | "paused" | "failing" | "disabled"requiredWhere a webhook endpoint sits.
Failingis 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.PausedandDisabledare the operator's off switches; onlyDisabledneeds a reason (the schema refuses an unexplained one), because disabling is the state a dispute review asks about.data.endpoints[].[].signingSecretRefstringrequireddata.endpoints[].[].signatureAlgorithmstringrequireddata.endpoints[].[].maxAttemptsinteger (int32)requireddata.endpoints[].[].consecutiveFailuresinteger (int32)requireddata.endpoints[].[].lastSuccessAtstring | null (date-time)data.endpoints[].[].lastFailureAtstring | null (date-time)data.endpoints[].[].disabledReasonstring | nulldata.endpoints[].[].createdByActorIdstringrequireddata.endpoints[].[].createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_listEndpoints'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_listEndpoints",
"arguments": {}
}
}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
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 · stringrequiredRequired 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
urlstringrequiredThe receiver's URL. TLS-only — the schema refuses cleartext, and so does this handler, because legal events do not travel unencrypted.
descriptionstring | nulleventTypesstring[]requiredThe 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 | nullOnly
hmac-sha256is produced by this build. Asymmetric signing is a spec change, not a config value.
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredA webhook endpoint: a receiver's URL, its subscribed events, and the custody reference its deliveries are signed with.
signing_secret_refnames 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.urlstringrequireddata.descriptionstring | nulldata.eventTypes"PactCreated" | "PactUpdated" | "PactExecuted" | "PactExpired" | "PactTerminated" | "DocumentUploaded" | "VersionCreated" | "ReviewRequested" | "ReviewCompleted" | "ApprovalRequested" | "ApprovalApproved" | "ApprovalRejected" | "SignatureSent" | "SignatureCompleted" | "SignatureDeclined" | "ObligationCreated" | "ObligationDueSoon" | "ObligationOverdue" | "ObligationCompleted" | "EvidenceBundleCreated" | "LegalHoldCreated" | "LegalHoldReleased" | "AgentActionTaken"[]requireddata.status"active" | "paused" | "failing" | "disabled"requiredWhere a webhook endpoint sits.
Failingis 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.PausedandDisabledare the operator's off switches; onlyDisabledneeds a reason (the schema refuses an unexplained one), because disabling is the state a dispute review asks about.data.signingSecretRefstringrequireddata.signatureAlgorithmstringrequireddata.maxAttemptsinteger (int32)requireddata.consecutiveFailuresinteger (int32)requireddata.lastSuccessAtstring | null (date-time)data.lastFailureAtstring | null (date-time)data.disabledReasonstring | nulldata.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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": []
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_createEndpoint', {
body: {
url: 'string',
eventTypes: [],
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_createEndpoint",
"arguments": {
"body": {
"url": "string",
"eventTypes": []
},
"idempotency_key": "<a stable key per change>"
}
}
}
}Get endpoint
GET/v1/pacts/webhook-endpoints/{endpoint_id}
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}envelopeResponse fields
dataobjectrequireddata.endpointanydata.recentDeliveriesany
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/webhook-endpoints/$ENDPOINT_ID" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_getEndpoint', {
endpoint_id: '<endpoint_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_getEndpoint",
"arguments": {
"endpoint_id": "<endpoint_id>"
}
}
}Soft-delete an endpoint
DELETE/v1/pacts/webhook-endpoints/{endpoint_id}
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequireddata.idanydata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_deleteEndpoint', {
endpoint_id: '<endpoint_id>',
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_deleteEndpoint",
"arguments": {
"endpoint_id": "<endpoint_id>",
"idempotency_key": "<a stable key per change>"
}
}
}
}Amend an endpoint's fields, or pause/resume it
PATCH/v1/pacts/webhook-endpoints/{endpoint_id}
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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 | nulldescriptionstring | nullnullclears the description.eventTypesarray | nullmaxAttemptsinteger | null (int32)statusstring | nullThe operator moves:
activeandpaused. Disabling goes through the disable route (it demands the reason);failingis computed from delivery outcomes and is never set by hand.
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequiredA webhook endpoint: a receiver's URL, its subscribed events, and the custody reference its deliveries are signed with.
signing_secret_refnames 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.urlstringrequireddata.descriptionstring | nulldata.eventTypes"PactCreated" | "PactUpdated" | "PactExecuted" | "PactExpired" | "PactTerminated" | "DocumentUploaded" | "VersionCreated" | "ReviewRequested" | "ReviewCompleted" | "ApprovalRequested" | "ApprovalApproved" | "ApprovalRejected" | "SignatureSent" | "SignatureCompleted" | "SignatureDeclined" | "ObligationCreated" | "ObligationDueSoon" | "ObligationOverdue" | "ObligationCompleted" | "EvidenceBundleCreated" | "LegalHoldCreated" | "LegalHoldReleased" | "AgentActionTaken"[]requireddata.status"active" | "paused" | "failing" | "disabled"requiredWhere a webhook endpoint sits.
Failingis 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.PausedandDisabledare the operator's off switches; onlyDisabledneeds a reason (the schema refuses an unexplained one), because disabling is the state a dispute review asks about.data.signingSecretRefstringrequireddata.signatureAlgorithmstringrequireddata.maxAttemptsinteger (int32)requireddata.consecutiveFailuresinteger (int32)requireddata.lastSuccessAtstring | null (date-time)data.lastFailureAtstring | null (date-time)data.disabledReasonstring | nulldata.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_updateEndpoint', {
endpoint_id: '<endpoint_id>',
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_updateEndpoint",
"arguments": {
"endpoint_id": "<endpoint_id>",
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}
}Deliveries
One endpoint's delivery history, newest first
GET/v1/pacts/webhook-endpoints/{endpoint_id}/deliveries
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 · stringrequiredendpointIdquery · stringstatusquery · string
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequireddata.deliveriesobject[]data.deliveries[].[].idstringrequireddata.deliveries[].[].scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.deliveries[].[].scope.organizationIdstringrequireddata.deliveries[].[].scope.workspaceIdstringrequireddata.deliveries[].[].scope.projectIdstring | nulldata.deliveries[].[].scope.environmentIdstringrequireddata.deliveries[].[].endpointIdstringrequireddata.deliveries[].[].eventIdstringrequiredThe 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"requiredThe 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 thevocabulary!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[].[].payloadanyrequiredThe CloudEvents envelope, exactly as sent. References and statuses only:
SPEC.mdbars privileged document content from deliveries by default, so the payload names what happened and where the record lives, never the paper itself.data.deliveries[].[].payloadSha256stringrequireddata.deliveries[].[].status"pending" | "in_flight" | "delivered" | "failed" | "dead_lettered" | "cancelled"requiredWhere one event's delivery to one endpoint sits.
Failedis retryable — the schema requiresnext_attempt_aton it, because an unscheduled retry is a delivery that silently never happens.DeadLetteredis the end of the retry budget: the delivery leaves the ladder and waits for an operator to redeliver it.data.deliveries[].[].attemptCountinteger (int32)requireddata.deliveries[].[].nextAttemptAtstring | null (date-time)data.deliveries[].[].responseStatusCodeinteger | null (int32)data.deliveries[].[].responseBodyExcerptstring | nulldata.deliveries[].[].errorMessagestring | nulldata.deliveries[].[].firstAttemptedAtstring | null (date-time)data.deliveries[].[].deliveredAtstring | null (date-time)data.deliveries[].[].deadLetteredAtstring | null (date-time)data.deliveries[].[].createdAtstring (date-time)requireddata.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_listEndpointDeliveries', {
endpoint_id: '<endpoint_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_listEndpointDeliveries",
"arguments": {
"endpoint_id": "<endpoint_id>"
}
}
}Disable
Disable an endpoint, with the reason the schema and a dispute review both demand
POST/v1/pacts/webhook-endpoints/{endpoint_id}/disable
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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
reasonstringrequiredRequired: 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}envelopeResponse fields
dataobjectrequiredA webhook endpoint: a receiver's URL, its subscribed events, and the custody reference its deliveries are signed with.
signing_secret_refnames 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.idstringrequireddata.scopeobjectrequiredThe scope columns every row carries. Serializes as the
scopeobject the dashboard already reads.data.scope.organizationIdstringrequireddata.scope.workspaceIdstringrequireddata.scope.projectIdstring | nulldata.scope.environmentIdstringrequireddata.urlstringrequireddata.descriptionstring | nulldata.eventTypes"PactCreated" | "PactUpdated" | "PactExecuted" | "PactExpired" | "PactTerminated" | "DocumentUploaded" | "VersionCreated" | "ReviewRequested" | "ReviewCompleted" | "ApprovalRequested" | "ApprovalApproved" | "ApprovalRejected" | "SignatureSent" | "SignatureCompleted" | "SignatureDeclined" | "ObligationCreated" | "ObligationDueSoon" | "ObligationOverdue" | "ObligationCompleted" | "EvidenceBundleCreated" | "LegalHoldCreated" | "LegalHoldReleased" | "AgentActionTaken"[]requireddata.status"active" | "paused" | "failing" | "disabled"requiredWhere a webhook endpoint sits.
Failingis 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.PausedandDisabledare the operator's off switches; onlyDisabledneeds a reason (the schema refuses an unexplained one), because disabling is the state a dispute review asks about.data.signingSecretRefstringrequireddata.signatureAlgorithmstringrequireddata.maxAttemptsinteger (int32)requireddata.consecutiveFailuresinteger (int32)requireddata.lastSuccessAtstring | null (date-time)data.lastFailureAtstring | null (date-time)data.disabledReasonstring | nulldata.createdByActorIdstringrequireddata.createdAtstring (date-time)requireddata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_disableEndpoint', {
endpoint_id: '<endpoint_id>',
body: {
reason: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_disableEndpoint",
"arguments": {
"endpoint_id": "<endpoint_id>",
"body": {
"reason": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}
}Rotate secret
Rotate the endpoint's signing secret
POST/v1/pacts/webhook-endpoints/{endpoint_id}/rotate-secret
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 · stringrequiredIdempotency-Keyheader · stringrequiredRequired 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}envelopeResponse fields
dataobjectrequireddata.endpointanydata.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"'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_rotateSecret', {
endpoint_id: '<endpoint_id>',
body: 'string',
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "pacts_rotateSecret",
"arguments": {
"endpoint_id": "<endpoint_id>",
"body": "string",
"idempotency_key": "<a stable key per change>"
}
}
}
}Workflows
Dispatch one of the eleven SPEC workflows against a record in scope
POST/v1/pacts/workflows/dispatch
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 · stringrequiredRequired 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
kindstringrequiredThe SPEC workflow name —
pacts.obligation.monitorand 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}envelopeResponse fields
dataobjectrequireddata.runanydata.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('pacts_dispatchWorkflow', {
body: {
kind: 'string',
subjectId: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_dispatchWorkflow",
"arguments": {
"body": {
"kind": "string",
"subjectId": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}List runs in scope — everything, one kind, or one subject's history
GET/v1/pacts/workflows/runs
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 · stringsubjectTypequery · stringsubjectIdquery · string
Responses
- 200Success: the
{data}envelopeResponse fields
dataobjectrequireddata.runsany
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/pacts/workflows/runs" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_listWorkflowRuns'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_listWorkflowRuns",
"arguments": {}
}
}Where a dispatched run stands
GET/v1/pacts/workflows/runs/{run_id}
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}envelopeResponse fields
dataobjectrequiredA 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('pacts_getWorkflowRun', {
run_id: '<run_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "pacts_getWorkflowRun",
"arguments": {
"run_id": "<run_id>"
}
}
}L1fe AI Inc. · Built from Genesis 0.3.1 and the live gateway on 2026-10-25. Support