Skip to main content

Base URL

https://api.agentsim.dev/v1
All endpoints are versioned under /v1. Breaking changes will be introduced under a new version prefix with a deprecation notice.

Authentication

All requests require an API key in the x-api-key header:
x-api-key: asm_live_YOUR_KEY
See Authentication for key management.

Request Format

  • Content-Type: application/json
  • All request bodies must be valid JSON
  • agent_id is required on session creation

Response Format

All responses return JSON. Successful responses use 2xx status codes. Errors always include an error, code, and message field.

Pagination

List endpoints support cursor-based pagination via an after query parameter. When has_more: true is returned, pass the last item’s id as after to fetch the next page.
Use the SDKs — they handle authentication, retries, and resource cleanup automatically.