Skip to content
ndStill is in development. These docs describe the v2 API as designed; the SDKs and the hosted MCP server are previews and not generally available.
Docs

Members and roles API

People in the org, their roles and invitations.

10 endpointsGenerated from the typed registry

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#

POST/v2/members
Request body MemberCreate
  • emailstringrequired
  • roleRolerequired
    "owner""admin""approver""finance""developer""viewer"
  • team_idsstring[]
  • step_upstring
Response Membership
  • 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"
Errors
  • 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.

Example from the mock backend
Request
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"
  }'
Response 200
{
  "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"
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

List members#

GET/v2/members
Query parameters all optional
  • 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).

Response list of Membership

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.

Errors
  • 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.

Example from the mock backend
Request
curl -X GET "https://api.ndstill.com/v2/members?limit=2" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Response 200
{
  "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
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

List roles#

GET/v2/roles
Query parameters all optional
  • 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).

Response list of RoleDefinition

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
Errors
  • 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.

Example from the mock backend
Request
curl -X GET "https://api.ndstill.com/v2/roles?limit=2" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Response 200
{
  "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
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

List users#

GET/v2/users
Query parameters all optional
  • 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).

Response list of User

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
Errors
  • 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.

Example from the mock backend
Request
curl -X GET "https://api.ndstill.com/v2/users?limit=2" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Response 200
{
  "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
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Retrieve a member#

GET/v2/members/{id}
Path parameters
  • idIdrequired

    A prefixed ID from this org.

Response Membership

The same Membership object as Create a member.

Errors
  • 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.

Example from the mock backend
Request
curl -X GET "https://api.ndstill.com/v2/members/mem_01KGNM1HMER2DRFQ2V1X5CNND2" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Response 200
{
  "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"
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Retrieve a role#

GET/v2/roles/{id}
Path parameters
  • idIdrequired

    A prefixed ID from this org.

Response RoleDefinition

The same RoleDefinition object as List roles.

Errors
  • 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.

Example from the mock backend
Request
curl -X GET "https://api.ndstill.com/v2/roles/admin" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Response 200
{
  "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
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Retrieve a user#

GET/v2/users/{id}
Path parameters
  • idIdrequired

    A prefixed ID from this org.

Response User

The same User object as List users.

Errors
  • 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.

Example from the mock backend
Request
curl -X GET "https://api.ndstill.com/v2/users/usr_01KGNM1HMEKZR7Y7JAJD2M6PAB" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Response 200
{
  "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"
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Update a member#

PATCH/v2/members/{id}
Path parameters
  • idIdrequired

    A prefixed ID from this org.

Request body MemberUpdate
  • rolestring enum
    "owner""admin""approver""finance""developer""viewer"
  • team_idsstring[]
  • statusstring enum
    "active""suspended"
  • step_upstring
Response Membership

The same Membership object as Create a member.

Errors
  • 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.

Example from the mock backend
Request
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 '{}'
Response 200
{
  "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"
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Delete a member#

DEL/v2/members/{id}
Path parameters
  • idIdrequired

    A prefixed ID from this org.

Response the deleted object

Returns the object as it was, with deleted: true.

Errors
  • 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.

Example request only (not run: it changes the org for good)
Request
curl -X DELETE "https://api.ndstill.com/v2/members/mem_01M82XPRMS4TE6PC3G058T1N4J" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Resend an invitation#

POST/v2/members/{id}/resend
Path parameters
  • idIdrequired

    A prefixed ID from this org.

Response Membership

The same Membership object as Create a member.

Errors
  • 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.

Example from the mock backend
Request
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)"
Response 200
{
  "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"
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.