Skip to main content
Last updated on
Advanced — 0.0.x primitives

You don't need this page for a normal integration. Use the quickstarts and createMythos() instead. These low-level functions remain exported for custom setups.

handshake_router

Pre-built FastAPI router with the Mythos publish handshake endpoint.

Usage​

python
from fastapi import FastAPI
from mythos_sdk import handshake_router

app = FastAPI()
app.include_router(handshake_router)

Route​

text
GET /.well-known/mythos-handshake?lt=<handshake-jwt>

Responses​

StatusBody
200{ "ok": true, "sdk_version": "0.1.0" }
401{ "error": "Missing launch token" }
401{ "error": "Invalid launch token" }
503{ "error": "Service unavailable" }

create_handshake_router​

For customization, use the factory:

python
from mythos_sdk import create_handshake_router

app.include_router(create_handshake_router())

Both are equivalent for standard integrations.

See also​