Orgs, projects, and plans
ToolPause supports multi-team workspaces for hosted and self-hosted setups.
Model
Org (plan: free | pro | enterprise)
├── Members (owner / admin / member)
├── Invites (email + one-time token)
└── Projects
└── Tool calls carry project_id → usage metering + Inbox filter
Onboarding
Sign up in the UI (Team), or:
curl -s -X POST http://127.0.0.1:8000/v1/auth/signup \
-H 'Content-Type: application/json' \
-d '{"username":"you","password":"••••••••","org_name":"Acme"}'
Returns a session token, org_id, and project_id.
Agent wiring
@protected_tool(
risk="high",
backend_url="https://your-toolpause-host",
api_key="…",
project_id="…",
)
def send_refund(...): ...
Pending approvals under an org count toward the monthly free-tier limit. Over limit → HTTP 402.
Invites
- Org admin creates an invite (
POST /v1/orgs/{id}/invites) with email + role - Invitee signs up or signs in, then accepts the invite token
Billing
Org admins can upgrade from Team when Stripe is configured on the server.
Self-hosters who enable Stripe set:
| Env | Purpose |
|---|---|
ACTIONGATE_STRIPE_SECRET_KEY |
Stripe API |
ACTIONGATE_STRIPE_PRICE_PRO / _ENTERPRISE |
Price IDs |
ACTIONGATE_STRIPE_WEBHOOK_SECRET |
Webhook verification |
Webhook endpoint: POST /v1/billing/stripe/webhook.
Hosted mode
Set ACTIONGATE_HOSTED=1 so GET /v1/cloud/info reports hosted mode and the login gate prefers signup.
Org SSO / SCIM
Per-org OIDC issuer and SCIM notes: PUT /v1/orgs/{id}/settings.
SCIM Users API: issue a token, then point the IdP at /scim/v2 — see SCIM.
Global operator SSO: OIDC.