GitBook · OpenAPI Overlay 1.0.0
API Evangelist conversational phrasing for GitBook Space Permissions API
10 actions
10 updates
phrasing
extends
openapi/gitbook-space-permissions-api-openapi.yml
Generated by API Evangelist
Written by API Evangelist tooling for GitBook's API. It is a proposal applied on top of the contract, not a document GitBook publishes.
What the actions change
x-apievangelist-phrasing
Targets 10
$.info
$.paths['/spaces/{spaceId}/permissions'].post
$.paths['/spaces/{spaceId}/permissions/teams/{teamId}'].delete
$.paths['/spaces/{spaceId}/permissions/teams/{teamId}'].patch
$.paths['/spaces/{spaceId}/permissions/users'].get
$.paths['/spaces/{spaceId}/permissions/users/{userId}'].delete
$.paths['/spaces/{spaceId}/permissions/users/{userId}'].patch
$.paths['/spaces/{spaceId}/permissions/teams'].get
$.paths['/spaces/{spaceId}/permissions/aggregate'].get
$.paths['/collections/{collectionId}/permissions/aggregate'].get
OpenAPI Overlay
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
title: API Evangelist conversational phrasing for GitBook Space Permissions API
version: 1.0.0
extends: openapi/gitbook-space-permissions-api-openapi.yml
actions:
- target: $.info
update:
x-apievangelist-phrasing:
method: generated
generated: '2026-11-26'
generator: build-phrasing.py
label: Generated by API Evangelist
operations: 9
- target: $.paths['/spaces/{spaceId}/permissions'].post
update:
x-apievangelist-phrasing:
intent: Invite users or teams to a space
effect: write
questions:
- How do I invite someone to a private GitBook space?
- Can I invite a whole team to a space at once?
instructions:
- text: Invite me to the space as {role}.
slots:
role: requestBody.role
- text: Add this user to space {space} with role {role}.
slots:
space: path.spaceId
role: requestBody.role
method: generated
generated: '2026-11-26'
- target: $.paths['/spaces/{spaceId}/permissions/teams/{teamId}'].delete
update:
x-apievangelist-phrasing:
intent: Remove a team from a space
effect: destructive
questions:
- How do I revoke a team's access to a space?
- Can I remove an organization team from a space?
instructions:
- text: Remove team {teamId} from space {spaceId}.
slots:
teamId: path.teamId
spaceId: path.spaceId
- text: Revoke team {teamId}'s access to space {spaceId}.
slots:
teamId: path.teamId
spaceId: path.spaceId
method: generated
generated: '2026-11-26'
- target: $.paths['/spaces/{spaceId}/permissions/teams/{teamId}'].patch
update:
x-apievangelist-phrasing:
intent: Change a team's role in a space
effect: write
questions:
- How do I change a team's role in a space?
- Can I promote a team to editor in a space?
instructions:
- text: Set team {teamId} in space {spaceId} to role {role}.
slots:
teamId: path.teamId
spaceId: path.spaceId
role: requestBody.role
- text: Change team {teamId}'s permission in space {spaceId} to {role}.
slots:
teamId: path.teamId
spaceId: path.spaceId
role: requestBody.role
method: generated
generated: '2026-11-26'
- target: $.paths['/spaces/{spaceId}/permissions/users'].get
update:
x-apievangelist-phrasing:
intent: List users' permissions in a space
effect: read
questions:
- Which users have access to a space and what are their roles?
- Can I page through a space's user permissions?
instructions:
- text: List user permissions in space {spaceId}.
slots:
spaceId: path.spaceId
- text: Show the first {limit} users with their roles in space {spaceId}.
slots:
limit: query.limit
spaceId: path.spaceId
method: generated
generated: '2026-11-26'
- target: $.paths['/spaces/{spaceId}/permissions/users/{userId}'].delete
update:
x-apievangelist-phrasing:
intent: Remove a user from a space
effect: destructive
questions:
- How do I remove a user from a space?
- Can I revoke one teammate's access to a space?
instructions:
- text: Remove user {userId} from space {spaceId}.
slots:
userId: path.userId
spaceId: path.spaceId
- text: Revoke user {userId}'s access to space {spaceId}.
slots:
userId: path.userId
spaceId: path.spaceId
method: generated
generated: '2026-11-26'
- target: $.paths['/spaces/{spaceId}/permissions/users/{userId}'].patch
update:
x-apievangelist-phrasing:
intent: Change a user's role in a space
effect: write
questions:
- How do I change a user's role in a space?
- Can I make a teammate a viewer in a space?
instructions:
- text: Set user {userId} in space {spaceId} to role {role}.
slots:
userId: path.userId
spaceId: path.spaceId
role: requestBody.role
- text: Change user {userId}'s permission in space {spaceId} to {role}.
slots:
userId: path.userId
spaceId: path.spaceId
role: requestBody.role
method: generated
generated: '2026-11-26'
- target: $.paths['/spaces/{spaceId}/permissions/teams'].get
update:
x-apievangelist-phrasing:
intent: List teams' permissions in a space
effect: read
questions:
- Which teams have access to a space and what are their roles?
- Can I page through a space's team permissions?
instructions:
- text: List team permissions in space {spaceId}.
slots:
spaceId: path.spaceId
- text: Show the first {limit} teams with their roles in space {spaceId}.
slots:
limit: query.limit
spaceId: path.spaceId
method: generated
generated: '2026-11-26'
- target: $.paths['/spaces/{spaceId}/permissions/aggregate'].get
update:
x-apievangelist-phrasing:
intent: List all users' permissions in a space
effect: read
questions:
- Who has access to a space, regardless of role?
- Can I filter a space's users by role?
instructions:
- text: List every user's permission in space {spaceId}.
slots:
spaceId: path.spaceId
- text: Show users with role {role} in space {spaceId}.
slots:
role: query.role
spaceId: path.spaceId
method: generated
generated: '2026-11-26'
- target: $.paths['/collections/{collectionId}/permissions/aggregate'].get
update:
x-apievangelist-phrasing:
intent: List all users' permissions in a collection
effect: read
questions:
- Who has access to a collection and what are their roles?
- Can I filter a collection's users by role?
instructions:
- text: List every user's permission in collection {collectionId}.
slots:
collectionId: path.collectionId
- text: Show users with role {role} in collection {collectionId}.
slots:
role: query.role
collectionId: path.collectionId
method: generated
generated: '2026-11-26'
Work with this as data
Every overlay 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 openapi overlays
4 MCP tools reach this
find_overlaysBrowse and filter every overlay in the catalog.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.
Call it yourself
curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/gitbook-space-permissions-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?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.