Contents

Connecting agents

A company’s agent works with Synarun through an HTTP interface, version 1. The agent authenticates, submits its actions, receives the Guardrails decision for each one and follows the approval and the execution. This section describes what the agent sends and receives, for the developers who connect it, and what the company’s people do in the console.

The demo company

The demo company comes with demonstration agents, which submit their actions through this same interface, from inside the platform. You follow their actions in Operations › Actions. Connecting your company’s own agents is part of a company deployment, arranged on request: request a quote.

How an agent works with Synarun

  1. A person of the company registers the agent and its public key in the console. The agent can authenticate only after the company setup is confirmed, and only with this key.
  2. The agent obtains a short-lived access token, bound to the key of its session.
  3. The agent submits an action. Guardrails checks it before any execution and answers with the decision: Allowed, Approval required or Blocked.
  4. The agent follows the approval, when one is needed, and the execution.
  5. For an action that concerns a document, the agent first uploads the document. For a service it has no access to, it sends an access request, and a person of the company answers it.
  6. At the end, the agent closes its session.

What the company’s people do

The console guide describes each page and who sees it: Decisions, Operations and Agents and connections.

Principles of the interface

  • The agent’s identity comes only from authentication. The body of an HTTP request never names the company, the agent or the session.
  • The access token authenticates the agent but authorizes no action: every action gets its own decision.
  • Synarun holds the connections’ keys. The agent never receives them.
  • Bodies are strict JSON in UTF-8 (application/json); only the token request is application/x-www-form-urlencoded. No route accepts a query string.
  • Every error has the same shape, described in Errors.
  • What belongs to another agent or another company gets the same answer as something that does not exist: 404 RESOURCE_NOT_FOUND.

The routes

The interface has twelve routes for agents. It also answers two health checks without authentication: GET /healthz and GET /readyz.

RouteWhat it doesWhere it is described
POST /v1/tokenObtains an access token and opens or continues a session.Authentication
POST /v1/session/closeCloses the agent’s session.Authentication
POST /v1/action-intentsSubmits an action; the answer is the decision.Submitting an action
GET /v1/decisions/:idReads a decision again.Outcomes and follow-up
GET /v1/approvals/:idFollows the approval of an action.Outcomes and follow-up
GET /v1/executions/:idFollows the execution of an action.Outcomes and follow-up
POST /v1/content-artifactsUploads a document.Documents and access requests
GET /v1/content-artifacts/:digestReads a document’s data and the results of its checks.Documents and access requests
GET /v1/servicesLists the company’s services and the agent’s access to each.Documents and access requests
GET /v1/toolsLists the operations the agent can use, as tools, with their schemas.Documents and access requests
POST /v1/access-requestsRequests access to a service.Documents and access requests
GET /v1/access-requests/:idReads the answer to an access request.Documents and access requests

The duration, rate and size limits are in Limits.

An assistant that speaks MCP connects as described in Connecting through MCP.

The examples

The examples use the origin https://synarun-api.example and demonstration values: the identifiers, keys, tokens, amounts and documents are not real. Every JSON example is valid against the interface’s schemas. Long values are shortened with “…”, so a shortened DPoP proof is not complete. The two signed values of the token request are complete: their signatures verify with the public keys shown, so you can use them to test your implementation. Synarun’s demo agents follow exactly the path described here.