workspace
Join Tenant
Creates a membership for the caller's existing person in the tenant identified by tenant_code (an open/joinable tenant's invite code), reusing the same person rather than creating a new one. Idempotent if the caller already has an account there. Returns a fresh token pair scoped to that tenant. 201 if the membership was newly created, 200 if it already existed, 403 join-not-allowed and inactive-tenant cases, 404 if the code matches no tenant. An expired workspace code gets 404 tenant_code_expired.
post/auth/tenant/join
Request
- Base URL: https://api.instruxi.dev/api/v1/enforcer
- URL: https://api.instruxi.dev/api/v1/enforcer/auth/tenant/join
- Auth: one of:
- API key in header Authorization
- API key in header X-API-Key
Request body
Response
OK
Example response
{
"success": true
}Changes
No recorded changes to this operation across all 1 revision of this API.