Synq
Skip to content
[ synq / docs ]Synq home

Schemas

Every named request and response schema.

Every named wire schema, in contract order. Fields marked required must be present; every object rejects unknown fields.

ApiError#

FieldTypeRequiredNotes
errorstring (max 64)yes
messagestring (max 600)yes
retryablebooleanno

Ok#

FieldTypeRequiredNotes
oktrueyes

ProofLevel#

Enumeration: LIVE_ARC_TESTNET, LIVE_ARC_MAINNET, PROVIDER_SANDBOX, LOCAL_FIXTURE, NOT_VERIFIED, BLOCKED

CapabilityStatus#

Enumeration: AVAILABLE, BLOCKED, NOT_CONFIGURED, UNSUPPORTED, OFFCHAIN_ONLY, ONCHAIN_AUTHENTICATED, VERIFIED_TESTNET

Capability#

FieldTypeRequiredNotes
statusCapabilityStatusyes
reasonstring (max 600)yes

WorkspaceKind#

Enumeration: PERSONAL, GROUP, BUSINESS

WorkspaceStatus#

Enumeration: FORMING, LAUNCHING, ACTIVE

Role#

Enumeration: OWNER, ADMIN, MEMBER, VIEWER

Money#

FieldTypeRequiredNotes
assetIdstring (max 64)yesRegistry id such as arc-testnet:USDC
symbolstring (max 12)yes
chainIdintegeryes
decimalsinteger (min 0, max 36)yes
unitsstring (^(0|[1-9][0-9]{0,77})$)yesInteger token base units as a decimal string

Balance#

FieldTypeRequiredNotes
assetIdstring (max 64)yes
symbolstring (max 12)yes
chainIdintegeryes
decimalsinteger (min 0, max 36)yes
settledstring (^(0|[1-9][0-9]{0,77})$)yesFinal on chain; includes reserved
reservedstring (^(0|[1-9][0-9]{0,77})$)yesSettled but held for bills, deals or members
pendingstring (^(0|[1-9][0-9]{0,77})$)yesSeen but not final
quarantinedstring (^(0|[1-9][0-9]{0,77})$)yesArrived without a matching authorization

Freshness#

FieldTypeRequiredNotes
observedAtISO-8601 timeyesUTC ISO-8601 timestamp
sourceCHAIN, PROVIDER, LEDGER, CACHEyes
stalebooleanyes

MetaRoute#

FieldTypeRequiredNotes
idstringyes
statusPLANNED, IMPLEMENTEDyes

Meta#

FieldTypeRequiredNotes
contractVersionstringyes
routesMetaRoute[]yes

Example (synthetic fixture):

json
{
  "contractVersion": "3.0.0",
  "routes": [
    {
      "id": "me.contexts",
      "status": "IMPLEMENTED"
    },
    {
      "id": "workspace.inbox",
      "status": "PLANNED"
    }
  ]
}

Device#

FieldTypeRequiredNotes
deviceIduuidyesRandom per-install id kept in the Keychain
namestring (max 64, min 1)yes
platformios, webyes

DeviceSessionRequest#

FieldTypeRequiredNotes
challengeIduuidyes
signaturestring (^0x[0-9a-fA-F]{130}$)yes
deviceDeviceyes

DeviceCodeSessionRequest#

FieldTypeRequiredNotes
codestring (^[0-9a-f]{48}$)yes
deviceDeviceyes

RefreshRequest#

FieldTypeRequiredNotes
deviceIduuidyes
refreshTokenstring (^[0-9a-f]{64}$)yes

DeviceSession#

FieldTypeRequiredNotes
principalIdstring (max 80)yes
sessionIduuidyes
accessTokenstring (^[0-9a-f]{64}$)yes
accessExpiresAtISO-8601 timeyesUTC ISO-8601 timestamp
refreshTokenstring (^[0-9a-f]{64}$)yes
refreshExpiresAtISO-8601 timeyesUTC ISO-8601 timestamp

SessionSummary#

FieldTypeRequiredNotes
sessionIduuidyes
deviceNamestring (max 64)yes
platformios, webyes
createdAtISO-8601 timeyesUTC ISO-8601 timestamp
lastSeenAtISO-8601 timeyesUTC ISO-8601 timestamp
currentbooleanyes

SessionList#

FieldTypeRequiredNotes
sessionsSessionSummary[]yes

RevokeAll#

FieldTypeRequiredNotes
revokedinteger (min 0)yes

Context#

FieldTypeRequiredNotes
contextIdstring (max 64)yes"personal" or a business workspace id
kindPERSONAL, BUSINESSyes
workspaceIduuid or nullyes
displayNamestring (max 80)yes
roleRole or nullyes
workspaceStatusWorkspaceStatus or nullyes
unreadCountinteger (min 0)yes

Contexts#

FieldTypeRequiredNotes
principalIdstring (max 80)yes
walletHintstring (max 16)yesShortened address for display, such as 0x12ab…9f3c
contextsContext[]yes

Example (synthetic fixture):

json
{
  "principalId": "principal-example",
  "walletHint": "0x1111…1111",
  "contexts": [
    {
      "contextId": "personal",
      "kind": "PERSONAL",
      "workspaceId": null,
      "displayName": "Personal",
      "role": null,
      "workspaceStatus": null,
      "unreadCount": 1
    },
    {
      "contextId": "00000000-0000-4000-8000-000000000001",
      "kind": "BUSINESS",
      "workspaceId": "00000000-0000-4000-8000-000000000001",
      "displayName": "Example Studio",
      "role": "OWNER",
      "workspaceStatus": "ACTIVE",
      "unreadCount": 3
    }
  ]
}

WalletBalance#

FieldTypeRequiredNotes
addressstring (^0x[0-9a-fA-F]{40}$)yesEVM address
labelstring (max 40)yes
balancesBalance[]yes
freshnessFreshnessyes

CircleSummary#

