Your login API
The signed-in person: passkeys, sessions, notification preferences and sign-in discovery.
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.
Create a chat link#
/v2/me/chat-links- channelChatChannelrequired
"whatsapp""slack" - phonestring
- approve_in_chat_up_toMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumberrequired
- assetAssetCoderequired
"USD""USDC""EUR""GBP"
- idId
- object"chat_link"
- channelChatChannel
"whatsapp""slack" - statusstring enum
pending: the code was sent and not confirmed yet.
"active""pending""revoked" - addressstring
Masked: "+1 ••• ••• 4821", or "@dana in Acme Robotics".
- approve_in_chat_up_toMoney
Tap Approve in the chat up to this amount. Above it the button opens a one-time link that asks for a passkey.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- created_atTimestamp
- verified_atTimestamp | null
- last_used_atTimestamp | null
- 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/me/chat-links" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"channel": "whatsapp"
}'{
"object": "error",
"type": "conflict",
"code": "channel_off",
"message": "Your org doesn't allow approvals in WhatsApp. An admin can turn it on in Org → Security.",
"request_id": "req_49b1c6eb42073a51e25e"
}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.
Create a passkey#
/v2/me/passkeys- namestringrequired
- attestationstringrequired
- idId
- object"passkey"
- namestring
- providerstring
"iCloud Keychain", "Google Password Manager", "YubiKey 5C".
- syncedboolean
- created_atTimestamp
- last_used_atTimestamp | null
- 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/me/passkeys" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"name": "Docs example",
"attestation": "example"
}'{
"id": "pk_8610c55c07d9485bb54f",
"object": "passkey",
"name": "Docs example",
"provider": "This device",
"synced": true,
"created_at": "2026-11-23T00:43:13.438Z",
"last_used_at": "2026-11-23T00:43:13.438Z"
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
List chat links#
/v2/me/chat-links- channelstring enum
"whatsapp""slack" - cursorstring
- limitnumber
1–200, default 50.
- qstring
Free-text search over names, ids and descriptors.
- sortstring
Sort field, prefix "-" for descending ("-created_at" is the default).
- created_gteTimestamp
created_at >= (ISO).
- created_lteTimestamp
created_at <= (ISO).
Returns a list envelope: object "list", data[], has_more, next_cursor (pass it back as cursor) and total when cheap to count. Items:
The same ChatLink object as Create a chat link.
- 400invalid_request
A query parameter is invalid.
- 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/me/chat-links?limit=2" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "list",
"data": [],
"has_more": false,
"next_cursor": null,
"total": 0
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
List chat messages#
/v2/me/chat-messages- link_idId
- subject_idId
- subject_kindstring enum
"approval""payout""refund" - statusstring enum
"delivered""read""awaiting_passkey""answered""expired" - cursorstring
- limitnumber
1–200, default 50.
- qstring
Free-text search over names, ids and descriptors.
- sortstring
Sort field, prefix "-" for descending ("-created_at" is the default).
- created_gteTimestamp
created_at >= (ISO).
- created_lteTimestamp
created_at <= (ISO).
Returns a list envelope: object "list", data[], has_more, next_cursor (pass it back as cursor) and total when cheap to count. Items:
- idId
- object"chat_message"
- channelChatChannel
"whatsapp""slack" - link_idId
- subjectobject
What the message asks you to decide.
5 fields
- kindstring enum
"approval""payout""refund" - idId
- amountMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- titlestring
- detailstring
- linesstring[]
The message as it reads in the chat, one line per entry.
- buttonsobject[]
2 fields
- actionstring enum
"open""approve""reject" - labelstring
- approvestring enum
Whether Approve works right in the chat, or opens a one-time passkey link.
"in_chat""passkey_link" - approve_notestring
Why it needs the link, in plain words (over your in-chat limit, needs two people, payouts always do).
- sent_atTimestamp
- statusstring enum
"delivered""read""awaiting_passkey""answered""expired" - answerobject | null
3 fields
- decisionstring enum
"approve""reject" - atTimestamp
- viastring enum
"passkey_link""chat"
- secure_linkobject | null
Set once Approve was tapped on a message that needs a passkey: the link works once and expires.
3 fields
- urlstring
- expires_atTimestamp
- usedboolean
- 400invalid_request
A query parameter is invalid.
- 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/me/chat-messages?limit=2" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "list",
"data": [],
"has_more": false,
"next_cursor": null,
"total": 0
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
List your passkeys#
/v2/me/passkeys- cursorstring
- limitnumber
1–200, default 50.
- qstring
Free-text search over names, ids and descriptors.
- sortstring
Sort field, prefix "-" for descending ("-created_at" is the default).
- created_gteTimestamp
created_at >= (ISO).
- created_lteTimestamp
created_at <= (ISO).
Returns a list envelope: object "list", data[], has_more, next_cursor (pass it back as cursor) and total when cheap to count. Items:
The same Passkey object as Create a passkey.
- 400invalid_request
A query parameter is invalid.
- 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/me/passkeys?limit=2" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "list",
"data": [
{
"id": "pk_b5f7187b7c3926097fee",
"object": "passkey",
"name": "MacBook Pro",
"provider": "iCloud Keychain",
"synced": true,
"created_at": "2025-10-19T00:43:11.374Z",
"last_used_at": "2026-11-23T00:18:12.495Z"
},
{
"id": "pk_4c71ef45151b6055aa77",
"object": "passkey",
"name": "iPhone 16 Pro",
"provider": "iCloud Keychain",
"synced": true,
"created_at": "2025-10-21T00:43:11.374Z",
"last_used_at": "2026-11-22T04:43:12.495Z"
}
],
"has_more": true,
"next_cursor": "Mg==",
"total": 3
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
List your sessions#
/v2/me/sessions- cursorstring
- limitnumber
1–200, default 50.
- qstring
Free-text search over names, ids and descriptors.
- sortstring
Sort field, prefix "-" for descending ("-created_at" is the default).
- created_gteTimestamp
created_at >= (ISO).
- created_lteTimestamp
created_at <= (ISO).
Returns a list envelope: object "list", data[], has_more, next_cursor (pass it back as cursor) and total when cheap to count. Items:
- idId
- object"login_session"
- devicestring
- browserstring
- osstring
- locationstring
- ipstring
- methodstring enum
"passkey""sso""magic_link""password" - created_atTimestamp
- last_seen_atTimestamp
- currentboolean
- 400invalid_request
A query parameter is invalid.
- 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/me/sessions?limit=2" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "list",
"data": [
{
"id": "ses_c568589839e34da5cf71",
"object": "login_session",
"device": "MacBook Pro",
"browser": "Chrome 142",
"os": "macOS 26",
"location": "San Francisco, US",
"ip": "198.51.100.24",
"method": "passkey",
"created_at": "2026-11-22T21:43:12.495Z",
"last_seen_at": "2026-11-23T00:43:12.495Z",
"current": true
},
{
"id": "ses_4c71ef45151b6055aa77",
"object": "login_session",
"device": "iPhone",
"browser": "ndStill app 2.4",
"os": "iOS 26",
"location": "San Francisco, US",
"ip": "198.51.100.77",
"method": "passkey",
"created_at": "2026-11-17T00:43:12.495Z",
"last_seen_at": "2026-11-23T00:03:12.495Z",
"current": false
}
],
"has_more": true,
"next_cursor": "Mg==",
"total": 3
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Update a chat link#
/v2/me/chat-links/{id}- idIdrequired
A prefixed ID from this org.
- approve_in_chat_up_toMoneyrequired
An amount: integer minor units + asset.
Money: 2 fields
- amountnumberrequired
- assetAssetCoderequired
"USD""USDC""EUR""GBP"
- step_upstring
The same ChatLink object as Create a chat link.
- 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.
- 404not_found
No object with that id in this org.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X PATCH "https://api.ndstill.com/v2/me/chat-links/{id}" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"Runs against the in-browser mock with a test key. Nothing leaves your browser.
Update a passkey#
/v2/me/passkeys/{id}- idIdrequired
A prefixed ID from this org.
- namestringrequired
The same Passkey object as Create a passkey.
- 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.
- 404not_found
No object with that id in this org.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X PATCH "https://api.ndstill.com/v2/me/passkeys/pk_b5f7187b7c3926097fee" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Content-Type: application/json" \
-d '{
"name": "Docs example"
}'{
"id": "pk_b5f7187b7c3926097fee",
"object": "passkey",
"name": "Docs example",
"provider": "iCloud Keychain",
"synced": true,
"created_at": "2025-10-19T00:43:11.374Z",
"last_used_at": "2026-11-23T00:18:12.495Z"
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Delete a chat link#
/v2/me/chat-links/{id}- idIdrequired
A prefixed ID from this org.
Returns the object as it was, with deleted: true.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 404not_found
No object with that id in this org.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X DELETE "https://api.ndstill.com/v2/me/chat-links/{id}" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"Runs against the in-browser mock with a test key. Nothing leaves your browser.
Delete a passkey#
/v2/me/passkeys/{id}- idIdrequired
A prefixed ID from this org.
Returns the object as it was, with deleted: true.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 404not_found
No object with that id in this org.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X DELETE "https://api.ndstill.com/v2/me/passkeys/pk_b5f7187b7c3926097fee" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "deleted",
"id": "pk_b5f7187b7c3926097fee"
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Delete a session#
/v2/me/sessions/{id}- idIdrequired
A prefixed ID from this org.
Returns the object as it was, with deleted: true.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 404not_found
No object with that id in this org.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X DELETE "https://api.ndstill.com/v2/me/sessions/ses_4c71ef45151b6055aa77" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "deleted",
"id": "ses_4c71ef45151b6055aa77"
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Discover how an email signs in#
/v2/auth/discover- emailstringrequired
- object"auth_discovery"
- emailstring
- domainstring
- methodstring enum
"passkey""sso""magic_link""password" - orgobject | null
2 fields
- namestring
- workspacestring enum
null"business""platform""seller""personal"
- ssoobject | null
3 fields
- protocolstring enum
"saml""oidc" - provider_namestring
- enforcedboolean
- has_passkeyboolean
- 400invalid_request
A query parameter is invalid.
- 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/auth/discover?email=dev%40example.com" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "auth_discovery",
"email": "dev@example.com",
"domain": "example.com",
"method": "magic_link",
"org": null,
"sso": null,
"has_passkey": false
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Get the signed-in person#
/v2/me- object"me"
- userobject
4 fields
- namestring
- emailstring
- idId
- avatar_initialsstring
- orgOrg
Org: 18 fields
- 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.
- roleRole
"owner""admin""approver""finance""developer""viewer" - permissionsPermission[]
- workspacesWorkspace[]
Workspace: 6 fields
- keyWorkspaceKey
"business""platform""seller""personal" - org_idId
- namestring
- kindOrgKind
"business""individual" - descriptionstring
One line for the switcher ("Busy business with 25 agents").
- roleRole
"owner""admin""approver""finance""developer""viewer"
- demoboolean
- 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/me" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "me",
"user": {
"id": "usr_01K7WYQ6MEYNYVHTQCVYZCTCDX",
"email": "dana.whitfield@acme-robotics.example",
"name": "Dana Whitfield",
"avatar_initials": "DW"
},
"org": {
"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"
},
"role": "owner",
"permissions": [
"payments.read",
"approvals.read",
"approvals.decide"
],
"workspaces": [
{
"key": "business",
"org_id": "org_A99F918124609C9DAAACB209D8",
"name": "Acme Robotics",
"kind": "business",
"description": "Busy business: 25 agents, 9 connected rails, Accept off",
"role": "owner"
},
{
"key": "seller",
"org_id": "org_443B247B2FC3D2A13FAC0AEF86",
"name": "Northwind Labs",
"kind": "business",
"description": "Business with Accept on: sells its data API to agents",
"role": "owner"
},
{
"key": "personal",
"org_id": "org_E0256B74CFCD72D5B45157840A",
"name": "Maya Chen",
"kind": "individual",
"description": "Personal workspace: 4 agents with allowances",
"role": "owner"
}
],
"demo": true
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Get login methods#
/v2/me/login-methods- object"login_methods"
- usernamestring | null
Unique across ndStill, 3 to 30 letters, numbers, dots or underscores. Sign in with it or your email.
- emailstring
- email_codeboolean
Sign in with a one-time code sent to your email.
- passwordobject
2 fields
- setboolean
- updated_atTimestamp | null
- authenticatorobject
2 fields
- enabledboolean
- added_atTimestamp | null
- recovery_codesobject
2 fields
- remainingnumber
- created_atTimestamp | null
- passkeysnumber
- second_steparray of string enum
A recovery code also works as the second step, once each.
"passkey""authenticator""email_code""whatsapp_code""recovery_code"
- 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/me/login-methods" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "login_methods",
"username": "dana.whitfield",
"email": "dana.whitfield@acme-robotics.example",
"email_code": true,
"password": {
"set": false,
"updated_at": null
},
"authenticator": {
"enabled": false,
"added_at": null
},
"recovery_codes": {
"remaining": 10,
"created_at": "2026-10-24T00:43:13.426Z"
},
"passkeys": 3,
"second_step": [
"passkey",
"email_code",
"recovery_code"
]
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Get your notification preferences#
/v2/me/notification-preferences- object"notification_prefs"
- emailstring
- channelsobject
4 fields
- whatsappobject
2 fields
- availableboolean
- detailstring | null
- slackobject
2 fields
- availableboolean
- detailstring | null
- pushobject
2 fields
- availableboolean
- detailstring | null
- emailobject
2 fields
- availableboolean
- detailstring | null
- topicsobject
7 fields
- approvalsobject
4 fields
- whatsappboolean
- slackboolean
- pushboolean
- emailboolean
- disputesobject
4 fields
- whatsappboolean
- slackboolean
- pushboolean
- emailboolean
- freezesobject
4 fields
- whatsappboolean
- slackboolean
- pushboolean
- emailboolean
- connectorsobject
4 fields
- whatsappboolean
- slackboolean
- pushboolean
- emailboolean
- budgetsobject
4 fields
- whatsappboolean
- slackboolean
- pushboolean
- emailboolean
- reconciliationobject
4 fields
- whatsappboolean
- slackboolean
- pushboolean
- emailboolean
- productobject
4 fields
- whatsappboolean
- slackboolean
- pushboolean
- emailboolean
- quiet_hoursobject
5 fields
- enabledboolean
- fromstring
- tostring
- time_zonestring
- urgent_aboveMoney | null
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- digeststring enum
"weekly""daily""off"
- 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/me/notification-preferences" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "notification_prefs",
"email": "dana.whitfield@acme-robotics.example",
"channels": {
"email": {
"available": true,
"detail": "dana.whitfield@acme-robotics.example"
},
"push": {
"available": true,
"detail": "ndStill app on iPhone"
},
"slack": {
"available": true,
"detail": "#acme-robotics-approvals"
},
"whatsapp": {
"available": false,
"detail": "Your org turned off WhatsApp."
}
},
"topics": {
"approvals": {
"email": true,
"push": true,
"slack": true,
"whatsapp": false
},
"freezes": {
"email": true,
"push": true,
"slack": true,
"whatsapp": false
},
"connectors": {
"email": true,
"push": false,
"slack": true,
"whatsapp": false
},
"budgets": {
"email": true,
"push": true,
"slack": false,
"whatsapp": false
},
"reconciliation": {
"email": true,
"push": false,
"slack": false,
"whatsapp": false
},
"disputes": {
"email": true,
"push": false,
"slack": false,
"whatsapp": false
},
"product": {
"email": false,
"push": false,
"slack": false,
"whatsapp": false
}
},
"quiet_hours": {
"enabled": false,
"from": "22:00",
"to": "07:00",
"time_zone": "America/Los_Angeles",
"urgent_above": {
"amount": 50000,
"asset": "USD"
}
},
"digest": "daily"
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Start authenticator#
/v2/me/authenticator- object"authenticator_setup"
- secretstring
- otpauth_uristring
- expires_atTimestamp
- 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/me/authenticator" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)"{
"object": "authenticator_setup",
"secret": "B5347FFBQ7354C35QRED5A2BDB5ER2C5",
"otpauth_uri": "otpauth://totp/ndStill:dana.whitfield%40acme-robotics.example?secret=B5347FFBQ7354C35QRED5A2BDB5ER2C5&issuer=ndStill&digits=6&period=30",
"expires_at": "2026-11-23T00:53:13.683Z"
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Confirm authenticator#
/v2/me/authenticator/confirm- codestringrequired
The same LoginMethods object as Get login methods.
- 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/me/authenticator/confirm" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"code": "example"
}'{
"object": "error",
"type": "invalid_request",
"code": "invalid_request",
"message": "Enter the six-digit code from your authenticator app.",
"request_id": "req_7987bf1b00aafa29d409",
"fields": {
"code": "Six digits"
}
}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.
Remove authenticator#
/v2/me/authenticator/remove- step_upstring
The same LoginMethods object as Get login methods.
- 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/me/authenticator/remove" \
-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": "login_methods",
"username": "example",
"email": "dana.whitfield@acme-robotics.example",
"email_code": true,
"password": {
"set": false,
"updated_at": "2026-11-23T00:43:13.683Z"
},
"authenticator": {
"enabled": false,
"added_at": null
},
"recovery_codes": {
"remaining": 10,
"created_at": "2026-10-24T00:43:13.426Z"
},
"passkeys": 3,
"second_step": [
"passkey",
"email_code",
"recovery_code"
]
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Verify a chat link#
/v2/me/chat-links/{id}/verify- idIdrequired
A prefixed ID from this org.
- codestringrequired
The same ChatLink object as Create a chat link.
- 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.
- 404not_found
No object with that id in this org.
- 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/me/chat-links/{id}/verify" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)"Runs against the in-browser mock with a test key. Nothing leaves your browser.
Reply a chat message#
/v2/me/chat-messages/{id}/reply- idIdrequired
A prefixed ID from this org.
- decisionstring enumrequired
"approve""reject" - step_upstring
The same ChatMessage object as List chat messages.
- 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.
- 404not_found
No object with that id in this org.
- 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/me/chat-messages/{id}/reply" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)"Runs against the in-browser mock with a test key. Nothing leaves your browser.
Update notification preferences#
/v2/me/notification-preferences- topicsobject
7 fields
- approvalsobjectrequired
4 fields
- whatsappbooleanrequired
- slackbooleanrequired
- pushbooleanrequired
- emailbooleanrequired
- disputesobjectrequired
4 fields
- whatsappbooleanrequired
- slackbooleanrequired
- pushbooleanrequired
- emailbooleanrequired
- freezesobjectrequired
4 fields
- whatsappbooleanrequired
- slackbooleanrequired
- pushbooleanrequired
- emailbooleanrequired
- connectorsobjectrequired
4 fields
- whatsappbooleanrequired
- slackbooleanrequired
- pushbooleanrequired
- emailbooleanrequired
- budgetsobjectrequired
4 fields
- whatsappbooleanrequired
- slackbooleanrequired
- pushbooleanrequired
- emailbooleanrequired
- reconciliationobjectrequired
4 fields
- whatsappbooleanrequired
- slackbooleanrequired
- pushbooleanrequired
- emailbooleanrequired
- productobjectrequired
4 fields
- whatsappbooleanrequired
- slackbooleanrequired
- pushbooleanrequired
- emailbooleanrequired
- quiet_hoursobject
5 fields
- enabledbooleanrequired
- fromstringrequired
- tostringrequired
- time_zonestringrequired
- urgent_aboveMoney | nullrequired
An amount: integer minor units + asset.
Money: 2 fields
- amountnumberrequired
- assetAssetCoderequired
"USD""USDC""EUR""GBP"
- digeststring enum
"weekly""daily""off"
The same NotificationPrefs object as Get your notification preferences.
- 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/me/notification-preferences" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Content-Type: application/json" \
-d '{}'{
"object": "notification_prefs",
"email": "dana.whitfield@acme-robotics.example",
"channels": {
"email": {
"available": true,
"detail": "dana.whitfield@acme-robotics.example"
},
"push": {
"available": true,
"detail": "ndStill app on iPhone"
},
"slack": {
"available": true,
"detail": "#acme-robotics-approvals"
},
"whatsapp": {
"available": false,
"detail": "Your org turned off WhatsApp."
}
},
"topics": {
"approvals": {
"email": true,
"push": true,
"slack": true,
"whatsapp": false
},
"freezes": {
"email": true,
"push": true,
"slack": true,
"whatsapp": false
},
"connectors": {
"email": true,
"push": false,
"slack": true,
"whatsapp": false
},
"budgets": {
"email": true,
"push": true,
"slack": false,
"whatsapp": false
},
"reconciliation": {
"email": true,
"push": false,
"slack": false,
"whatsapp": false
},
"disputes": {
"email": true,
"push": false,
"slack": false,
"whatsapp": false
},
"product": {
"email": false,
"push": false,
"slack": false,
"whatsapp": false
}
},
"quiet_hours": {
"enabled": false,
"from": "22:00",
"to": "07:00",
"time_zone": "America/Los_Angeles",
"urgent_above": {
"amount": 50000,
"asset": "USD"
}
},
"digest": "daily"
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Set password login methods#
/v2/me/password- passwordstringrequired
- current_passwordstring
- step_upstring
The same LoginMethods object as Get login methods.
- 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/me/password" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"password": "example",
"step_up": "passkey_assertion_from_webauthn"
}'{
"object": "error",
"type": "invalid_request",
"code": "invalid_request",
"message": "Pick a stronger password.",
"request_id": "req_b78c4a2acff2d32b9070",
"fields": {
"password": "At least 12 characters."
}
}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.
Remove password login methods#
/v2/me/password/remove- step_upstring
The same LoginMethods object as Get login methods.
- 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/me/password/remove" \
-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": "login_methods",
"username": "example",
"email": "dana.whitfield@acme-robotics.example",
"email_code": true,
"password": {
"set": false,
"updated_at": "2026-11-23T00:43:13.683Z"
},
"authenticator": {
"enabled": false,
"added_at": null
},
"recovery_codes": {
"remaining": 10,
"created_at": "2026-10-24T00:43:13.426Z"
},
"passkeys": 3,
"second_step": [
"passkey",
"email_code",
"recovery_code"
]
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Regenerate recovery codes#
/v2/me/recovery-codes- step_upstring
- object"recovery_codes"
- codesstring[]
- created_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/me/recovery-codes" \
-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": "recovery_codes",
"codes": [
"9EAD-7F1F",
"9DAD-7D8C",
"A0AD-8245"
],
"created_at": "2026-11-23T00:43:13.685Z"
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Sign out other sessions#
/v2/me/sessions/revoke-others- object"sessions_revoked"
- revokednumber
- 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/me/sessions/revoke-others" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)"Runs against the in-browser mock with a test key. Nothing leaves your browser.
Set username login methods#
/v2/me/username- usernamestringrequired
The same LoginMethods object as Get login methods.
- 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/me/username" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"username": "example"
}'{
"object": "login_methods",
"username": "example",
"email": "dana.whitfield@acme-robotics.example",
"email_code": true,
"password": {
"set": false,
"updated_at": null
},
"authenticator": {
"enabled": false,
"added_at": null
},
"recovery_codes": {
"remaining": 10,
"created_at": "2026-10-24T00:43:13.426Z"
},
"passkeys": 3,
"second_step": [
"passkey",
"email_code",
"recovery_code"
]
}Runs against the in-browser mock with a test key. Nothing leaves your browser.