Org API
Org profile, settings, security, SSO and SCIM, ownership and deletion.
Base URL https://api.ndstill.com/v2. Send Authorization: Bearer with a key, Ndstill-Version: 2026-11-01, and an Idempotency-Key on every POST. Conventions, scopes and errors are in the API overview and Errors and decline reasons. Examples come from the mock backend; the shapes are the TypeScript types in packages/api.
Get the org#
/v2/org- idId
- object"org"
- org_idId
- created_atTimestamp
- updated_atTimestampoptional
- test_modebooleanoptional
True for test-mode objects (simulations, sandbox).
- namestring
- slugstring
- kindOrgKind
"business""individual" - platform_idId | null
- statusstring enum
"active""closed""setup""restricted" - planPlanCode
"free""starter""growth""enterprise" - featuresobject
Product parts switched on for this org (drives navigation).
3 fields
- accountsboolean
- acceptboolean
- platformboolean
- home_cellstring
Where the org's data lives.
- time_zonestring
- default_asset"USD"
- accentstring enum
Accent tone per workspace (a tiny tone change for orientation, never a colour wash).
"default""warm""cool" - show_name_to_sellersbooleanoptional
Sellers on ndStill see this org's name when its agents buy (Verify, checkouts, receipts). Off, they see "An ndStill customer" and new passport key ids leave out the org's short name.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X GET "https://api.ndstill.com/v2/org" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"id": "org_A99F918124609C9DAAACB209D8",
"object": "org",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2025-09-29T00:43:11.374Z",
"name": "Acme Robotics",
"slug": "acme-robotics",
"kind": "business",
"platform_id": null,
"status": "active",
"plan": "growth",
"features": {
"accounts": true,
"accept": false,
"platform": false
},
"home_cell": "us-east-1 (demo)",
"time_zone": "America/Los_Angeles",
"default_asset": "USD",
"accent": "default",
"show_name_to_sellers": true
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Get security settings#
/v2/org/security- object"security_settings"
- org_idId
- ssoobject
13 fields
- enabledboolean
- protocolstring enum
null"saml""oidc" - domainstring | null
- enforcedboolean
- provider_namestring | nulloptional
Identity provider shown to people ("Okta", "Microsoft Entra ID", "Google Workspace").
- metadata_urlstring | nulloptional
SAML: IdP metadata URL.
- issuerstring | nulloptional
OIDC: issuer URL and client id.
- client_idstring | nulloptional
- acs_urlstringoptional
What ndStill gives the IdP (read-only).
- entity_idstringoptional
- redirect_uristringoptional
- last_tested_atTimestamp | nulloptional
- last_test_okboolean | nulloptional
- scimobject
6 fields
- enabledboolean
- last_sync_atTimestamp | null
- endpointstringoptional
- token_prefixstring | nulloptional
First characters of the current bearer token; the token itself is shown once.
- users_syncednumberoptional
- groups_syncednumberoptional
- passkeys_requiredboolean
- step_upobject
5 fields
- org_freezeboolean
- policy_activationboolean
- approvals_aboveMoney | null
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- payoutsboolean
- card_revealboolean
- chat_approvalsobject
Approving from WhatsApp or Slack, for the whole org. Each person links their own chat (Your login) and picks their own in-chat limit, never above `max_in_chat`. Above a person's limit, and for anything that needs a passkey or two people, the chat's Approve button opens a one-time link that asks for a passkey.
3 fields
- whatsappboolean
- slackboolean
- max_in_chatMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- sessionobject
2 fields
- idle_timeout_minutesnumber
- admin_idle_timeout_minutesnumber
- ip_allow_liststring[]
- last_changedobject | nulloptional
Who changed security last (every change needs a fresh passkey).
2 fields
- atTimestamp
- bystring
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X GET "https://api.ndstill.com/v2/org/security" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "security_settings",
"org_id": "org_A99F918124609C9DAAACB209D8",
"sso": {
"enabled": true,
"protocol": "oidc",
"domain": "acme-robotics.example",
"enforced": false,
"provider_name": "Google Workspace",
"metadata_url": null,
"issuer": "https://accounts.google.example",
"client_id": "ce3746cc0c3d.apps.googleusercontent.example",
"acs_url": "https://auth.ndstill.example/acme-robotics/saml/acs",
"entity_id": "https://auth.ndstill.example/acme-robotics/saml/metadata",
"redirect_uri": "https://auth.ndstill.example/acme-robotics/oidc/callback",
"last_tested_at": "2026-11-17T00:43:12.308Z",
"last_test_ok": true
},
"scim": {
"enabled": false,
"last_sync_at": null,
"endpoint": "https://api.ndstill.example/scim/v2/org_A99F918124609C9DAAACB209D8",
"token_prefix": null,
"users_synced": 0,
"groups_synced": 0
},
"passkeys_required": true,
"step_up": {
"org_freeze": true,
"policy_activation": true,
"approvals_above": {
"amount": 50000,
"asset": "USD"
},
"payouts": true,
"card_reveal": true
},
"chat_approvals": {
"whatsapp": false,
"slack": false,
"max_in_chat": {
"amount": 100000,
"asset": "USD"
}
},
"session": {
"idle_timeout_minutes": 60,
"admin_idle_timeout_minutes": 30
},
"ip_allow_list": [],
"last_changed": {
"at": "2026-11-14T00:43:12.308Z",
"by": "Dana Whitfield"
}
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Get the org's live state#
/v2/org/state- object"org_state"
- held_countnumber
- frozenobject
Active freezes, by scope kind. `org` true = the whole org is frozen.
6 fields
- orgboolean
- freeze_idId | null
- agentsnumber
- teamsnumber
- treesnumber
- funding_sourcesnumber
- freezes_in_progressstring[]
Freezes or unfreezes still fanning out to connectors.
- setupobject
2 fields
- doneboolean
- stepsSetupStep[]
SetupStep: 4 fields
- keystring
- labelstring
- doneboolean
- hrefstring
- issuesOrgIssue[]
OrgIssue: 6 fields
- idId
- kindstring enum
"verification""budget""webhook""connector""recon" - levelstring enum
"danger""warn" - messagestring
- hrefstring | null
- atTimestamp
- chipobject
One short chip label: "Setup 4 of 6", "Ramp syncing late", "All connected".
3 fields
- labelstring
- tonestring enum
"held""blocked""neutral""moved" - hrefstring | null
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X GET "https://api.ndstill.com/v2/org/state" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "org_state",
"held_count": 8,
"frozen": {
"org": false,
"freeze_id": null,
"agents": 2,
"teams": 0,
"trees": 0,
"funding_sources": 0
},
"freezes_in_progress": [],
"setup": {
"done": false,
"steps": [
{
"key": "org",
"label": "Add your org details",
"done": true,
"href": "/org/settings"
},
{
"key": "members",
"label": "Invite members and set roles",
"done": true,
"href": "/org/members"
},
{
"key": "rails",
"label": "Connect a rail",
"done": true,
"href": "/money/connections"
}
]
},
"issues": [
{
"id": "iss_01KQ667RMEPR",
"kind": "connector",
"level": "warn",
"message": "Ramp: Transactions are syncing 40 minutes behind.",
"href": "/money/connections/con_01KQ667RMEPRF87EQEW9XS3VQE",
"at": "2026-11-23T00:41:11.374Z"
},
{
"id": "iss_recon",
"kind": "recon",
"level": "warn",
"message": "8 reconciliation exceptions to review",
"href": "/books/reconciliation",
"at": "2026-11-22T21:43:13.216Z"
},
{
"id": "iss_01KWAZNRMEQT",
"kind": "webhook",
"level": "warn",
"message": "Webhook ERP bridge (old) is failing (62% delivered)",
"href": "/developers/webhooks/we_01KWAZNRMEQTRQGV3HNJVRN8DF",
"at": "2026-11-22T22:47:11.374Z"
}
],
"chip": {
"label": "Setup 7 of 8",
"tone": "held",
"href": "/org/settings"
}
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Update the org profile#
/v2/org- namestringrequired
- time_zonestringrequired
- default_asset"USD"required
- statement_descriptorstring
- show_name_to_sellersboolean
The same Org object as Get the org.
- 400invalid_request
A field is missing or invalid; fields names each one.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X PATCH "https://api.ndstill.com/v2/org" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Content-Type: application/json" \
-d '{
"name": "Docs example",
"time_zone": "example",
"default_asset": "USD"
}'{
"id": "org_A99F918124609C9DAAACB209D8",
"object": "org",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2025-09-29T00:43:11.374Z",
"name": "Docs example",
"slug": "acme-robotics",
"kind": "business",
"platform_id": null,
"status": "active",
"plan": "growth",
"features": {
"accounts": true,
"accept": false,
"platform": false
},
"home_cell": "us-east-1 (demo)",
"time_zone": "example",
"default_asset": "USD",
"accent": "default",
"updated_at": "2026-11-23T00:43:13.673Z"
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Delete the org#
/v2/org/delete- confirm_textstringrequired
- step_upstring
- object"org_deleted"
- idId
- 400invalid_request
A field is missing or invalid; fields names each one.
- 400step_up_required
A person must confirm with a passkey first, when the org requires it.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 409conflict
The object changed or already exists, or the Idempotency-Key was reused with a different body.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X POST "https://api.ndstill.com/v2/org/delete" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"confirm_text": "FREEZE"
}'Runs against the in-browser mock with a test key. Nothing leaves your browser.
Update security settings#
/v2/org/security- ssoobject
13 fields
- enabledbooleanrequired
- protocolstring enumrequired
null"saml""oidc" - domainstring | nullrequired
- enforcedbooleanrequired
- provider_namestring | null
Identity provider shown to people ("Okta", "Microsoft Entra ID", "Google Workspace").
- metadata_urlstring | null
SAML: IdP metadata URL.
- issuerstring | null
OIDC: issuer URL and client id.
- client_idstring | null
- acs_urlstring
What ndStill gives the IdP (read-only).
- entity_idstring
- redirect_uristring
- last_tested_atTimestamp | null
- last_test_okboolean | null
- sessionobject
2 fields
- idle_timeout_minutesnumberrequired
- admin_idle_timeout_minutesnumberrequired
- scimobject
6 fields
- enabledbooleanrequired
- last_sync_atTimestamp | nullrequired
- endpointstring
- token_prefixstring | null
First characters of the current bearer token; the token itself is shown once.
- users_syncednumber
- groups_syncednumber
- passkeys_requiredboolean
- step_upobject
5 fields
- org_freezebooleanrequired
- policy_activationbooleanrequired
- approvals_aboveMoney | nullrequired
An amount: integer minor units + asset.
Money: 2 fields
- amountnumberrequired
- assetAssetCoderequired
"USD""USDC""EUR""GBP"
- payoutsbooleanrequired
- card_revealbooleanrequired
- chat_approvalsobject
Approving from WhatsApp or Slack, for the whole org. Each person links their own chat (Your login) and picks their own in-chat limit, never above `max_in_chat`. Above a person's limit, and for anything that needs a passkey or two people, the chat's Approve button opens a one-time link that asks for a passkey.
3 fields
- whatsappbooleanrequired
- slackbooleanrequired
- max_in_chatMoneyrequired
An amount: integer minor units + asset.
Money: 2 fields
- amountnumberrequired
- assetAssetCoderequired
"USD""USDC""EUR""GBP"
- ip_allow_liststring[]
- last_changedobject | null
Who changed security last (every change needs a fresh passkey).
2 fields
- atTimestamprequired
- bystringrequired
The same SecuritySettings object as Get security settings.
- 400invalid_request
A field is missing or invalid; fields names each one.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X PATCH "https://api.ndstill.com/v2/org/security" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Content-Type: application/json" \
-d '{}'{
"object": "security_settings",
"org_id": "org_A99F918124609C9DAAACB209D8",
"sso": {
"enabled": true,
"protocol": "oidc",
"domain": "acme-robotics.example",
"enforced": false,
"provider_name": "Google Workspace",
"metadata_url": null,
"issuer": "https://accounts.google.example",
"client_id": "ce3746cc0c3d.apps.googleusercontent.example",
"acs_url": "https://auth.ndstill.example/acme-robotics/saml/acs",
"entity_id": "https://auth.ndstill.example/acme-robotics/saml/metadata",
"redirect_uri": "https://auth.ndstill.example/acme-robotics/oidc/callback",
"last_tested_at": "2026-11-17T00:43:12.308Z",
"last_test_ok": true
},
"scim": {
"enabled": false,
"last_sync_at": null,
"endpoint": "https://api.ndstill.example/scim/v2/org_A99F918124609C9DAAACB209D8",
"token_prefix": null,
"users_synced": 0,
"groups_synced": 0
},
"passkeys_required": true,
"step_up": {
"org_freeze": true,
"policy_activation": true,
"approvals_above": {
"amount": 50000,
"asset": "USD"
},
"payouts": true,
"card_reveal": true
},
"chat_approvals": {
"whatsapp": false,
"slack": false,
"max_in_chat": {
"amount": 100000,
"asset": "USD"
}
},
"session": {
"idle_timeout_minutes": 60,
"admin_idle_timeout_minutes": 30
},
"ip_allow_list": [],
"last_changed": {
"at": "2026-11-14T00:43:12.308Z",
"by": "Dana Whitfield"
}
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Save security changes#
/v2/org/security/changes- ssoobject
13 fields
- enabledbooleanrequired
- protocolstring enumrequired
null"saml""oidc" - domainstring | nullrequired
- enforcedbooleanrequired
- provider_namestring | null
Identity provider shown to people ("Okta", "Microsoft Entra ID", "Google Workspace").
- metadata_urlstring | null
SAML: IdP metadata URL.
- issuerstring | null
OIDC: issuer URL and client id.
- client_idstring | null
- acs_urlstring
What ndStill gives the IdP (read-only).
- entity_idstring
- redirect_uristring
- last_tested_atTimestamp | null
- last_test_okboolean | null
- sessionobject
2 fields
- idle_timeout_minutesnumberrequired
- admin_idle_timeout_minutesnumberrequired
- scimobject
6 fields
- enabledbooleanrequired
- last_sync_atTimestamp | nullrequired
- endpointstring
- token_prefixstring | null
First characters of the current bearer token; the token itself is shown once.
- users_syncednumber
- groups_syncednumber
- passkeys_requiredboolean
- step_upobject
5 fields
- org_freezebooleanrequired
- policy_activationbooleanrequired
- approvals_aboveMoney | nullrequired
An amount: integer minor units + asset.
Money: 2 fields
- amountnumberrequired
- assetAssetCoderequired
"USD""USDC""EUR""GBP"
- payoutsbooleanrequired
- card_revealbooleanrequired
- chat_approvalsobject
Approving from WhatsApp or Slack, for the whole org. Each person links their own chat (Your login) and picks their own in-chat limit, never above `max_in_chat`. Above a person's limit, and for anything that needs a passkey or two people, the chat's Approve button opens a one-time link that asks for a passkey.
3 fields
- whatsappbooleanrequired
- slackbooleanrequired
- max_in_chatMoneyrequired
An amount: integer minor units + asset.
Money: 2 fields
- amountnumberrequired
- assetAssetCoderequired
"USD""USDC""EUR""GBP"
- ip_allow_liststring[]
- passkey_assertionstring
The same SecuritySettings object as Get security settings.
- 400invalid_request
A field is missing or invalid; fields names each one.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 409conflict
The object changed or already exists, or the Idempotency-Key was reused with a different body.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X POST "https://api.ndstill.com/v2/org/security/changes" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"step_up": "passkey_assertion_from_webauthn"
}'{
"object": "error",
"type": "step_up_required",
"code": "step_up_required",
"message": "This change needs a fresh passkey check. Confirm with your passkey and try again.",
"request_id": "req_649f6871b81fe2a59ff0"
}The mock answered this sample with an error; its message says why. Adjust the request in Try it below.
Runs against the in-browser mock with a test key. Nothing leaves your browser.
Rotate the SCIM token#
/v2/org/security/scim/token- step_upstring
- object"scim_token"
- tokenstring
- prefixstring
- endpointstring
- created_atTimestamp
- 400invalid_request
A field is missing or invalid; fields names each one.
- 400step_up_required
A person must confirm with a passkey first, when the org requires it.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 409conflict
The object changed or already exists, or the Idempotency-Key was reused with a different body.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X POST "https://api.ndstill.com/v2/org/security/scim/token" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{}'Runs against the in-browser mock with a test key. Nothing leaves your browser.
Test single sign-on#
/v2/org/security/sso/test- protocolstring enumrequired
"saml""oidc" - domainstringrequired
- metadata_urlstring | null
- issuerstring | null
- client_idstring | null
- object"sso_test"
- okboolean
- checksobject[]
3 fields
- namestring
- okboolean
- messagestring
- tested_atTimestamp
- 400invalid_request
A field is missing or invalid; fields names each one.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 409conflict
The object changed or already exists, or the Idempotency-Key was reused with a different body.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X POST "https://api.ndstill.com/v2/org/security/sso/test" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"protocol": "saml",
"domain": "example"
}'{
"object": "sso_test",
"ok": false,
"checks": [
{
"name": "Email domain",
"ok": false,
"message": "Enter a domain like acme.com."
},
{
"name": "Metadata",
"ok": false,
"message": "The metadata URL must start with https://."
},
{
"name": "Test sign-in",
"ok": false,
"message": "Fix the items above, then test again."
}
],
"tested_at": "2026-11-23T00:43:13.675Z"
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Update org settings#
/v2/org/settings- namestring
- time_zonestring
- default_asset"USD"
- statement_descriptorstring
- show_name_to_sellersboolean
- slugstring
The same Org object as Get the org.
- 400invalid_request
A field is missing or invalid; fields names each one.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X PATCH "https://api.ndstill.com/v2/org/settings" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Content-Type: application/json" \
-d '{}'{
"id": "org_A99F918124609C9DAAACB209D8",
"object": "org",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2025-09-29T00:43:11.374Z",
"name": "Docs example",
"slug": "acme-robotics",
"kind": "business",
"platform_id": null,
"status": "active",
"plan": "growth",
"features": {
"accounts": true,
"accept": false,
"platform": false
},
"home_cell": "us-east-1 (demo)",
"time_zone": "example",
"default_asset": "USD",
"accent": "default",
"updated_at": "2026-11-23T00:43:13.673Z",
"show_name_to_sellers": true
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Transfer ownership#
/v2/org/transfer-ownership- member_idIdrequired
- step_upstring
- idId
- object"membership"
- org_idId
- created_atTimestamp
- updated_atTimestampoptional
- test_modebooleanoptional
True for test-mode objects (simulations, sandbox).
- user_idId
- userobject
4 fields
- idId
- namestring
- emailstring
- avatar_initialsstring
- roleRole
"owner""admin""approver""finance""developer""viewer" - team_idsstring[]
- scopesstring[]
Extra scopes beyond the role (e.g. approver for team_x only).
- statusstring enum
"active""invited""suspended" - invited_byRef | nulloptional
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- last_active_atTimestamp | null
- mfastring enum
"passkey""totp""none"
- 400invalid_request
A field is missing or invalid; fields names each one.
- 400step_up_required
A person must confirm with a passkey first, when the org requires it.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 409conflict
The object changed or already exists, or the Idempotency-Key was reused with a different body.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X POST "https://api.ndstill.com/v2/org/transfer-ownership" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"member_id": "mem_01M82XPRMS4TE6PC3G058T1N4J"
}'Runs against the in-browser mock with a test key. Nothing leaves your browser.