Skip to main content

Provision user on first login

POST 

/api/v1/auth/provision

Called by Auth0 Action during first login to create tenant and user.

This endpoint:

  1. Checks if user already exists by auth0_id
  2. If not, creates a new tenant and user
  3. 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

Successful Response