FieldTypeRequiredNotes
circleIduuidyesThe group workspace id
displayNamestring (max 80)yes
statusWorkspaceStatusyes
roleRoleyes
memberCountinteger (min 0)yes
thresholdinteger or nullyes
vaultstring (^0x[0-9a-fA-F]{40}$) or nullyes
myContributionMoney or nullyes
heldBalance or nullyes
openProposalsinteger (min 0)yes
freshnessFreshnessyes

PersonalVault#

FieldTypeRequiredNotes
workspaceIduuidyes
displayNamestring (max 80)yes
kindWorkspaceKindyes
statusWorkspaceStatusyes
vaultstring (^0x[0-9a-fA-F]{40}$) or nullyes
balancesBalance[]yes

ActivityItem#

FieldTypeRequiredNotes
activityIdstring (max 80)yes
kindCONTRIBUTION, REFUND, PAYMENT, PROPOSAL, INVOICE_PAID, DEAL, OTHERyes
titlestring (max 140)yes
workspaceIduuid or nullyes
amountMoney or nullyes
statusPENDING, FINAL, FAILED, REFUNDEDyes
txHashstring (^0x[0-9a-fA-F]{64}$) or nullyes
occurredAtISO-8601 timeyesUTC ISO-8601 timestamp

PersonalOverview#

FieldTypeRequiredNotes
principalIdstring (max 80)yes
walletsWalletBalance[]yes
circlesCircleSummary[]yes
vaultsPersonalVault[]yes
recentActivityItem[]yes

Example (synthetic fixture):

json
{
  "principalId": "principal-example",
  "wallets": [
    {
      "address": "0x1111111111111111111111111111111111111111",
      "label": "Sign-in wallet",
      "balances": [
        {
          "assetId": "arc-testnet:USDC",
          "symbol": "USDC",
          "chainId": 5042002,
          "decimals": 6,
          "settled": "12500000",
          "reserved": "0",
          "pending": "0",
          "quarantined": "0"
        }
      ],
      "freshness": {
        "observedAt": "2026-10-17T10:00:00.000Z",
        "source": "CHAIN",
        "stale": false
      }
    }
  ],
  "circles": [
    {
      "circleId": "00000000-0000-4000-8000-000000000002",
      "displayName": "Example trip circle",
      "status": "ACTIVE",
      "role": "MEMBER",
      "memberCount": 3,
      "threshold": 2,
      "vault": "0x2222222222222222222222222222222222222222",
      "myContribution": {
        "assetId": "arc-testnet:USDC",
        "symbol": "USDC",
        "chainId": 5042002,
        "decimals": 6,
        "units": "5000000"
      },
      "held": {
        "assetId": "arc-testnet:USDC",
        "symbol": "USDC",
        "chainId": 5042002,
        "decimals": 6,
        "settled": "15000000",
        "reserved": "5000000",
        "pending": "0",
        "quarantined": "0"
      },
      "openProposals": 1,
      "freshness": {
        "observedAt": "2026-10-17T10:00:00.000Z",
        "source": "CHAIN",
        "stale": false
      }
    }
  ],
  "vaults": [],
  "recent": [
    {
      "activityId": "activity-1",
      "kind": "CONTRIBUTION",
      "title": "You added 5 USDC to Example trip circle",
      "workspaceId": "00000000-0000-4000-8000-000000000002",
      "amount": {
        "assetId": "arc-testnet:USDC",
        "symbol": "USDC",
        "chainId": 5042002,
        "decimals": 6,
        "units": "5000000"
      },
      "status": "FINAL",
      "txHash": "0xd33f861b0c8e75a6f9aecf156568c46bb980fdf3e0ce4a70aaa89e9b8b8ebc7a",
      "occurredAt": "2026-10-17T10:02:00.000Z"
    }
  ]
}

CirclePage#

FieldTypeRequiredNotes
itemsCircleSummary[]yes
nextCursorstring (max 200, min 1) or nullyes

CircleMember#

FieldTypeRequiredNotes
principalIdstring (max 80)yes
walletHintstring (max 16)yesShortened address for display, such as 0x12ab…9f3c
roleRoleyes
contributedstring (^(0|[1-9][0-9]{0,77})$)yesInteger token base units as a decimal string
refundedstring (^(0|[1-9][0-9]{0,77})$)yesInteger token base units as a decimal string

CircleContribution#

FieldTypeRequiredNotes
contributionIdstring (max 80)yes
payerHintstring (max 16)yesShortened address for display, such as 0x12ab…9f3c
amountMoneyyes
statusREQUESTED, PENDING, CREDITED, REFUNDED, EXPIREDyes
txHashstring (^0x[0-9a-fA-F]{64}$) or nullyes
observedAtISO-8601 timeyesUTC ISO-8601 timestamp

CircleProposal#

FieldTypeRequiredNotes
proposalIdstring (max 80)yes
kindPAYMENT, REFUND, SETTINGS, OTHERyes
titlestring (max 140)yes
amountMoney or nullyes
recipientHintstring (max 16) or nullyes
approvalsinteger (min 0)yes
thresholdintegeryes
statusREVIEW, READY, SUBMITTED, CONFIRMED, FAILED, NEEDS_REVIEW, CANCELLED, EXPIREDyes
txHashstring (^0x[0-9a-fA-F]{64}$) or nullyes

CircleDetail#

FieldTypeRequiredNotes
circleCircleSummaryyes
membersCircleMember[]yes
contributionsCircleContribution[]yes
proposalsCircleProposal[]yes
capabilitiesmap of Capabilityyes

RunStatus#

Enumeration: PENDING, REQUIRES_OWNER, AUTHORIZED, BROADCAST, FINALIZED, RECONCILED, BLOCKED, REJECTED, TIMED_OUT, REORG_PENDING, REVOKED, QUARANTINED

EventActor#

