me

Create the tenant, user and membership rows for a verified token, idempotently

Changed on

Safe to call on every sign-in. A token that names an organisation is provisioned straight away and the answer's action is ready. A token that names none has its PENDING INVITATIONS looked up by the address WorkOS holds for it: the oldest is accepted, which creates the WorkOS membership with the invited role, the rows follow, and action is refresh because the caller's token predates that membership and must be refreshed with tenant.workos_org_id. Nobody invited: 403 no-firm, and nothing is written (D-73).

post/v1/me/provision

Request

  • Base URL
    https://api.sixminute.ai (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Request body

tenant_namestring
emailstring email
namestring

Response

The rows, and what the caller must do next.

permissionsstring[]
judgment_pipeline'standard' | 'jev'
legalsense_connectorboolean
timesheet_petboolean
calendar_offeredboolean
swallow_short_pausesboolean
pipeline_shadowboolean
practiceobject nullable
narrative_styleboolean
action'ready' | 'refresh'

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the optional property to the response with the status