Developers

Build agents on Socrates.

A typed OpenAPI surface, OAuth 2.0 with PKCE, scoped long-lived agent keys, an MCP server, and machine-readable discovery at predictable URLs.

OpenAPI 3.0Every public endpoint
OAuth 2.0 + PKCEThird-party agents
MCPStreamable HTTP, read-only

Visual notes

The diagram is worked through beside the code that calls it, so the request path stays visible.
01A developer’s workbench
A single route through the subject, where each turn is a question you asked.
02A route through the subject

Quickstart

Three steps to a first call.

01

Pick an auth route

Third-party agents use the OAuth 2.0 authorization-code flow with PKCE. First-party automation mints a scoped key via POST /api/account/agent-keys.

02

Read the contract

Every public endpoint is specified in the OpenAPI 3.0 specification — operationIds, schemas, error codes, and per-operation scopes.

03

Call the API

Base URL https://app.topodrive.top. Health probe: GET /api/v2/health. Rate-limit headers ride every response.

Discovery index

Everything is at a predictable URL.

Open the spec
ResourceURLFormat
OpenAPI specification/openapi.jsonapplication/openapi+json
Authentication reference/auth.mdtext/markdown
Protected-resource metadata/.well-known/oauth-protected-resourceapplication/json
Authorization-server metadata/.well-known/oauth-authorization-serverapplication/json
MCP serverapp.topodrive.top/api/mcpJSON-RPC 2.0
MCP server card/.well-known/mcp/server-card.jsonapplication/json
A2A agent card/.well-known/agent-card.jsonapplication/json
Agent skills index/.well-known/agent-skills/index.jsonapplication/json
Skill package/SKILL.mdtext/markdown
Agent plugin manifest/plugin.jsonapplication/json
API catalog/.well-known/api-catalogapplication/linkset+json
Agent instructions/agents.mdtext/markdown
LLM navigation/llms.txt · /llms-full.txttext/plain

Conventions

Predictable by design.

Typed errors
{"code": "MACHINE_READABLE_CODE", "message": "…", "detail": …} with correct status; 401 carries an RFC 6750 WWW-Authenticate challenge.
Scopes
Closed set chat|memory|sessions|files|projects × read|write; declared per operation and enforced server-side.
Idempotency
Idempotency-Key: <uuid> on writes; a 24 h replay window returns the original response.
Rate limits
RateLimit-Limit/-Remaining/-Reset on every response; Retry-After on 429.
Pagination
{items, cursor, hasMore}; pass ?cursor= until hasMore: false.
Long jobs
Bulk import returns 202 {jobId, status}; poll GET /api/import/:id.
Versioning
The mobile contract is versioned under /api/v2/*; deprecations signal via Sunset header plus an announcement at least 90 days ahead.
curl https://app.topodrive.top/api/v2/health \
  -H "Authorization: Bearer ak_<keyId>.<secret>"
Ideas connected to one another, so a new one arrives with its neighbours attached.
03A map of connected ideas
Security disclosures. See /.well-known/security.txt. We read every report directly.