Enumeration: MODEL, DETERMINISTIC, HUMAN, CHAIN, PROVIDER

AgentRunSummary#

FieldTypeRequiredNotes
runIduuidyes
workspaceIduuidyes
titlestring (max 140)yes
triggerINVOICE_SETTLED, DEPOSIT_FINALIZED, SCHEDULE, OWNER_REQUEST, LEAD_MESSAGE, OTHERyes
statusRunStatusyes
amountMoney or nullyes
proofLevelProofLevelyes
startedAtISO-8601 timeyesUTC ISO-8601 timestamp
updatedAtISO-8601 timeyesUTC ISO-8601 timestamp

AgentEconomicEvent#

FieldTypeRequiredNotes
eventIduuidyes
workspaceIduuidyes
runIduuidyes
sequencestring (^[0-9]{1,20}$)yesMonotonic per workspace
correlationIdstring (max 80)yes
causationIdstring (max 80) or nullyes
kindDECISION, INTENT, GRANT, BROADCAST, FINALIZED, REJECTED, RECONCILED, ESCALATEDyes
actorEventActoryes
statusRunStatusyes
summarystring (max 400)yesRedacted explanation; never model reasoning
sourceKindstring (max 40)yes
observedAtISO-8601 timeyesUTC ISO-8601 timestamp
effectiveAtISO-8601 time or nullyes
evidenceHashstring (^0x[0-9a-fA-F]{64}$) or nullyes
proofLevelProofLevelyes
amountMoney or nullyes
recipientHintstring (max 16) or nullyes
txHashstring (^0x[0-9a-fA-F]{64}$) or nullyes
chainIdinteger or nullyes

Receipt#

FieldTypeRequiredNotes
chainIdintegeryes
txHashstring (^0x[0-9a-fA-F]{64}$)yes
blockNumberstring (^[0-9]{1,20}$) or nullyes
finalityPENDING, FINALIZED, REORGEDyes
explorerUrlstring or nullyes
ledgerEntryIdstring (max 80) or nullyes

AgentRunPage#

FieldTypeRequiredNotes
itemsAgentRunSummary[]yes
nextCursorstring (max 200, min 1) or nullyes

AgentRunDetail#

FieldTypeRequiredNotes
runAgentRunSummaryyes
eventsAgentEconomicEvent[]yes
receiptsReceipt[]yes

Example (synthetic fixture):

json
{
  "run": {
    "runId": "00000000-0000-4000-8000-000000000004",
    "workspaceId": "00000000-0000-4000-8000-000000000001",
    "title": "Pay the design contractor after the client deposit",
    "trigger": "DEPOSIT_FINALIZED",
    "status": "RECONCILED",
    "amount": {
      "assetId": "arc-testnet:USDC",
      "symbol": "USDC",
      "chainId": 5042002,
      "decimals": 6,
      "units": "40000000"
    },
    "proofLevel": "LOCAL_FIXTURE",
    "startedAt": "2026-10-17T10:01:00.000Z",
    "updatedAt": "2026-10-17T10:04:00.000Z"
  },
  "events": [
    {
      "eventId": "00000000-0000-4000-8000-00000000001e",
      "workspaceId": "00000000-0000-4000-8000-000000000001",
      "runId": "00000000-0000-4000-8000-000000000004",
      "sequence": "1",
      "correlationId": "corr-example",
      "causationId": null,
      "kind": "DECISION",
      "actor": "MODEL",
      "status": "PENDING",
      "summary": "Proposed paying the contractor 40 USDC from the deposit.",
      "sourceKind": "CFO_AGENT",
      "observedAt": "2026-10-17T10:01:00.000Z",
      "effectiveAt": null,
      "evidenceHash": null,
      "proofLevel": "NOT_VERIFIED",
      "amount": {
        "assetId": "arc-testnet:USDC",
        "symbol": "USDC",
        "chainId": 5042002,
        "decimals": 6,
        "units": "40000000"
      },
      "recipientHint": "0x3333…3333",
      "txHash": null,
      "chainId": null
    },
    {
      "eventId": "00000000-0000-4000-8000-00000000001f",
      "workspaceId": "00000000-0000-4000-8000-000000000001",
      "runId": "00000000-0000-4000-8000-000000000004",
      "sequence": "2",
      "correlationId": "corr-example",
      "causationId": "00000000-0000-4000-8000-00000000001e",
      "kind": "GRANT",
      "actor": "DETERMINISTIC",
      "status": "AUTHORIZED",
      "summary": "Kernel allowed one payment within the lease.",
      "sourceKind": "KERNEL",
      "observedAt": "2026-10-17T10:02:00.000Z",
      "effectiveAt": "2026-10-17T10:02:00.000Z",
      "evidenceHash": "0x4b752987d6b40957ebe7c23a4f9556d1861eb2d5475b1009482ee4ca4a5309d9",
      "proofLevel": "LOCAL_FIXTURE",
      "amount": {
        "assetId": "arc-testnet:USDC",
        "symbol": "USDC",
        "chainId": 5042002,
        "decimals": 6,
        "units": "40000000"
      },
      "recipientHint": "0x3333…3333",
      "txHash": null,
      "chainId": null
    }
  ],
  "receipts": [
    {
      "chainId": 5042002,
      "txHash": "0x96627a7be7cbb4fe72959e6945aeec1f1e44776817ea21a2b753188338a0a91d",
      "blockNumber": "1000",
      "finality": "FINALIZED",
      "explorerUrl": null,
      "ledgerEntryId": "ledger-example"
    }
  ]
}

AgentLease#

FieldTypeRequiredNotes
leaseIdstring (max 80)yes
policyHashstring (^0x[0-9a-fA-F]{64}$)yes
agentIdstring (max 80)yes
actionsstring (max 40)[]yes
recipientsstring (max 16)[]yes
assetIdsstring (max 64)[]yes
perActionUnitsstring (^(0|[1-9][0-9]{0,77})$)yesInteger token base units as a decimal string
availableUnitsstring (^(0|[1-9][0-9]{0,77})$)yesInteger token base units as a decimal string
expiresAtISO-8601 timeyesUTC ISO-8601 timestamp
revokedAtISO-8601 time or nullyes
enforcingContractstring (max 42)yes
chainIdintegeryes
proofLevelProofLevelyes

