Agenta Sessions API

Agent sessions — runner coordination (invoke/cancel/steer/attach/detach/heartbeat/liveness), state persistence (durable SDK state and sandbox resume pointer), records, and streams.

Operations 45

POST /sessions/tools/current Get Current Session #
GET /sessions/streams/ Fetch Session Stream #
POST /sessions/streams/ Set Session Stream #
DELETE /sessions/streams/ Delete Session Stream #
POST /sessions/streams/query Query Session Streams #
POST /sessions/streams/detach Detach Session Stream #
POST /sessions/streams/heartbeat Heartbeat Session Stream #
PUT /sessions/streams/header Set Session Stream Header #
POST /sessions/streams/header Set Session Stream Header #
GET /sessions/streams/watch Watch Session Stream #
GET /sessions/{session_id}/events Session Events #
GET /sessions/watch Watch Project #
POST /sessions/interactions/ Create Interaction #
POST /sessions/interactions/query Query Interactions #
POST /sessions/interactions/transition Transition Interaction #
POST /sessions/interactions/cancel-stale Cancel Stale Interactions #
GET /sessions/interactions/{interaction_id} Fetch Interaction #
POST /sessions/interactions/{interaction_id}/respond Respond Interaction #
POST /sessions/attachments Create Session Attachment #
GET /sessions/attachments/{attachment_id}/content Download Session Attachment Content #
POST /sessions/attachments/reference Reference Session Attachments #
GET /sessions/mounts/ Fetch Session Mounts #
POST /sessions/mounts/query Query Session Mounts #
POST /sessions/mounts/sign Sign Session Mount Credentials #
POST /sessions/mounts/files/upload Upload Session Cwd File #
POST /sessions/mounts/{mount_id}/files/upload Upload Session Mount File #
GET /sessions/mounts/{mount_id}/files/download Download Session Mount File #
POST /sessions/records/query Query Records #
GET /sessions/records/{record_id} Get Record Event #
POST /sessions/records/ingest Ingest Record Event #
POST /sessions/records/incomplete Mark Records Incomplete #
POST /sessions/turns/ Append Turn #
POST /sessions/turns/complete Complete Turn #
POST /sessions/turns/query Query Turns #
GET /sessions/turns/{turn_id} Fetch Turn #
POST /sessions/query Query Sessions #
DELETE /sessions/ Delete Session #
PATCH /sessions/{session_id}/inputs/{input_id} Update Pending Input #
DELETE /sessions/{session_id}/inputs/{input_id} Remove Pending Input #
POST /sessions/archive Archive Session #
POST /sessions/unarchive Unarchive Session #
GET /sessions/{session_id} Get Session Snapshot #
POST /sessions/{session_id}/cancel Cancel Session Execution #
POST /sessions/{session_id}/continuations/resume Resume Session Continuation #
POST /sessions/{session_id}/inputs/{input_id}/send-now Send Pending Input Now #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/agenta:agenta-sessions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

agenta-sessions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Agenta Sessions API
  description: Agenta API
  contact:
    name: Agenta
    url: https://agenta.ai/
    email: team@agenta.ai
  version: 0.1.0
servers:
- url: /api
- url: https://eu.cloud.agenta.ai/api
security:
- APIKeyHeader: []
tags:


# --- truncated at 32 KB (111 KB total) ---
# Full source: https://artifacts.apis.io/agenta/openapi/agenta-sessions-api-openapi.yml