ReferenceV1
Switch Organization
Header Parameters
authorization?|
X-API-Key?|
Cookie Parameters
vai_token?|
Request Body
application/json
membershipId*string
Target membership to switch to
Format
uuidResponse Body
application/json
application/json
curl -X POST "https://loading/api/v1/auth/switch-organization" \ -H "Content-Type: application/json" \ -d '{ "membershipId": "8072cc74-4782-4f2c-827c-699c48ce2092" }'{
"membershipId": "8072cc74-4782-4f2c-827c-699c48ce2092",
"organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Stream Turn
Start a chat turn and stream the response via SSE. Uses pydantic-ai's native VercelAIAdapter for proper Vercel AI SDK v6 UI Message Stream protocol compliance. The adapter: - Parses the Vercel AI SDK request format automatically - Streams events in the correct protocol format - Handles finish events with usage data Headers: - X-User-Timezone: Optional IANA timezone (e.g., 'America/Denver'). If provided, overrides the user's stored timezone preference. Useful for users who are traveling.
Trigger Automation
Next Page