Synq
Skip to content
[ synq / docs ]Synq home

Workspace routes

Business overview, agent runs, mandates and commercial policies.

Routes under /v3/workspaces/{workspaceId} require workspace membership. Someone who is not a member, or who asks for another tenant's id, receives 404 NOT_FOUND rather than 403, so ids do not leak. Workspace routes are throttled to 240 requests a minute per workspace in addition to the per-principal limit.

Routes#

GET /v3/workspaces/{workspaceId}/overview#

Balances, receivables, payables, leads, approvals, agent highlights.

Route idworkspace.overview
AuthSession (bearer or cookie)
Who may callOWNER, ADMIN, MEMBER, VIEWER
StatusIMPLEMENTED

Path parameters: workspaceId (UUIDs unless stated).

Response (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 response (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
  }
}

GET /v3/workspaces/{workspaceId}/commercial-policies#

Commercial policy versions, newest first.

Route idworkspace.commercialPolicies
AuthSession (bearer or cookie)
Who may callOWNER, ADMIN
StatusIMPLEMENTED

Path parameters: workspaceId (UUIDs unless stated).

Response (CommercialPolicyList)

FieldTypeRequiredNotes
policiesCommercialPolicyView[]yes

POST /v3/workspaces/{workspaceId}/commercial-policies#

Propose the next policy version; an owner signs it from the approvals inbox.

Route idworkspace.commercialPolicyPropose
AuthSession + Idempotency-Key (+ same origin for cookies)
Who may callOWNER, ADMIN
StatusIMPLEMENTED

Path parameters: workspaceId (UUIDs unless stated).

Request body (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

Response (CommercialPolicyView)

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

GET /v3/workspaces/{workspaceId}/agent-runs#

Agent runs, newest first.

Route idworkspace.agentRuns
AuthSession (bearer or cookie)
Who may callOWNER, ADMIN, MEMBER
StatusIMPLEMENTED

Path parameters: workspaceId (UUIDs unless stated).

Query parameters

FieldTypeRequiredNotes
cursorstring (max 200, min 1)no
limitinteger (min 1, max 100)no

Response (AgentRunPage)

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

GET /v3/workspaces/{workspaceId}/agent-runs/{runId}#

Typed events and chain receipts of one run.

Route idworkspace.agentRun
AuthSession (bearer or cookie)
Who may callOWNER, ADMIN, MEMBER
StatusIMPLEMENTED

Path parameters: workspaceId, runId (UUIDs unless stated).

Response (AgentRunDetail)

FieldTypeRequiredNotes
runAgentRunSummaryyes
eventsAgentEconomicEvent[]yes
receiptsReceipt[]yes

Example response (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"
    }
  ]
}

GET /v3/workspaces/{workspaceId}/mandates#

Agent leases with on-chain remaining limits.

Route idworkspace.mandates
AuthSession (bearer or cookie)
Who may callOWNER, ADMIN
StatusIMPLEMENTED

Path parameters: workspaceId (UUIDs unless stated).

Response (Mandates)

FieldTypeRequiredNotes
capabilityCapabilityyes
leasesAgentLease[]yes

Example response (synthetic fixture):

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

POST /v3/workspaces/{workspaceId}/mandates/{leaseId}/revoke-intent#

Prepare a revoke for the issuer to sign; not revoked until on chain.

Route idworkspace.mandateRevoke
AuthSession + Idempotency-Key (+ same origin for cookies)
Who may callOWNER with lease-issuer authority
StatusPLANNED

Path parameters: workspaceId, leaseId (UUIDs unless stated).

Response (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 response (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"
        }
      }
    }
  ]
}

Edit this page on GitHub