Provision user on first login
POST/api/v1/auth/provision
Called by Auth0 Action during first login to create tenant and user.
This endpoint:
- Checks if user already exists by auth0_id
- If not, creates a new tenant and user
- Returns tenant_id, role, and permissions for JWT claims
Security: This endpoint is called by Auth0 Action with X-Auth0-User-Id header. Rate limited to 10 requests per minute per IP.
Request
Responses
- 200
- 422
Successful Response
Validation Error