Organizations
Organization lifecycle — /api/org
Section titled “Organization lifecycle — /api/org”| Method · Route | Purpose | Source |
|---|---|---|
POST /create | Create an organization | OrgEndpoints.cs:59 |
POST /{slug}/upgrade-type | Upgrade org type (e.g. → Corporation) | :89 |
POST /representative | Set/update the representative director | :124 |
POST /otp/send · /otp/verify | Phone OTP | :31 |
POST /otp/email/send · /otp/email/verify | Email OTP | :45 |
Settings — /api/org/{slug}/settings
Section titled “Settings — /api/org/{slug}/settings”| Method · Route | Purpose | Source |
|---|---|---|
PUT /general · /security · /domains · /api-key-scope | Org config | OrgSettingsEndpoints.cs:146 |
POST /domains/verify | Verify a domain | :340 |
PUT /onboarding | Mark onboarding complete (triggers corp handoff) | :618 |
PUT /notifications · POST /notifications/test | Notification config | :488 |
| Method · Route | Purpose | Source |
|---|---|---|
POST · DELETE /keys/api-keys[/{keyId}] | M2M API keys | :227 |
POST /keys/signing-key/rotate | Rotate RSA signing key (invalidates SignedPermits) | :276 |
POST /keys/webhook-secret/regenerate | Rotate webhook secret | :289 |
POST · DELETE /keys/plugin-tokens[/{tokenId}] | Plugin tokens | :304 |
POST · DELETE /scim/tokens[/{tokenId}] (+ /hard) | SCIM tokens | :382 |
POST · DELETE /federation[/{providerId}] (+ /test) | IdP federation | :772 |
Sub-organizations — /api/org/{slug}/sub-orgs
Section titled “Sub-organizations — /api/org/{slug}/sub-orgs”| Method · Route | Purpose | Source |
|---|---|---|
POST / | Create sub-org | SubOrgEndpoints.cs:89 |
DELETE /{subSlug} | Delete sub-org | :133 |