SSO
Configure Single Sign-On solutions to unify your organization's authentication.
Was this helpful?
Configure Single Sign-On solutions to unify your organization's authentication.
Was this helpful?
Was this helpful?
Tie GitBook into your corporate identity management and authentication providers (like SAML or OAuth). This centralizes user authentication and improves security.
Lists SAML providers configured for the specified organization.
The unique id of the organization
Identifier of the page results to fetch.
The number of results per page
OK
OK
The unique id of the organization
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.
SAML Provider created
SAML Provider created
The unique id of the organization
The unique id of the SAML provider
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.
SAML provider has been updated
{
"object": "saml-provider",
"id": "text",
"label": "text",
"ssoURL": "https://example.com",
"entityID": "text",
"certificate": "text",
"defaultTeam": {
"object": "team",
"id": "text",
"title": "text",
"members": 1,
"spaces": 1,
"createdAt": "2025-08-26T22:07:16.661Z",
"permissions": {
"admin": true,
"view": true
}
},
"defaultRole": "admin",
"createdAt": "2025-08-26T22:07:16.661Z",
"status": "active",
"service": {
"acsURL": "https://example.com",
"startURL": "https://example.com",
"entityID": "text"
},
"urls": {
"location": "https://example.com"
}
}
SAML provider has been updated
{
"object": "saml-provider",
"id": "text",
"label": "text",
"ssoURL": "https://example.com",
"entityID": "text",
"certificate": "text",
"defaultTeam": {
"object": "team",
"id": "text",
"title": "text",
"members": 1,
"spaces": 1,
"createdAt": "2025-08-26T22:07:16.661Z",
"permissions": {
"admin": true,
"view": true
}
},
"defaultRole": "admin",
"createdAt": "2025-08-26T22:07:16.661Z",
"status": "active",
"service": {
"acsURL": "https://example.com",
"startURL": "https://example.com",
"entityID": "text"
},
"urls": {
"location": "https://example.com"
}
}
{
"object": "subdomain",
"subdomain": "text",
"target": {
"type": "organization",
"organization": "text"
},
"isActive": true
}
GET /v1/orgs/{organizationId}/saml HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"next": {
"page": "text"
},
"count": 1,
"items": [
{
"object": "saml-provider",
"id": "text",
"label": "text",
"ssoURL": "https://example.com",
"entityID": "text",
"certificate": "text",
"defaultTeam": {
"object": "team",
"id": "text",
"title": "text",
"members": 1,
"spaces": 1,
"createdAt": "2025-08-26T22:07:16.661Z",
"permissions": {
"admin": true,
"view": true
}
},
"defaultRole": "admin",
"createdAt": "2025-08-26T22:07:16.661Z",
"status": "active",
"service": {
"acsURL": "https://example.com",
"startURL": "https://example.com",
"entityID": "text"
},
"urls": {
"location": "https://example.com"
}
}
]
}
POST /v1/orgs/{organizationId}/saml HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 129
{
"label": "text",
"entityID": "text",
"certificate": "text",
"ssoURL": "https://example.com",
"defaultTeam": "text",
"defaultRole": "admin"
}
GET /v1/orgs/{organizationId}/saml/{samlProviderId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"object": "saml-provider",
"id": "text",
"label": "text",
"ssoURL": "https://example.com",
"entityID": "text",
"certificate": "text",
"defaultTeam": {
"object": "team",
"id": "text",
"title": "text",
"members": 1,
"spaces": 1,
"createdAt": "2025-08-26T22:07:16.661Z",
"permissions": {
"admin": true,
"view": true
}
},
"defaultRole": "admin",
"createdAt": "2025-08-26T22:07:16.661Z",
"status": "active",
"service": {
"acsURL": "https://example.com",
"startURL": "https://example.com",
"entityID": "text"
},
"urls": {
"location": "https://example.com"
}
}
DELETE /v1/orgs/{organizationId}/saml/{samlProviderId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
PATCH /v1/orgs/{organizationId}/saml/{samlProviderId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 129
{
"label": "text",
"entityID": "text",
"certificate": "text",
"ssoURL": "https://example.com",
"defaultTeam": "text",
"defaultRole": "admin"
}
GET /v1/orgs/{organizationId}/sso HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"id": "text",
"label": "text",
"startURL": "https://example.com"
}
]
}