API Documentation
Discovery
- API catalog (RFC 9727):
/.well-known/api-catalog - OpenAPI 3.1:
/openapi.json - Health:
/api/health
Authentication
Accounts are managed by Clerk. Endpoints marked session require a signed-in Clerk session: the __session cookie set by signing in, or the same session JWT as Authorization: Bearer. Requests without one get 401 or a redirect to sign-in. Public endpoints accept an optional session; Discover detail returns full legs only to signed-in callers.
REST endpoints
Base URL: https://www.nextgenvol.com
- get/api/health[public]Health check
- post/api/expected-pnl[public]Compute expected PnL for a multi-leg options structure
- get/api/v1/structures/discover[public]List published structures (Discover feed) — Teaser-level fields only. Cursor-paginated.
- get/api/v1/structures/discover/{id}[public]Get a published structure — Anonymous callers get strikes/expirations stripped and a soft daily view cap (429). Signed-in callers get full legs.
- get/api/v1/structures/shared/{token}[public]Get a structure by share token
- get/api/v1/me[session]Get the current user
- patch/api/v1/me[session]Update the current user
- get/api/v1/structures[session]List my structures
- post/api/v1/structures[session]Create a structure
- get/api/v1/structures/favorites[session]List my favorited structures
- get/api/v1/structures/{id}[session]Get a structure
- patch/api/v1/structures/{id}[session]Update a structure
- delete/api/v1/structures/{id}[session]Delete a structure
- post/api/v1/structures/{id}/fork[session]Fork a structure
- post/api/v1/structures/{id}/vote[session]Upvote a structure
- delete/api/v1/structures/{id}/vote[session]Remove upvote
- get/api/v1/structures/{id}/versions[session]List structure versions
- get/api/v1/structures/{id}/versions/{version}[session]Get a structure version
MCP server
- Endpoint:
https://www.nextgenvol.com/mcp(streamable HTTP) - Auth: OAuth 2.1 (DCR + PKCE) with Clerk as the authorization server. Metadata:
/.well-known/oauth-protected-resource/mcp - Claude:
claude mcp add --transport http nextgenvol https://www.nextgenvol.com/mcp