Teams
Create and manage teams as reusable groups of users.
Last updated
Was this helpful?
Create and manage teams as reusable groups of users.
Last updated
Was this helpful?
Was this helpful?
Teams offer a convenient way to assign roles and access to multiple users at once. This helps maintain large-scale projects more efficiently by reducing overhead in user-by-user management.
The unique id of the organization
Identifier of the page results to fetch.
The number of results per page
The unique identifier of a member of the organization. Only teams they can manage will be returned.
If provided, only teams whose name contains the given parameter will be returned. Case insensitive.
OK
GET /v1/orgs/{organizationId}/teams HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
OK
{
"next": {
"page": "text"
},
"count": 1,
"items": [
{
"object": "team",
"id": "text",
"title": "text",
"members": 1,
"spaces": 1,
"createdAt": "2025-10-24T19:46:05.903Z",
"permissions": {
"admin": true,
"view": true
}
}
]
}The unique id of the organization
Title of the team
A list of organization member identifiers
Team has been created
PUT /v1/orgs/{organizationId}/teams HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 35
{
"title": "text",
"members": [
"text"
]
}Team has been created
{
"object": "team",
"id": "text",
"title": "text",
"members": 1,
"spaces": 1,
"createdAt": "2025-10-24T19:46:05.903Z",
"permissions": {
"admin": true,
"view": true
}
}The unique id of the organization
The unique ID of the Team
OK
GET /v1/orgs/{organizationId}/teams/{teamId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
OK
{
"object": "team",
"id": "text",
"title": "text",
"members": 1,
"spaces": 1,
"createdAt": "2025-10-24T19:46:05.903Z",
"permissions": {
"admin": true,
"view": true
}
}The unique id of the organization
The unique ID of the Team
The team did not exist in the organization.
The team was deleted from the organization.
DELETE /v1/orgs/{organizationId}/teams/{teamId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
The unique id of the organization
The unique ID of the Team
Title of the team
The team has been updated
PATCH /v1/orgs/{organizationId}/teams/{teamId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"title": "text"
}The team has been updated
{
"object": "team",
"id": "text",
"title": "text",
"members": 1,
"spaces": 1,
"createdAt": "2025-10-24T19:46:05.903Z",
"permissions": {
"admin": true,
"view": true
}
}