GitBook Organization Members API

Manage members and their roles within an organization.

GitHub OpenAPI

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /orgs/{organizationId}/members List members of an organization · List all organization members #
Ask an LLM
“Who are the members of my GitBook organization?”
“Can I list only the admins of an organization?”
Tell an agent
List members of organization {organizationId}.
Show {role} members in organization {organizationId}.
GET /orgs/{organizationId}/members/{userId} Get an organization member · Get an organization member by its ID #
Ask an LLM
“What role does a specific member have in my organization?”
“Can I look up one organization member by ID?”
Tell an agent
Get member {userId} in organization {organizationId}.
Show the role of user {userId} in {organizationId}.
PATCH /orgs/{organizationId}/members/{userId} Change a member's role in an organization · Update an organization member #
Ask an LLM
“Can I promote a member to admin in my organization?”
“How do I change a member's role?”
Tell an agent
Set member {userId} in organization {organizationId} to role {role}.
Make user {userId} an admin in {organizationId}.
DELETE /orgs/{organizationId}/members/{userId} Remove a member from an organization · Remove an organization member or request an organization admin to do it #
Ask an LLM
“How do I remove someone from my organization?”
“Can I remove a member myself or does an admin have to?”
Tell an agent destructive · confirm first
Remove member {userId} from organization {organizationId}.
Kick user {userId} out of {organizationId}.
POST /orgs/{organizationId}/ping Ping an organization to record a member's last seen time · Update an organization member last seen at #
Ask an LLM
“Can I record that a member was active in my organization?”
“How do I update an organization member's last seen time?”
Tell an agent
Ping organization {organizationId} to record a member's last seen time.
Mark that someone was active in {organizationId}.
POST /orgs/{organizationId}/members/{userId}/sso Make a user a single sign-on member of an organization · Set a user as an SSO member of an organization #
Ask an LLM
“How do I make a user an SSO member of my organization?”
“Can I set a user as a single sign-on member?”
Tell an agent
Set user {userId} as an SSO member of organization {organizationId}.
Make {userId} a single sign-on member of {organizationId}.
GET /orgs/{organizationId}/members/{userId}/spaces List a member's space permissions in an organization · List an organization member space permissions #
Ask an LLM
“Which spaces can a member edit in my organization?”
“What space permissions does a user have?”
Tell an agent
List space permissions for member {userId} in organization {organizationId}.
Show what {userId} can edit in {organizationId}.
GET /orgs/{organizationId}/members/{userId}/teams List the teams a member belongs to in an organization · List all organization member teams #
Ask an LLM
“Which teams is a member part of in my organization?”
“Can I search an organization member's teams by name?”
Tell an agent
List teams for member {userId} in organization {organizationId}.
Find teams named {title} that member {userId} belongs to in {organizationId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/gitbook:gitbook-organization-members-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

gitbook-organization-members-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: GitBook Organization Members API
  description: The GitBook API
  termsOfService: https://policies.gitbook.com
  contact:
    name: API Support
    url: https://gitbook.com/support
    email: support@gitbook.com
  version: 0.0.1-beta
servers:
- url: '{host}/v1'
  variables:
    host:
      default: https://api.gitbook.com
security:
- user: []
- user-internal: []
- user-staff: []
- integration: []
- integration-installation: []
tags:


# --- truncated at 32 KB (38 KB total) ---
# Full source: https://artifacts.apis.io/gitbook/openapi/gitbook-organization-members-api-openapi.yml