Mandates#

FieldTypeRequiredNotes
capabilityCapabilityyes
leasesAgentLease[]yes

Example (synthetic fixture):

json
{
  "capability": {
    "status": "NOT_CONFIGURED",
    "reason": "No Amane lease is installed for this workspace."
  },
  "leases": []
}

WorkspaceOverview#

FieldTypeRequiredNotes
workspaceIduuidyes
displayNamestring (max 80)yes
statusWorkspaceStatusyes
roleRoleyes
balancesBalance[]yes
receivablesobjectyes
receivables.openinteger (min 0)yes
receivables.unitsstring (^(0|[1-9][0-9]{0,77})$)yesInteger token base units as a decimal string
payablesobjectyes
payables.openinteger (min 0)yes
payables.unitsstring (^(0|[1-9][0-9]{0,77})$)yesInteger token base units as a decimal string
leadsobjectyes
leads.openinteger (min 0)yes
leads.needsOwnerinteger (min 0)yes
pendingApprovalsinteger (min 0)yes
agentHighlightsAgentRunSummary[] (max 5)yes
capabilitiesmap of Capabilityyes
freshnessFreshnessyes

Example (synthetic fixture):

json
{
  "workspaceId": "00000000-0000-4000-8000-000000000001",
  "displayName": "Example Studio",
  "status": "ACTIVE",
  "role": "OWNER",
  "balances": [
    {
      "assetId": "arc-testnet:USDC",
      "symbol": "USDC",
      "chainId": 5042002,
      "decimals": 6,
      "settled": "250000000",
      "reserved": "40000000",
      "pending": "10000000",
      "quarantined": "0"
    }
  ],
  "receivables": {
    "open": 2,
    "units": "120000000"
  },
  "payables": {
    "open": 1,
    "units": "40000000"
  },
  "leads": {
    "open": 4,
    "needsOwner": 1
  },
  "pendingApprovals": 1,
  "agentHighlights": [
    {
      "runId": "00000000-0000-4000-8000-000000000004",
      "workspaceId": "00000000-0000-4000-8000-000000000001",
      "title": "Pay the design contractor after the client deposit",
      "trigger": "DEPOSIT_FINALIZED",
      "status": "RECONCILED",
      "amount": {
        "assetId": "arc-testnet:USDC",
        "symbol": "USDC",
        "chainId": 5042002,
        "decimals": 6,
        "units": "40000000"
      },
      "proofLevel": "LOCAL_FIXTURE",
      "startedAt": "2026-10-17T10:01:00.000Z",
      "updatedAt": "2026-10-17T10:04:00.000Z"
    }
  ],
  "capabilities": {
    "leads": {
      "status": "AVAILABLE",
      "reason": "Private Telegram sessions."
    },
    "agentLeases": {
      "status": "NOT_CONFIGURED",
      "reason": "No Amane lease is installed for this workspace."
    }
  },
  "freshness": {
    "observedAt": "2026-10-17T10:00:00.000Z",
    "source": "CHAIN",
    "stale": false
  }
}

LeadStage#

Enumeration: LEAD_OPEN, DISCOVERY, QUALIFIED, OFFER_DRAFTED, OFFER_VALIDATED, OFFER_SENT, NEGOTIATING, AGREED_PENDING_SIGNATURES, SIGNED, FUNDING_PENDING, FUNDED, ACTIVE, DELIVERED, ACCEPTANCE_PENDING, RELEASED, REFUNDED, DISPUTED, CANCELLED

LeadHandling#

Enumeration: AGENT, HUMAN, FROZEN

LeadSource#

Enumeration: TELEGRAM, WEB, IMESSAGE

LeadSummary#

FieldTypeRequiredNotes
leadIduuidyes
workspaceIduuidyes
labelstring (max 80)yesRedacted display label, never a full name
sourceLeadSourceyes
stageLeadStageyes
handlingLeadHandlingyes
needsOwnerbooleanyes
unreadinteger (min 0)yes
lastActivityAtISO-8601 timeyesUTC ISO-8601 timestamp

InboxPage#

FieldTypeRequiredNotes
itemsLeadSummary[]yes
nextCursorstring (max 200, min 1) or nullyes

Example (synthetic fixture):

json
{
  "items": [
    {
      "leadId": "00000000-0000-4000-8000-000000000003",
      "workspaceId": "00000000-0000-4000-8000-000000000001",
      "label": "Telegram lead · 4F2A",
      "source": "TELEGRAM",
      "stage": "NEGOTIATING",
      "handling": "AGENT",
      "needsOwner": false,
      "unread": 2,
      "lastActivityAt": "2026-10-17T10:03:00.000Z"
    }
  ],
  "nextCursor": null
}

LeadMessage#

FieldTypeRequiredNotes
messageIduuidyes
authorLEAD, AGENT, STAFF, SYSTEMyes
textstring (max 4000)yes
offerVersioninteger or nullyes
createdAtISO-8601 timeyesUTC ISO-8601 timestamp

OfferLine#

FieldTypeRequiredNotes
descriptionstring (max 200)yes
quantityintegeryes
unitUnitsstring (^(0|[1-9][0-9]{0,77})$)yesInteger token base units as a decimal string
totalUnitsstring (^(0|[1-9][0-9]{0,77})$)yesInteger token base units as a decimal string

OfferMilestone#

FieldTypeRequiredNotes
labelstring (max 120)yes
unitsstring (^(0|[1-9][0-9]{0,77})$)yesInteger token base units as a decimal string
dueAtISO-8601 time or nullyes

