Skip to main content
The Scrums.com API is planned and not yet publicly available. Endpoints and behaviour are subject to change before release.

Overview

The AI Agent Gateway is the controlled execution environment for all AI agents on the Scrums.com platform. Every agent invocation on the platform flows through the gateway, which enforces policies, controls tool access, routes requests to the appropriate execution context, and records a complete audit trail. Agents are not raw API callers. They operate within a governed runtime: their capabilities are declared, their tool access is explicitly granted, their outputs are logged, and every action is auditable. The gateway is designed for production use in enterprise environments where agent behavior must be predictable, auditable, and constrained. Every active agent deployment is a Service Line with execution_model: agent_runtime. Usage is metered in runs and tokens. All run outputs are traceable back to the RUN-* record and the originating AGT-*.

Core Concepts

Agents

An agent (AGT-*) is a configured execution unit with a defined purpose, model, system prompt, tool access list, and governing policy. Agents are not general-purpose. Each agent is scoped to a specific task domain and its capabilities are explicitly bounded by its configuration and policy.

Policies

A policy (POL-*) is a governance rule set applied to an agent. It defines:
  • Which tools the agent is permitted to access
  • Which data sources the agent can read or write
  • Rate limits on invocations
  • Required human approval steps
  • Output filtering rules
Policies are the primary control mechanism. An agent without a policy cannot be activated.

Tools

Tools are the capabilities granted to an agent — the external systems it can interact with. Tools are declared on the gateway and granted to agents explicitly via policy. Available tool types:

Runs

A run (RUN-*) is a single agent invocation. Runs have structured inputs, outputs, tool call logs, token usage, duration, and an outcome status. Every run is immutable after completion and is recorded in the Audit Logs.

Human-in-the-loop

Policies can require human approval before certain agent actions. When an agent reaches an approval gate, the run is paused with status: "awaiting_approval". A human reviews the pending action and approves or rejects it via the API. The run then resumes or terminates.

Endpoints

GET /v1/agents

List agents in a workspace.

Request

Response

POST /v1/agents

Create and deploy a new agent.

Request

Response

Returns the created agent with status: "active" and a linked LIN-* Service Line.

Notes

  • policy_id is required. An agent cannot be created without a governing policy.
  • Tools listed in tools must all be permitted by the referenced policy. A mismatch returns 422.
  • Creating an agent activates a Service Line immediately.

GET /v1/agents/

Retrieve an agent with full configuration and recent run summary.

PATCH /v1/agents/

Update an agent’s configuration.

Request

Notes

  • Adding a tool that is not permitted by the current policy returns 422. Update the policy first, then update the agent.
  • Changes to system_prompt or tools take effect on the next run. In-progress runs are not affected.

POST /v1/agents//runs

Trigger an agent run.

Request

Response

GET /v1/agents/runs/

Retrieve a completed run with full output, tool call log, and token usage.

Response

GET /v1/agents/tools

List all available tools that can be granted to agents.

POST /v1/agents/tools

Register a custom tool endpoint for use by agents in a workspace.

Request

GET /v1/agents/policies

List agent policies for a workspace.

Response

POST /v1/agents/policies

Create a new agent policy.

Request

GET /v1/agents/audit

Query the agent audit log for a workspace — every run, every tool call, every approval, every policy violation.

Request

Response

Common Workflows

Deploying a governed agent

Reviewing policy violations

Objects

Agent (AGT-*)

Policy (POL-*)

Run (RUN-*)

Best Practices

  • Policy before agent, always. Never create an agent without a policy. An agent without a policy cannot be activated. Design the access model before writing the system prompt.
  • Start with narrow tool lists and expand. Granting an agent access to every tool available is not a starting point — it is a governance failure. Start with the minimum set of tools the agent needs for its defined purpose.
  • Review the tool call log, not just the output. The output tells you what the agent produced. The tool call log tells you how it got there and whether it stayed within expected behavior. Both matter for production agents.
  • Use require_approval_for on destructive actions. Any tool call that modifies data in an external system — creating Jira issues, updating tasks, executing code — should be gated behind human approval until the agent has demonstrated reliable behavior in your context.
  • Audit policy violations weekly. A pattern of violations indicates either a misconfigured agent (system prompt is asking for capabilities the policy doesn’t grant) or a misconfigured policy (the agent legitimately needs a tool that isn’t permitted). Both need fixing.
Last modified on April 15, 2026