tenants
tenants
Create Workspace
Create a new, separate workspace for the authenticated user and return a session scoped to it.
The deliberate way to a second workspace now that the returning-user guard no longer mints one from an unknown Slack. JWT-only (require_user) so it works even from a tenant-less pending session; it never selects among existing memberships, so it is not the tenant chooser. The required Idempotency-Key header makes a retry safe: the same key returns the SAME workspace (never a duplicate), and reusing a key with a different body is a 409. Adopt the returned token pair to enter the new workspace.
post/v1/tenants
Request
- Base URL: https://api.patricia.app (the document declares no server; this is the origin it was published from)
- URL: https://api.patricia.app/v1/tenants
- Auth: HTTP bearer
Headers
Idempotency-Keystring required
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.