OfferVersion#

FieldTypeRequiredNotes
offerIduuidyes
versionintegeryes
termsHashstring (^0x[0-9a-fA-F]{64}$)yes
previousTermsHashstring (^0x[0-9a-fA-F]{64}$) or nullyes
policyVersionintegeryes
statusDRAFTED, VALIDATED, SENT, ACCEPTED, REJECTED, COUNTERED, EXPIRED, WITHDRAWNyes
createdByAGENT, STAFFyes
totalMoneyyes
linesOfferLine[]yes
milestonesOfferMilestone[]yes
expiresAtISO-8601 timeyesUTC ISO-8601 timestamp
createdAtISO-8601 timeyesUTC ISO-8601 timestamp

LeadDetail#

FieldTypeRequiredNotes
leadLeadSummaryyes
handlingVersioninteger (min 0)yes
consentobjectyes
consent.grantedbooleanyes
consent.grantedAtISO-8601 time or nullyes
consent.scopestring (max 200)yes
messagesLeadMessage[]yes
olderMessagesCursorstring (max 200, min 1) or nullyes
offersOfferVersion[]yes

Example (synthetic fixture):

json
{
  "lead": {
    "leadId": "00000000-0000-4000-8000-000000000003",
    "workspaceId": "00000000-0000-4000-8000-000000000001",
    "label": "Telegram lead · 4F2A",
    "source": "TELEGRAM",
    "stage": "NEGOTIATING",
    "handling": "AGENT",
    "needsOwner": false,
    "unread": 2,
    "lastActivityAt": "2026-10-17T10:03:00.000Z"
  },
  "handlingVersion": 3,
  "consent": {
    "granted": true,
    "grantedAt": "2026-10-17T10:01:00.000Z",
    "scope": "The business may read this private conversation."
  },
  "messages": [
    {
      "messageId": "00000000-0000-4000-8000-000000000014",
      "author": "LEAD",
      "text": "Can you do a logo and two banners by Friday?",
      "offerVersion": null,
      "createdAt": "2026-10-17T10:02:00.000Z"
    },
    {
      "messageId": "00000000-0000-4000-8000-000000000015",
      "author": "AGENT",
      "text": "Yes. Here is an offer for 120 USDC in two milestones.",
      "offerVersion": 1,
      "createdAt": "2026-10-17T10:03:00.000Z"
    }
  ],
  "olderMessagesCursor": null,
  "offers": [
    {
      "offerId": "00000000-0000-4000-8000-000000000005",
      "version": 1,
      "termsHash": "0xc71c916768de28c0c224036e9c9fd7976ff24124a24445f4b37b571ff78d8075",
      "previousTermsHash": null,
      "policyVersion": 2,
      "status": "SENT",
      "createdBy": "AGENT",
      "total": {
        "assetId": "arc-testnet:USDC",
        "symbol": "USDC",
        "chainId": 5042002,
        "decimals": 6,
        "units": "120000000"
      },
      "lines": [
        {
          "description": "Logo and two banners",
          "quantity": 1,
          "unitUnits": "120000000",
          "totalUnits": "120000000"
        }
      ],
      "milestones": [
        {
          "label": "Drafts",
          "units": "60000000",
          "dueAt": "2026-10-19T10:00:00.000Z"
        },
        {
          "label": "Final files",
          "units": "60000000",
          "dueAt": "2026-10-21T10:00:00.000Z"
        }
      ],
      "expiresAt": "2026-10-18T10:00:00.000Z",
      "createdAt": "2026-10-17T10:03:00.000Z"
    }
  ]
}

ClientLeadSummary#

FieldTypeRequiredNotes
leadIduuidyes
businessNamestring (max 80)yes
stageLeadStageyes
lastActivityAtISO-8601 timeyesUTC ISO-8601 timestamp

ClientLeadList#

FieldTypeRequiredNotes
leadsClientLeadSummary[]yes

Example (synthetic fixture):

json
{
  "leads": [
    {
      "leadId": "00000000-0000-4000-8000-000000000003",
      "businessName": "Example Studio",
      "stage": "OFFER_SENT",
      "lastActivityAt": "2026-10-17T10:03:00.000Z"
    }
  ]
}

ClientOfferVersion#

FieldTypeRequiredNotes
offerIduuidyes
versionintegeryes
termsHashstring (^0x[0-9a-fA-F]{64}$)yes
statusDRAFTED, VALIDATED, SENT, ACCEPTED, REJECTED, COUNTERED, EXPIRED, WITHDRAWNyes
totalMoneyyes
linesOfferLine[]yes
milestonesOfferMilestone[]yes
expiresAtISO-8601 timeyesUTC ISO-8601 timestamp
createdAtISO-8601 timeyesUTC ISO-8601 timestamp

ClientLeadDetail#

FieldTypeRequiredNotes
leadClientLeadSummaryyes
consentobjectyes
consent.grantedbooleanyes
consent.grantedAtISO-8601 time or nullyes
consent.scopestring (max 200)yes
messagesLeadMessage[]yes
olderMessagesCursorstring (max 200, min 1) or nullyes
offersClientOfferVersion[]yes

Example (synthetic fixture):

