Applies to v1.3.18

Endpoints And Addressing

Purpose

This page lists every address a caller uses to reach the platform, explains how the platform works out which tenant and client application a request belongs to, and covers what to check in the network between you and the platform: TLS, proxies and idle timeouts.

The Public Base URL

A deployment exposes one public address: the Gateway. It is the single ingress for the platform, and it routes each request to the component that serves it, so a caller never needs to know the internal hosts. Your platform operator gives you this address. The examples in this chapter use:

https://apimapper.example.com

Tool traffic — MCP, the tools API and the SDKs — is served under /runtime/ on that address. A2A agents are served on host names of their own, described below.

Tool Endpoints

Every tool endpoint carries the tenant and the client application in its path:

https://apimapper.example.com/runtime/{tenantId}/{clientId}/...
  • {tenantId} is the id of the tenant that publishes the tools.
  • {clientId} is the client id of a client application registered in that tenant. The client application decides which toolsets — and therefore which tools — the caller sees.

Both values come from your platform administrator, who creates the client application and assigns toolsets to it (see Toolsets & Client Applications).

Method and path Purpose Page
POST /runtime/{tenantId}/{clientId}/mcp MCP over Streamable HTTP: one JSON-RPC message per request Connecting MCP Clients
GET /runtime/{tenantId}/{clientId}/mcp MCP server-to-client stream (Server-Sent Events) Connecting MCP Clients
DELETE /runtime/{tenantId}/{clientId}/mcp Ends an MCP session Connecting MCP Clients
GET /runtime/{tenantId}/{clientId}/sse Legacy MCP HTTP+SSE transport: opens the stream Connecting MCP Clients
POST /runtime/{tenantId}/{clientId}/messages?sessionId=… Legacy MCP HTTP+SSE transport: posts a message Connecting MCP Clients
GET /runtime/{tenantId}/{clientId}/tools Lists the tools published to the client application Calling Tools Over REST
POST /runtime/{tenantId}/{clientId}/tools/{toolId}/invoke Invokes one tool Calling Tools Over REST

All of these require a bearer token or an API key. A few addresses are anonymous, for monitoring and for client discovery:

Method and path Purpose
GET /runtime/version The Runtime's version
GET /runtime/health, /runtime/health/live, /runtime/health/ready Runtime health probes
GET /runtime/license The license state shown in the Portal's license bar
GET /.well-known/oauth-protected-resource/runtime/{tenantId}/{clientId}/mcp OAuth protected-resource metadata, which tells an MCP client where to sign the user in

Agent Addresses

An A2A agent is reached at a host name of its own:

https://{agent}-{tenant}.{agents root}

For example, the helpdesk agent of the acme tenant on a deployment whose agents root is agents.example.com is at https://helpdesk-acme.agents.example.com. The agent and tenant labels are set in the Portal; the agents root is a deployment setting your operator gives you. See Setting an agent's address for the rules, and note that changing either label moves the agent with no redirect.

All three A2A transports are served at that one address, each on its own part of the path:

Transport Paths
JSON-RPC 2.0 POST / (and GET / for a resumable stream)
HTTP+JSON (REST) POST /message:send, POST /message:stream, GET /tasks, GET /tasks/{id}, POST /tasks/{id}:cancel, POST /tasks/{id}:subscribe, the /tasks/{id}/pushNotificationConfigs routes, GET /extendedAgentCard
gRPC /lf.a2a.v1.A2AService/{method}

Two discovery documents on the same host are anonymous: the Agent Card at GET /.well-known/agent-card.json and the key set that verifies its signature at GET /.well-known/jwks.json. Everything else on an agent host requires a bearer token or an API key, including the authenticated extended card at GET /agent-card/extended.

An agent answers only once an administrator has published it; until then its address answers 404, the same as an agent that does not exist. See Calling Agents Over A2A.

Starting Hosted Agents

Hosted agents can also be started on demand and from webhooks. Schedules have no address: they are configured in the Portal and started by the platform.

