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
- 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.
- The agent obtains a short-lived access token, bound to the key of its session.
- The agent submits an action. Guardrails checks it before any execution and answers with the decision: Allowed, Approval required or Blocked.
- The agent follows the approval, when one is needed, and the execution.
- 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.
- At the end, the agent closes its session.
What the company’s people do
- Register the agent. An Owner or a Company admin describes the agent and registers its public key, with a confirmation, in Configuration › Company setup, at the Agents step.
- Answer access requests. An Owner or a Company admin approves an access request in full or in part, or refuses it, in Decisions › Access requests.
- Approve actions. An Approver approves or rejects the actions that need approval, in Decisions › Action approvals.
- Suspend or revoke. A Company admin, or a Department admin for their departments, can suspend the agent or revoke one of its keys or sessions, in Agents and connections › Agents.
- Follow the work. The agent’s actions and executions appear in Operations › Actions and Operations › Executions. An execution whose result Synarun cannot establish by itself waits for people of the company in Operations › Reconciliation.
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 isapplication/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.
| Route | What it does | Where it is described |
|---|---|---|
POST /v1/token | Obtains an access token and opens or continues a session. | Authentication |
POST /v1/session/close | Closes the agent’s session. | Authentication |
POST /v1/action-intents | Submits an action; the answer is the decision. | Submitting an action |
GET /v1/decisions/:id | Reads a decision again. | Outcomes and follow-up |
GET /v1/approvals/:id | Follows the approval of an action. | Outcomes and follow-up |
GET /v1/executions/:id | Follows the execution of an action. | Outcomes and follow-up |
POST /v1/content-artifacts | Uploads a document. | Documents and access requests |
GET /v1/content-artifacts/:digest | Reads a document’s data and the results of its checks. | Documents and access requests |
GET /v1/services | Lists the company’s services and the agent’s access to each. | Documents and access requests |
GET /v1/tools | Lists the operations the agent can use, as tools, with their schemas. | Documents and access requests |
POST /v1/access-requests | Requests access to a service. | Documents and access requests |
GET /v1/access-requests/:id | Reads 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.