GitBook API API reference CollectionsCollection teams Allocate team-based permissions to your collections.
Assign entire teams to a collection for easier role and permission management. Perfect for larger organizations looking to streamline content access.
List a collection team permissions
get
https://api.gitbook.com/v1 /collections/ {collectionId} /permissions/teams
collectionId string required
The unique id of the collection
page string optional
Identifier of the page results to fetch.
limit number · max: 1000 optional
The number of results per page
Copy curl -L \
--url 'https://api.gitbook.com/v1/collections/{collectionId}/permissions/teams' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
Copy {
"next": {
"page": "text"
},
"count": 1,
"items": [
{
"permission": "admin",
"team": {
"object": "team",
"id": "text",
"title": "text",
"members": 1,
"spaces": 1,
"createdAt": "2025-04-18T07:06:35.033Z"
}
}
]
}
Remove a team from a collection
delete
https://api.gitbook.com/v1 /collections/ {collectionId} /permissions/teams/ {teamId}
collectionId string required
The unique id of the collection
teamId string required
The unique ID of the Team
Copy curl -L \
--request DELETE \
--url 'https://api.gitbook.com/v1/collections/{collectionId}/permissions/teams/{teamId}' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
Update a collection team permission
patch
https://api.gitbook.com/v1 /collections/ {collectionId} /permissions/teams/ {teamId}
collectionId string required
The unique id of the collection
teamId string required
The unique ID of the Team
role one of optional
The role of a member in an organization, null for guests
"The role of a member in an organization.
"admin": Can administrate the content: create, delete spaces, ...
"create": Can create content.
"review": Can review content.
"edit": Can edit the content (live or change requests).
"comment": Can access the content and its discussions.
"read": Can access the content, but cannot update it in any way.
Copy curl -L \
--request PATCH \
--url 'https://api.gitbook.com/v1/collections/{collectionId}/permissions/teams/{teamId}' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"role": "admin"
}'