Method and path Purpose Authentication Page
POST /runtime/{tenantId}/agents/{agentId}/executions Starts a hosted agent as the caller Bearer token or API key On-Demand Agent Runs
GET /runtime/{tenantId}/agents/executions/{executionId} Reads an execution's status and result Bearer token or API key On-Demand Agent Runs
POST /runtime/{tenantId}/agents/executions/{executionId}/cancel Cancels an execution Bearer token or API key On-Demand Agent Runs
POST /runtime/hooks/agents/{publicId} Delivers an event to a webhook trigger None at the Gateway; the delivery carries a signature or a bearer token the trigger checks Starting Agents From Webhooks

The executions routes carry the tenant but no client application: what a caller may do is decided by the agent's own access policies, as on an agent host, and an API key is accepted for its own tenant. {agentId} is the agent's id in the Agent Directory.

The webhook route is the only anonymous route under /runtime/ that starts work. It accepts POST only, on that single path segment, and the Gateway caps its body at 256 KB. {publicId} is a random value generated for each trigger — the URL is shown on the trigger in the Portal — and the tenant is taken from the trigger, never from the request.

How Tenant And Client Application Are Resolved

The platform takes the tenant and client application from the address, then checks that the credential you present is allowed to use them:

  • Tool endpoints. The tenant and client application are the {tenantId} and {clientId} path segments.
    • An API key is bound to one tenant and one client application when it is issued. Presented on any other tenant or client application's path, it is refused with 401.
    • A bearer token is validated against the trusted identity providers configured for that tenant, or configured for every tenant. The client application in the path selects the tool catalog, and the tools' access policies decide what this caller may list and call — a policy can require a specific issuer, client id, role, scope, group or claim.
  • Agent hosts. The tenant and the agent are resolved from the host name. A2A requests carry no client application: what a caller may do with an agent is decided by the agent's own access policies.
  • Hosted-agent executions. The tenant is the {tenantId} path segment and the agent the {agentId} segment; as on an agent host, there is no client application.
  • Webhooks. The tenant and agent are those of the trigger the {publicId} identifies.

See Authentication for what the administrator configures and what the caller sends.

TLS, Proxies And Idle Timeouts

Use HTTPS. Credentials travel in the Authorization or X-Api-Key header on every request, so any plain-HTTP hop between a caller and the platform exposes them. Where TLS is terminated in your deployment — on the Gateway or on an ingress in front of it — is your operator's decision; either way, your address is https://.

Browser callers and the Origin header. A request that carries an Origin header — which means a browser sent it — is served on the MCP and A2A endpoints only when that origin is the platform's own or is on the deployment's allowed-origins list. Anything else is refused with 403. Server-side callers do not send Origin and are not affected. If you call the platform from a web page, ask your operator to add your origin.

Proxies in front of the platform. If your traffic passes through a reverse proxy, load balancer or firewall of your own before it reaches the Gateway:

  • Do not buffer streamed responses. MCP and A2A streams are Server-Sent Events. The platform sends each frame as soon as it is ready and marks the response X-Accel-Buffering: no; a proxy that buffers the response holds the frames back and the client sees nothing until the stream ends.
  • Keep idle connections open long enough. An idle MCP or A2A stream carries a keep-alive comment every 15 seconds by default, so a proxy idle timeout of at least a minute is safe for streams.
  • Allow for blocking A2A calls. An A2A SendMessage that does not ask to return immediately holds its connection until the agent finishes, which for a hosted agent can take up to its turn budget — five minutes by default. A proxy with a shorter idle timeout cuts the connection first. Either raise that timeout, or send returnImmediately: true and follow the task instead (see Calling Agents Over A2A). The same applies to starting a hosted agent with "returnImmediately": false (see On-Demand Agent Runs).
  • Preserve the host name for agent traffic. A2A is routed by host name, so a proxy in front of the Gateway must forward the original Host of an agent request, and DNS must resolve the agent host names — a wildcard record and a wildcard certificate for the agents root cover every agent of every tenant.
  • gRPC needs HTTP/2 end to end. Every hop between a gRPC client and the platform must speak HTTP/2. Ask your operator which address and port serve gRPC in your deployment.