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.
Visual notes


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.
| Resource | URL | Format |
|---|---|---|
| OpenAPI specification | /openapi.json | application/openapi+json |
| Authentication reference | /auth.md | text/markdown |
| Protected-resource metadata | /.well-known/oauth-protected-resource | application/json |
| Authorization-server metadata | /.well-known/oauth-authorization-server | application/json |
| MCP server | app.topodrive.top/api/mcp | JSON-RPC 2.0 |
| MCP server card | /.well-known/mcp/server-card.json | application/json |
| A2A agent card | /.well-known/agent-card.json | application/json |
| Agent skills index | /.well-known/agent-skills/index.json | application/json |
| Skill package | /SKILL.md | text/markdown |
| Agent plugin manifest | /plugin.json | application/json |
| API catalog | /.well-known/api-catalog | application/linkset+json |
| Agent instructions | /agents.md | text/markdown |
| LLM navigation | /llms.txt · /llms-full.txt | text/plain |
Conventions
Predictable by design.
- Typed errors
{"code": "MACHINE_READABLE_CODE", "message": "…", "detail": …}with correct status; 401 carries an RFC 6750WWW-Authenticatechallenge.- 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/-Reseton every response;Retry-Afteron 429.- Pagination
{items, cursor, hasMore}; pass?cursor=untilhasMore: false.- Long jobs
- Bulk import returns
202 {jobId, status}; pollGET /api/import/:id. - Versioning
- The mobile contract is versioned under
/api/v2/*; deprecations signal viaSunsetheader plus an announcement at least 90 days ahead.
curl https://app.topodrive.top/api/v2/health \
-H "Authorization: Bearer ak_<keyId>.<secret>"

Security disclosures. See /.well-known/security.txt. We read every report directly.