json
{
  "lead": {
    "leadId": "00000000-0000-4000-8000-000000000003",
    "businessName": "Example Studio",
    "stage": "OFFER_SENT",
    "lastActivityAt": "2026-10-17T10:03:00.000Z"
  },
  "consent": {
    "granted": true,
    "grantedAt": "2026-10-17T10:01:00.000Z",
    "scope": "The business may read this private conversation."
  },
  "messages": [
    {
      "messageId": "00000000-0000-4000-8000-000000000014",
      "author": "LEAD",
      "text": "Can you do a logo and two banners by Friday?",
      "offerVersion": null,
      "createdAt": "2026-10-17T10:02:00.000Z"
    }
  ],
  "olderMessagesCursor": null,
  "offers": [
    {
      "offerId": "00000000-0000-4000-8000-000000000005",
      "version": 1,
      "termsHash": "0xc71c916768de28c0c224036e9c9fd7976ff24124a24445f4b37b571ff78d8075",
      "status": "SENT",
      "total": {
        "assetId": "arc-testnet:USDC",
        "symbol": "USDC",
        "chainId": 5042002,
        "decimals": 6,
        "units": "120000000"
      },
      "lines": [
        {
          "description": "Logo and two banners",
          "quantity": 1,
          "unitUnits": "120000000",
          "totalUnits": "120000000"
        }
      ],
      "milestones": [
        {
          "label": "Final files",
          "units": "120000000",
          "dueAt": null
        }
      ],
      "expiresAt": "2026-10-18T10:00:00.000Z",
      "createdAt": "2026-10-17T10:03:00.000Z"
    }
  ]
}

LeadMessageRequest#

FieldTypeRequiredNotes
textstring (max 4000, min 1)yes

TakeoverRequest#

FieldTypeRequiredNotes
actionHUMAN_TAKEOVER, HAND_BACK_TO_AGENT, FREEZE_OFFERS, ESCALATE_TO_OWNERyes
expectedVersioninteger (min 0)yes

TakeoverResult#

FieldTypeRequiredNotes
handlingLeadHandlingyes
handlingVersioninteger (min 0)yes

LeadInviteRequest#

FieldTypeRequiredNotes
sourceTELEGRAM, WEByes
expiresInSecondsinteger (min 300, max 604800)yes

LeadInvite#

FieldTypeRequiredNotes
inviteIduuidyes
telegramUrlstring or nullyes
webUrlstringyes
expiresAtISO-8601 timeyesUTC ISO-8601 timestamp

LeadInviteRedeem#

FieldTypeRequiredNotes
tokenstring (^[A-Za-z0-9_-]{16,64}$)yes

LeadInviteRedeemResult#

FieldTypeRequiredNotes
leadIduuidyes
boundbooleanyes

OfferValidation#

FieldTypeRequiredNotes
allowedbooleanyes
policyVersionintegeryes
checksobject[]yes
checks[].rulestring (max 60)yes
checks[].passedbooleanyes
checks[].detailstring (max 300)yes

CommercialPolicy#

FieldTypeRequiredNotes
catalogobject[] (min 1) (max 50)yes
catalog[].skustring (^[a-z0-9][a-z0-9-]{0,39}$)yes
catalog[].descriptionstring (max 200, min 1)yes
catalog[].unitUnitsstring (^(0|[1-9][0-9]{0,30})$)yes
catalog[].floorUnitsstring (^(0|[1-9][0-9]{0,30})$)yes
catalog[].maxQuantityinteger (min 1, max 1000)yes
catalog[].leadTimeDaysinteger (min 0, max 365)yes
catalog[].rushSurchargeBpsinteger (min 0, max 10000)yes
catalog[].capacityobject or nullyes
maxDiscountBpsinteger (min 0, max 5000)yes
minDepositBpsinteger (min 0, max 10000)yes
maxMilestonesinteger (min 1, max 6)yes
offerTtlSecondsinteger (min 3600, max 2592000)yes
ownerApprovalAboveUnitsstring (^(0|[1-9][0-9]{0,30})$)yes
capacityFreshSecondsinteger (min 3600, max 2592000)yes

CommercialPolicyView#

FieldTypeRequiredNotes
versionintegeryes
stateREVIEW, ACTIVE, SUPERSEDEDyes
policyHashstring (^0x[0-9a-fA-F]{64}$)yes
policyCommercialPolicyyes
approvedBystring or nullyes

CommercialPolicyList#

FieldTypeRequiredNotes
policiesCommercialPolicyView[]yes

OfferTerms#

FieldTypeRequiredNotes
linesobject[] (min 1) (max 20)yes
lines[].skustring (^[a-z0-9][a-z0-9-]{0,39}$)yes
lines[].quantityinteger (min 1, max 1000)yes
lines[].unitUnitsstring (^(0|[1-9][0-9]{0,30})$)yes
rushbooleanyes
deliveryDaysinteger (min 1, max 365)yes
milestonesobject[] (min 1) (max 6)yes
milestones[].labelstring (max 120, min 1)yes
milestones[].unitsstring (^(0|[1-9][0-9]{0,30})$)yes
milestones[].dueInDaysinteger (min 0, max 365)yes
depositUnitsstring (^(0|[1-9][0-9]{0,30})$)yes
notestring (max 400)yes

OfferCheck#

FieldTypeRequiredNotes
rulestring (max 60)yes
passedbooleanyes
detailstring (max 300)yes

OfferSendRequest#

FieldTypeRequiredNotes
termsOfferTermsyes
offerIduuidno

OfferSendResult#

FieldTypeRequiredNotes
sentbooleanyes
checksOfferCheck[]yes
needsOwnerbooleanyes
offerOfferVersion or nullyes

AgreementStatus#

Enumeration: PENDING_SIGNATURES, SIGNED, FUNDING_PENDING, FUNDED, VOID, EXPIRED

ClientWalletTypedData#

FieldTypeRequiredNotes
expiresAtISO-8601 timeyesUTC ISO-8601 timestamp
typedDataTypedDatayes
FieldTypeRequiredNotes
walletstring (^0x[0-9a-fA-F]{40}$)yesEVM address
expiresAtISO-8601 timeyesUTC ISO-8601 timestamp
signaturestring (^0x[0-9a-fA-F]{130}$)yes

ClientWallet#

FieldTypeRequiredNotes
walletstring (^0x[0-9a-fA-F]{40}$)yesEVM address
linkedAtISO-8601 timeyesUTC ISO-8601 timestamp

AgreementMilestone#

FieldTypeRequiredNotes
labelstring (max 120)yes
amountMoneyyes
dueInDaysinteger (min 0)yes

