There was an error while loading. Please reload this page.
After the regular QR auth flow for sphinx,
POST https://{host}/api/auth/sphinx/token Content-Type: application/json { "token": "{signedToken}", "pubkey": "02abc...", "timestamp": 1234567890 }
Response:
{ "token": "eyJhbGciOiJkaXIi..." }
Use this JWT as a Bearer token for subsequent API calls:
Authorization: Bearer eyJhbGciOiJkaXIi...
List user's workspaces:
GET "https://hive.sphinx.chat/api/workspaces" Content-Type: application/json Authorization: Bearer eyJhbGciOiJkaXIi...
{ "workspaces": [ { "id": "abc123", "name": "My Workspace", "slug": "my-workspace", ... } ] }