Overview
The Agents v1 API exposes a remote-model-compatible surface for discovering agent-backed models, listing deferred tools, activating tools for a session, and retrieving completed responses. It mirrors the shape expected by remote-model clients so that Allternit agents can be consumed through standard SDKs while still preserving Allternit-specific profile metadata. An “agent-backed model” here is an agent profile presented in a model-compatible shape: itsid is the agent ID. modelConfig is the real model configuration the agent runs with, taken from the agent’s profile config and falling back to the agent’s provider and model columns.
Existing runtime/provider APIs expose implementation controls intentionally. The Agency API is the abstraction that hides those controls behind capabilities and one durable agent identity. See Agents API vs Agency API.
Base URL
Authentication
All routes require a valid bearer token in theAuthorization header. See Authentication for details.
Agent profile object
A remote model entry returned by this API wraps an Allternit agent profile.Endpoints
List agent-backed models
Response
Retrieve a model
List tools
Response
Search tools
id, label, or description. Returns the same shape as List tools: {"object": "list", "data": [...], "model": "agent_01J8X..."}. An unknown agent returns 404.
Activate tools
Activate one or more tools for a session so they appear in the runtime tool snapshot.tool_ids must contain at least one ID (otherwise 400). If the session does not exist yet, a remote session is created for it.
Response
Retrieve a response
Fetch a previously generated assistant response by its response ID.Response
Error codes
Related pages
- Agents API — create and manage agents
- Agent Sessions — chat sessions and message history
- MCP Servers — attach model context protocol servers