AgreementSignature#

FieldTypeRequiredNotes
walletstring (^0x[0-9a-fA-F]{40}$)yesEVM address
signedAtISO-8601 timeyesUTC ISO-8601 timestamp

AgreementEscrow#

FieldTypeRequiredNotes
statePREPARED, PENDING_CONFIRMATION, FUNDEDyes
openTxHashstring (^0x[0-9a-fA-F]{64}$) or nullyes
escrowDealIdstring or nullyes
proofLevelProofLevelyes

Agreement#

FieldTypeRequiredNotes
agreementIduuidyes
workspaceIduuidyes
leadIduuidyes
offerIduuidyes
offerVersionintegeryes
termsHashstring (^0x[0-9a-fA-F]{64}$)yes
agreementHashstring (^0x[0-9a-fA-F]{64}$)yes
statusAgreementStatusyes
clientWalletstring (^0x[0-9a-fA-F]{40}$)yesEVM address
ownerWalletstring (^0x[0-9a-fA-F]{40}$)yesEVM address
payeestring (^0x[0-9a-fA-F]{40}$)yesEVM address
arbiterstring (^0x[0-9a-fA-F]{40}$) or nullyes
totalMoneyyes
milestonesAgreementMilestone[]yes
expiresAtISO-8601 timeyesUTC ISO-8601 timestamp
signaturesobjectyes
signatures.clientAgreementSignature or nullyes
signatures.ownerAgreementSignature or nullyes
typedDataTypedDatayes
escrowAgreementEscrow or nullyes

LeadAgreement#

FieldTypeRequiredNotes
clientWalletstring (^0x[0-9a-fA-F]{40}$) or nullyes
agreementAgreement or nullyes
blockedstring (max 200) or nullyesWhy no agreement exists yet, when none does

AgreementSignatureSubmit#

FieldTypeRequiredNotes
agreementIduuidyes
offerVersionintegeryes
termsHashstring (^0x[0-9a-fA-F]{64}$)yes
signaturestring (^0x[0-9a-fA-F]{130}$)yes

EscrowTransaction#

FieldTypeRequiredNotes
stepAPPROVE, OPENyes
labelstring (max 120)yes
tostring (^0x[0-9a-fA-F]{40}$)yesEVM address
datastring (^0x([0-9a-fA-F]{2})*$)yes
value"0"yes

EscrowCall#

FieldTypeRequiredNotes
agreementIduuidyes
chainIdintegeryes
fromstring (^0x[0-9a-fA-F]{40}$)yesEVM address
transactionsEscrowTransaction[]yes
refundAfterISO-8601 timeyesUTC ISO-8601 timestamp

EscrowFundingSubmit#

FieldTypeRequiredNotes
openTxHashstring (^0x[0-9a-fA-F]{64}$)yes

AmaneAccountRegister#

FieldTypeRequiredNotes
accountstring (^0x[0-9a-fA-F]{40}$)yesEVM address
vendorIduuid or nullno

AmaneAccount#

FieldTypeRequiredNotes
iduuidyes
workspaceIduuidyes
chainIdintegeryes
accountstring (^0x[0-9a-fA-F]{40}$)yesEVM address
codeHashstring (^0x[0-9a-fA-F]{64}$)yes
tokenstring (^0x[0-9a-fA-F]{40}$)yesEVM address
recipientstring (^0x[0-9a-fA-F]{40}$)yesEVM address
adapterIdstring (^0x[0-9a-fA-F]{64}$)yes
rootHashstring (^0x[0-9a-fA-F]{64}$)yes
rootmap of stringyes

AmaneLeaseRegister#

FieldTypeRequiredNotes
accountIduuidyes
leaseIdstring (^0x[0-9a-fA-F]{64}$)yes

AmaneLeaseRegistered#

FieldTypeRequiredNotes
leaseIdstring (^0x[0-9a-fA-F]{64}$)yes
accountIduuidyes

AmaneJobCreate#

FieldTypeRequiredNotes
leaseIdstring (^0x[0-9a-fA-F]{64}$)yes
triggerKindINVOICE_PAID, OWNER_REQUESTyes
triggerRefstring (max 80, min 1)yes
amountstring (^[1-9][0-9]{0,30}$)yes
purposestring (max 160, min 1)yes

AmaneJob#

FieldTypeRequiredNotes
iduuidyes
workspaceIduuidyes
accountIduuidyes
leaseIdstring (^0x[0-9a-fA-F]{64}$)yes
triggerKindINVOICE_PAID, OWNER_REQUESTyes
triggerRefstringyes
amountstringyes
purposestringyes
stateWAITING, READY, SENT, PAID, REFUSED, NEEDS_REVIEWyes
noncestring or nullyes
txHashstring or nullyes
reasonstring or nullyes

AmaneJobList#

FieldTypeRequiredNotes
jobsAmaneJob[]yes

ApprovalPurpose#

Enumeration: VAULT_SETUP, VAULT_ACTION, PAYOUT, FINANCE_CHANGE, REVENUE_POLICY, DEAL_TERMS, ESCROW, LEASE_ISSUE, LEASE_REVOKE, CIRCLE_REFUND, COMMERCIAL_POLICY

ApprovalItem#

FieldTypeRequiredNotes
requestIduuidyes
workspaceIduuidyes
workspaceNamestring (max 80)yes
purposeApprovalPurposeyes
summarystring (max 300)yes
amountMoney or nullyes
recipientHintstring (max 16) or nullyes
approvalsinteger (min 0)yes
thresholdintegeryes
expiresAtISO-8601 time or nullyesNull when the request does not expire

ApprovalPage#

FieldTypeRequiredNotes
itemsApprovalItem[]yes
nextCursorstring (max 200, min 1) or nullyes

Example (synthetic fixture):

