authentication

Switch Active Account

Make another already-signed-in account active (#1488 Phase 2).

The security boundary is switch_account's membership check: the target must already be in THIS session's container. A caller naming an arbitrary user id gets 404, not that user's session — there is no lookup anywhere in this path, so no id a caller invents can widen their access.

404 rather than 403 on a non-member: whether some other account exists is not this caller's business to learn.

post/api/v1/auth/accounts/switch

Request

  • Base URL: https://memory.kagura-ai.com (the document declares no server; this is the origin it was published from)
  • URL: https://memory.kagura-ai.com/api/v1/auth/accounts/switch
  • Auth: none declared

Headers

authorizationstring nullable

Request body

user_idstring required

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.