Members and roles API
People in the org, their roles and invitations.
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 member#
/v2/members- emailstringrequired
- roleRolerequired
"owner""admin""approver""finance""developer""viewer" - team_idsstring[]
- 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.
- 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/members" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"email": "new.dev@example.com",
"role": "developer"
}'{
"id": "mem_01M82XPRMS4TE6PC3G058T1N4J",
"object": "membership",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-11-23T00:43:13.433Z",
"user_id": "usr_01M82XPRMSPHE3D1NMA6RDYYB0",
"user": {
"id": "usr_01M82XPRMSPHE3D1NMA6RDYYB0",
"name": "New Dev",
"email": "new.dev@example.com",
"avatar_initials": "ND"
},
"role": "developer",
"team_ids": [],
"scopes": [],
"status": "invited",
"invited_by": {
"id": "usr_01K7WYQ6MEYNYVHTQCVYZCTCDX",
"name": "You"
},
"last_active_at": null,
"mfa": "none"
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
List members#
/v2/members- rolestring
- team_idId
- statusstring enum
"active""invited""suspended" - 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 Membership object as Create a member.
- 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/members?limit=2" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "list",
"data": [
{
"id": "mem_01KGNM1HMER2DRFQ2V1X5CNND2",
"object": "membership",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-02-05T00:43:11.374Z",
"user_id": "usr_01KGNM1HMEKZR7Y7JAJD2M6PAB",
"user": {
"id": "usr_01KGNM1HMEKZR7Y7JAJD2M6PAB",
"name": "Ravi Menon",
"email": "ravi.menon@acme-robotics.example",
"avatar_initials": "RM"
},
"role": "viewer",
"team_ids": [
"team_01K84NXBMEZ26BQK7002WHPVTB"
],
"scopes": [],
"status": "invited",
"invited_by": {
"id": "usr_01K7WYQ6MEYNYVHTQCVYZCTCDX",
"name": "Dana Whitfield"
},
"last_active_at": null,
"mfa": "none"
},
{
"id": "mem_01KFVW2BMEGZVR13KPRS6YQAY7",
"object": "membership",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-01-26T00:43:11.374Z",
"user_id": "usr_01KFVW2BME4V25FHZYW4H3YE9M",
"user": {
"id": "usr_01KFVW2BME4V25FHZYW4H3YE9M",
"name": "Nora Quinn",
"email": "nora.quinn@acme-robotics.example",
"avatar_initials": "NQ"
},
"role": "viewer",
"team_ids": [
"team_01K9K129ME4AYMHG1X82H1CXCD"
],
"scopes": [],
"status": "active",
"invited_by": {
"id": "usr_01K7WYQ6MEYNYVHTQCVYZCTCDX",
"name": "Dana Whitfield"
},
"last_active_at": "2026-11-19T04:43:11.374Z",
"mfa": "passkey"
}
],
"has_more": true,
"next_cursor": "Mg==",
"total": 13
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
List roles#
/v2/roles- 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:
- idRole
"owner""admin""approver""finance""developer""viewer" - object"role"
- labelstring
- summarystring
- permissionsPermission[]
- member_countnumber
- 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/roles?limit=2" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "list",
"data": [
{
"id": "admin",
"object": "role",
"label": "Admin",
"summary": "Everything except billing ownership and deleting the org.",
"permissions": [
"payments.read",
"approvals.read",
"approvals.decide"
],
"member_count": 2
},
{
"id": "approver",
"object": "role",
"label": "Approver",
"summary": "Approves or rejects within assigned routes; freezes agents they approve for.",
"permissions": [
"payments.read",
"approvals.read",
"approvals.decide"
],
"member_count": 2
}
],
"has_more": true,
"next_cursor": "Mg==",
"total": 6
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
List users#
/v2/users- 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"user"
- emailstring
- namestring
- avatar_initialsstring
- passkeysobject[]
4 fields
- idId
- namestring
- created_atTimestamp
- last_used_atTimestamp | null
- created_atTimestamp
- 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/users?limit=2" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "list",
"data": [
{
"id": "usr_01KGNM1HMEKZR7Y7JAJD2M6PAB",
"object": "user",
"email": "ravi.menon@acme-robotics.example",
"name": "Ravi Menon",
"avatar_initials": "RM",
"passkeys": [],
"created_at": "2026-02-05T00:43:11.374Z"
},
{
"id": "usr_01KFVW2BME4V25FHZYW4H3YE9M",
"object": "user",
"email": "nora.quinn@acme-robotics.example",
"name": "Nora Quinn",
"avatar_initials": "NQ",
"passkeys": [
{
"id": "usr_01KFVW2BMETJE1V9YYAR2K2513",
"name": "iPhone",
"created_at": "2026-01-26T00:43:11.374Z",
"last_used_at": "2026-11-20T02:43:11.374Z"
}
],
"created_at": "2026-01-26T00:43:11.374Z"
}
],
"has_more": true,
"next_cursor": "Mg==",
"total": 13
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Retrieve a member#
/v2/members/{id}- idIdrequired
A prefixed ID from this org.
The same Membership object as Create a member.
- 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 GET "https://api.ndstill.com/v2/members/mem_01KGNM1HMER2DRFQ2V1X5CNND2" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"id": "mem_01KGNM1HMER2DRFQ2V1X5CNND2",
"object": "membership",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-02-05T00:43:11.374Z",
"user_id": "usr_01KGNM1HMEKZR7Y7JAJD2M6PAB",
"user": {
"id": "usr_01KGNM1HMEKZR7Y7JAJD2M6PAB",
"name": "Ravi Menon",
"email": "ravi.menon@acme-robotics.example",
"avatar_initials": "RM"
},
"role": "viewer",
"team_ids": [
"team_01K84NXBMEZ26BQK7002WHPVTB"
],
"scopes": [],
"status": "invited",
"invited_by": {
"id": "usr_01K7WYQ6MEYNYVHTQCVYZCTCDX",
"name": "Dana Whitfield"
},
"last_active_at": null,
"mfa": "none"
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Retrieve a role#
/v2/roles/{id}- idIdrequired
A prefixed ID from this org.
The same RoleDefinition object as List roles.
- 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 GET "https://api.ndstill.com/v2/roles/admin" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"id": "admin",
"object": "role",
"label": "Admin",
"summary": "Everything except billing ownership and deleting the org.",
"permissions": [
"payments.read",
"approvals.read",
"approvals.decide"
],
"member_count": 2
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Retrieve a user#
/v2/users/{id}- idIdrequired
A prefixed ID from this org.
The same User object as List users.
- 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 GET "https://api.ndstill.com/v2/users/usr_01KGNM1HMEKZR7Y7JAJD2M6PAB" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"id": "usr_01KGNM1HMEKZR7Y7JAJD2M6PAB",
"object": "user",
"email": "ravi.menon@acme-robotics.example",
"name": "Ravi Menon",
"avatar_initials": "RM",
"passkeys": [],
"created_at": "2026-02-05T00:43:11.374Z"
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Update a member#
/v2/members/{id}- idIdrequired
A prefixed ID from this org.
- rolestring enum
"owner""admin""approver""finance""developer""viewer" - team_idsstring[]
- statusstring enum
"active""suspended" - step_upstring
The same Membership object as Create a member.
- 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/members/mem_01M82XPRMS4TE6PC3G058T1N4J" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Content-Type: application/json" \
-d '{}'{
"id": "mem_01M82XPRMS4TE6PC3G058T1N4J",
"object": "membership",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-11-23T00:43:13.433Z",
"user_id": "usr_01M82XPRMSPHE3D1NMA6RDYYB0",
"user": {
"id": "usr_01M82XPRMSPHE3D1NMA6RDYYB0",
"name": "New Dev",
"email": "new.dev@example.com",
"avatar_initials": "ND"
},
"role": "developer",
"team_ids": [],
"scopes": [],
"status": "invited",
"invited_by": {
"id": "usr_01K7WYQ6MEYNYVHTQCVYZCTCDX",
"name": "You"
},
"last_active_at": null,
"mfa": "none",
"updated_at": "2026-11-23T00:43:13.434Z"
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Delete a member#
/v2/members/{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/members/mem_01M82XPRMS4TE6PC3G058T1N4J" \
-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.
Resend an invitation#
/v2/members/{id}/resend- idIdrequired
A prefixed ID from this org.
The same Membership object as Create a member.
- 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/members/mem_01M82XPRMS4TE6PC3G058T1N4J/resend" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)"{
"id": "mem_01M82XPRMS4TE6PC3G058T1N4J",
"object": "membership",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-11-23T00:43:13.433Z",
"user_id": "usr_01M82XPRMSPHE3D1NMA6RDYYB0",
"user": {
"id": "usr_01M82XPRMSPHE3D1NMA6RDYYB0",
"name": "New Dev",
"email": "new.dev@example.com",
"avatar_initials": "ND"
},
"role": "developer",
"team_ids": [],
"scopes": [],
"status": "invited",
"invited_by": {
"id": "usr_01K7WYQ6MEYNYVHTQCVYZCTCDX",
"name": "You"
},
"last_active_at": null,
"mfa": "none",
"updated_at": "2026-11-23T00:43:13.678Z"
}Runs against the in-browser mock with a test key. Nothing leaves your browser.