Skip to content

API Reference

TapPass exposes a REST API built on FastAPI. Interactive docs available in dev mode at /api-docs (Swagger) and /api-redoc (ReDoc).

SectionPrefixDescription
Chat Completions/v1/chat/completionsOpenAI-compatible LLM proxy
Sessions/sessionsSession management
Agents/agentsAgent registration and lifecycle
Pipelines/pipelinesPipeline CRUD and assignment
Audit Trail/auditQuery and verify audit events
Health/healthHealth check and diagnostics

Four methods, tried in order:

  1. SPIFFE X509-SVID (mTLS): AI agent identity
  2. SPIFFE JWT-SVID (Bearer). AI agent identity
  3. Session JWT (Bearer). human identity from SSO
  4. Admin API key (Bearer). bootstrap key
OrderMiddlewarePurpose
1Version prefixStrips /v1/ prefix
2Auth4-method auth chain
3Rate limitPer-IP rate limiting
4Request sizeRejects bodies > 5 MB
5Security headersCSP, HSTS, X-Frame-Options
6Request IDX-Request-ID propagation
7CORSCross-origin resource sharing