json
{
  "items": [
    {
      "requestId": "00000000-0000-4000-8000-000000000006",
      "workspaceId": "00000000-0000-4000-8000-000000000001",
      "workspaceName": "Example Studio",
      "purpose": "PAYOUT",
      "summary": "Pay 40 USDC to an allowlisted contractor",
      "amount": {
        "assetId": "arc-testnet:USDC",
        "symbol": "USDC",
        "chainId": 5042002,
        "decimals": 6,
        "units": "40000000"
      },
      "recipientHint": "0x3333…3333",
      "approvals": 1,
      "threshold": 2,
      "expiresAt": "2026-10-17T11:00:00.000Z"
    }
  ],
  "nextCursor": null
}

TypedData#

FieldTypeRequiredNotes
domainmap of anyyes
typesmap of object[]yes
primaryTypestringyes
messagemap of anyyes

SigningStep#

FieldTypeRequiredNotes
labelstring (max 80)yes
typedDataTypedDatayes

SigningRequest#

FieldTypeRequiredNotes
requestApprovalItemyes
signerstring (max 16)yesThe wallet that must sign (display)
signerAddressstring (^0x[0-9a-fA-F]{40}$)yesFull address of the wallet that must sign; refuse to sign from any other
enforcedBystring (max 120)yesContract or service that enforces it
stepsSigningStep[] (min 1) (max 3)yes

Example (synthetic fixture):

json
{
  "request": {
    "requestId": "00000000-0000-4000-8000-000000000006",
    "workspaceId": "00000000-0000-4000-8000-000000000001",
    "workspaceName": "Example Studio",
    "purpose": "PAYOUT",
    "summary": "Pay 40 USDC to an allowlisted contractor",
    "amount": {
      "assetId": "arc-testnet:USDC",
      "symbol": "USDC",
      "chainId": 5042002,
      "decimals": 6,
      "units": "40000000"
    },
    "recipientHint": "0x3333…3333",
    "approvals": 1,
    "threshold": 2,
    "expiresAt": "2026-10-17T11:00:00.000Z"
  },
  "signer": "0x1111…1111",
  "signerAddress": "0x1111111111111111111111111111111111111111",
  "enforcedBy": "Workspace Safe and its policy guard",
  "steps": [
    {
      "label": "Approve this payment",
      "typedData": {
        "domain": {
          "name": "Example",
          "version": "1",
          "chainId": 5042002
        },
        "types": {
          "Example": [
            {
              "name": "amount",
              "type": "uint256"
            }
          ]
        },
        "primaryType": "Example",
        "message": {
          "amount": "40000000"
        }
      }
    }
  ]
}

SignatureSubmit#

FieldTypeRequiredNotes
signaturesstring (^0x[0-9a-fA-F]{130}$)[] (min 1) (max 3)yes

SignatureResult#

FieldTypeRequiredNotes
statusRECORDED, READY, SUBMITTED, REJECTEDyes
approvalsinteger (min 0)yes
thresholdintegeryes

NotificationCategory#

Enumeration: NEW_LEAD, OFFER_ACCEPTED, CLIENT_DEPOSIT_FINALIZED, AGENT_PAYMENT_FINALIZED, PAYMENT_BLOCKED, RISK_REVIEW, ESCROW_DISPUTED, CIRCLE_CONTRIBUTION_RECEIVED, FUND_PROPOSAL, APPROVAL_REQUESTED, LEASE_EXPIRING, SECURITY_PAUSE

AppNotification#

FieldTypeRequiredNotes
notificationIduuidyes
eventIduuidyes
categoryNotificationCategoryyes
workspaceIduuid or nullyes
titlestring (max 120)yesGeneric; never a name, price or address
deepLinkstring (^\/[A-Za-z0-9/_-]{1,200}$)yesPath on the web host
createdAtISO-8601 timeyesUTC ISO-8601 timestamp
readAtISO-8601 time or nullyes

NotificationPage#

FieldTypeRequiredNotes
itemsAppNotification[]yes
nextCursorstring (max 200, min 1) or nullyes
unreadCountinteger (min 0)yes

Example (synthetic fixture):

json
{
  "items": [
    {
      "notificationId": "00000000-0000-4000-8000-000000000028",
      "eventId": "00000000-0000-4000-8000-000000000029",
      "category": "NEW_LEAD",
      "workspaceId": "00000000-0000-4000-8000-000000000001",
      "title": "New enquiry",
      "deepLink": "/w/00000000-0000-4000-8000-000000000001/inbox/00000000-0000-4000-8000-000000000003",
      "createdAt": "2026-10-17T10:03:00.000Z",
      "readAt": null
    }
  ],
  "nextCursor": null,
  "unreadCount": 1
}

MarkRead#

FieldTypeRequiredNotes
notificationIdsuuid[] (min 1) (max 200)yes

DeviceRegistration#

FieldTypeRequiredNotes
deviceIduuidyes
apnsTokenstring (^[0-9a-f]{64,200}$)yes
environmentSANDBOX, PRODUCTIONyes
localestring (max 20)yes
mutedCategoriesNotificationCategory[]yes
quietHoursobject or nullyes

DeviceRegistered#

FieldTypeRequiredNotes
deviceIduuidyes
registeredAtISO-8601 timeyesUTC ISO-8601 timestamp

StreamEvent#

FieldTypeRequiredNotes
cursorstring (max 200, min 1)yes
eventIduuidyes
typeLEAD_UPDATED, LEAD_MESSAGE, OFFER_UPDATED, AGENT_EVENT, APPROVAL_CHANGED, BALANCE_CHANGED, NOTIFICATION, CONTEXT_REVOKEDyes
workspaceIduuid or nullyes
entityIdstring (max 80) or nullyes
observedAtISO-8601 timeyesUTC ISO-8601 timestamp

StreamEventPage#

FieldTypeRequiredNotes
itemsStreamEvent[]yes
nextCursorstring (max 200, min 1) or nullyes

Edit this page on GitHub