Integrations
Install and handle third-party integrations for extended GitBook functionality.
Expand the capabilities of GitBook by connecting it with various external platforms—CRM, issue trackers, or CI/CD pipelines—through standardized integration endpoints.
Identifier of the page results to fetch.
The number of results per page
A search string to filter integrations by name
Filter the integrations by category
Filter the integrations by block's domains
^[a-zA-Z0-9-_.]+$
If true, returns only integrations with blocks. If false, returns only integrations without blocks.
If true, returns only integrations with contentSources. If false, returns only integrations without contentSources.
If defined, only list integrations owned by the given organization.
Filter the integrations by scope
The target on which the integration can operate and needs to be configured for
GET /v1/integrations HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Paginated list of integrations
{
"next": {
"page": "text"
},
"count": 1,
"items": [
{
"object": "integration",
"name": "text",
"version": 1,
"title": "text",
"description": "text",
"summary": "text",
"previewImages": [
"text"
],
"target": "all",
"verified": true,
"visibility": "public",
"scopes": [
"space:views:read"
],
"categories": [
"analytics"
],
"blocks": [
{
"id": "text",
"title": "text",
"description": "text",
"icon": "text",
"urlUnfurl": [
"text"
],
"markdown": {
"codeblock": "text",
"body": "text"
}
}
],
"contentSources": [
{
"id": "text",
"title": "text",
"description": "text",
"icon": "text",
"configuration": {
"componentId": "text"
}
}
],
"configurations": {
"account": {
"properties": {
"ANY_ADDITIONAL_PROPERTY": {
"title": "text",
"description": "text",
"type": "string",
"default": "text",
"completion_url": "text",
"enum": [
"text"
]
}
},
"required": [
"text"
]
},
"space": {
"properties": {
"ANY_ADDITIONAL_PROPERTY": {
"title": "text",
"description": "text",
"type": "string",
"default": "text",
"completion_url": "text",
"enum": [
"text"
]
}
},
"required": [
"text"
]
},
"site": {
"properties": {
"ANY_ADDITIONAL_PROPERTY": {
"title": "text",
"description": "text",
"type": "string",
"default": "text",
"completion_url": "text",
"enum": [
"text"
]
}
},
"required": [
"text"
]
}
},
"externalLinks": [
{
"url": "https://example.com",
"label": "text"
}
],
"owner": {
"object": "organization",
"id": "text",
"title": "text",
"createdAt": "2025-06-21T04:22:40.106Z",
"emailDomains": [
"text"
],
"hostname": "text",
"type": "business",
"useCase": "internalDocs",
"communityType": "nonProfit",
"defaultRole": "admin",
"defaultContent": {
"type": "site",
"site": "text"
},
"sso": true,
"ai": true,
"inviteLinks": true,
"plan": "free_2024",
"billing": {
"interval": "monthly",
"endDate": "2025-06-21T04:22:40.106Z",
"hasPaymentFailed": true,
"isScheduledToCancel": true
},
"urls": {
"location": "https://example.com",
"app": "https://example.com",
"logo": "https://example.com"
},
"trial": {
"status": "notapplicable",
"endDate": "2025-06-21T04:22:40.106Z",
"decision": "downgrade"
},
"customHostname": "text",
"blocked": {
"reason": "security"
},
"internal_billingMigration": {
"deadline": "2025-06-21T04:22:40.106Z",
"discountPercent": 1,
"discountEndDate": "2025-06-21T04:22:40.106Z"
},
"permissions": {
"view": true,
"admin": true,
"ownTeam": true,
"createContent": true,
"createOpenAPISpec": true,
"ingestConversations": true,
"viewBilling": true,
"listMembers": true,
"listTeams": true,
"listIntegrations": true
}
},
"urls": {
"location": "https://example.com",
"icon": "https://example.com",
"app": "https://example.com",
"assets": "https://example.com",
"publicEndpoint": "https://example.com"
},
"permissions": {
"admin": true,
"install": true
},
"contentSecurityPolicy": "text"
}
]
}
Name of the integration.
^[a-zA-Z0-9-_.]+$
GET /v1/integrations/{integrationName} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"object": "integration",
"name": "text",
"version": 1,
"title": "text",
"description": "text",
"summary": "text",
"previewImages": [
"text"
],
"target": "all",
"verified": true,
"visibility": "public",
"scopes": [
"space:views:read"
],
"categories": [
"analytics"
],
"blocks": [
{
"id": "text",
"title": "text",
"description": "text",
"icon": "text",
"urlUnfurl": [
"text"
],
"markdown": {
"codeblock": "text",
"body": "text"
}
}
],
"contentSources": [
{
"id": "text",
"title": "text",
"description": "text",
"icon": "text",
"configuration": {
"componentId": "text"
}
}
],
"configurations": {
"account": {
"properties": {
"ANY_ADDITIONAL_PROPERTY": {
"title": "text",
"description": "text",
"type": "string",
"default": "text",
"completion_url": "text",
"enum": [
"text"
]
}
},
"required": [
"text"
]
},
"space": {
"properties": {
"ANY_ADDITIONAL_PROPERTY": {
"title": "text",
"description": "text",
"type": "string",
"default": "text",
"completion_url": "text",
"enum": [
"text"
]
}
},
"required": [
"text"
]
},
"site": {
"properties": {
"ANY_ADDITIONAL_PROPERTY": {
"title": "text",
"description": "text",
"type": "string",
"default": "text",
"completion_url": "text",
"enum": [
"text"
]
}
},
"required": [
"text"
]
}
},
"externalLinks": [
{
"url": "https://example.com",
"label": "text"
}
],
"owner": {
"object": "organization",
"id": "text",
"title": "text",
"createdAt": "2025-06-21T04:22:40.106Z",
"emailDomains": [
"text"
],
"hostname": "text",
"type": "business",
"useCase": "internalDocs",
"communityType": "nonProfit",
"defaultRole": "admin",
"defaultContent": {
"type": "site",
"site": "text"
},
"sso": true,
"ai": true,
"inviteLinks": true,
"plan": "free_2024",
"billing": {
"interval": "monthly",
"endDate": "2025-06-21T04:22:40.106Z",
"hasPaymentFailed": true,
"isScheduledToCancel": true
},
"urls": {
"location": "https://example.com",
"app": "https://example.com",
"logo": "https://example.com"
},
"trial": {
"status": "notapplicable",
"endDate": "2025-06-21T04:22:40.106Z",
"decision": "downgrade"
},
"customHostname": "text",
"blocked": {
"reason": "security"
},
"internal_billingMigration": {
"deadline": "2025-06-21T04:22:40.106Z",
"discountPercent": 1,
"discountEndDate": "2025-06-21T04:22:40.106Z"
},
"permissions": {
"view": true,
"admin": true,
"ownTeam": true,
"createContent": true,
"createOpenAPISpec": true,
"ingestConversations": true,
"viewBilling": true,
"listMembers": true,
"listTeams": true,
"listIntegrations": true
}
},
"urls": {
"location": "https://example.com",
"icon": "https://example.com",
"app": "https://example.com",
"assets": "https://example.com",
"publicEndpoint": "https://example.com"
},
"permissions": {
"admin": true,
"install": true
},
"contentSecurityPolicy": "text"
}
Name of the integration.
^[a-zA-Z0-9-_.]+$
The runtime version to use for the integration. If not specified, the integration will use the default runtime.
v1
Possible values: Base64 content of the icon
Title of the integration
Description of the integration
Long form markdown summary of the integration
Base64 content of the image
Allowed installation target for the integration. If not specified, the integration can be installed at all
targets (org, spaces etc)
Content of the script to use
The ID or subdomain of the organization under which the integration should be published
Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as headers when processing the script fetch event and the blocks fetch events.
POST /v1/integrations/{integrationName} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 1217
{
"runtime": "v1",
"icon": "Ynl0ZXM=",
"title": "text",
"description": "text",
"summary": "text",
"previewImages": [
"Ynl0ZXM="
],
"visibility": "public",
"target": "all",
"scopes": [
"space:views:read"
],
"categories": [
"analytics"
],
"blocks": [
{
"id": "text",
"title": "text",
"description": "text",
"icon": "text",
"urlUnfurl": [
"text"
],
"markdown": {
"codeblock": "text",
"body": "text"
}
}
],
"contentSources": [
{
"id": "text",
"title": "text",
"description": "text",
"icon": "text",
"configuration": {
"componentId": "text"
}
}
],
"externalLinks": [
{
"url": "https://example.com",
"label": "text"
}
],
"configurations": {
"account": {
"properties": {
"ANY_ADDITIONAL_PROPERTY": {
"title": "text",
"description": "text",
"type": "string",
"default": "text",
"completion_url": "text",
"enum": [
"text"
]
}
},
"required": [
"text"
]
},
"space": {
"properties": {
"ANY_ADDITIONAL_PROPERTY": {
"title": "text",
"description": "text",
"type": "string",
"default": "text",
"completion_url": "text",
"enum": [
"text"
]
}
},
"required": [
"text"
]
},
"site": {
"properties": {
"ANY_ADDITIONAL_PROPERTY": {
"title": "text",
"description": "text",
"type": "string",
"default": "text",
"completion_url": "text",
"enum": [
"text"
]
}
},
"required": [
"text"
]
}
},
"script": "text",
"organization": "text",
"secrets": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"contentSecurityPolicy": "text"
}
{
"object": "integration",
"name": "text",
"version": 1,
"title": "text",
"description": "text",
"summary": "text",
"previewImages": [
"text"
],
"target": "all",
"verified": true,
"visibility": "public",
"scopes": [
"space:views:read"
],
"categories": [
"analytics"
],
"blocks": [
{
"id": "text",
"title": "text",
"description": "text",
"icon": "text",
"urlUnfurl": [
"text"
],
"markdown": {
"codeblock": "text",
"body": "text"
}
}
],
"contentSources": [
{
"id": "text",
"title": "text",
"description": "text",
"icon": "text",
"configuration": {
"componentId": "text"
}
}
],
"configurations": {
"account": {
"properties": {
"ANY_ADDITIONAL_PROPERTY": {
"title": "text",
"description": "text",
"type": "string",
"default": "text",
"completion_url": "text",
"enum": [
"text"
]
}
},
"required": [
"text"
]
},
"space": {
"properties": {
"ANY_ADDITIONAL_PROPERTY": {
"title": "text",
"description": "text",
"type": "string",
"default": "text",
"completion_url": "text",
"enum": [
"text"
]
}
},
"required": [
"text"
]
},
"site": {
"properties": {
"ANY_ADDITIONAL_PROPERTY": {
"title": "text",
"description": "text",
"type": "string",
"default": "text",
"completion_url": "text",
"enum": [
"text"
]
}
},
"required": [
"text"
]
}
},
"externalLinks": [
{
"url": "https://example.com",
"label": "text"
}
],
"owner": {
"object": "organization",
"id": "text",
"title": "text",
"createdAt": "2025-06-21T04:22:40.106Z",
"emailDomains": [
"text"
],
"hostname": "text",
"type": "business",
"useCase": "internalDocs",
"communityType": "nonProfit",
"defaultRole": "admin",
"defaultContent": {
"type": "site",
"site": "text"
},
"sso": true,
"ai": true,
"inviteLinks": true,
"plan": "free_2024",
"billing": {
"interval": "monthly",
"endDate": "2025-06-21T04:22:40.106Z",
"hasPaymentFailed": true,
"isScheduledToCancel": true
},
"urls": {
"location": "https://example.com",
"app": "https://example.com",
"logo": "https://example.com"
},
"trial": {
"status": "notapplicable",
"endDate": "2025-06-21T04:22:40.106Z",
"decision": "downgrade"
},
"customHostname": "text",
"blocked": {
"reason": "security"
},
"internal_billingMigration": {
"deadline": "2025-06-21T04:22:40.106Z",
"discountPercent": 1,
"discountEndDate": "2025-06-21T04:22:40.106Z"
},
"permissions": {
"view": true,
"admin": true,
"ownTeam": true,
"createContent": true,
"createOpenAPISpec": true,
"ingestConversations": true,
"viewBilling": true,
"listMembers": true,
"listTeams": true,
"listIntegrations": true
}
},
"urls": {
"location": "https://example.com",
"icon": "https://example.com",
"app": "https://example.com",
"assets": "https://example.com",
"publicEndpoint": "https://example.com"
},
"permissions": {
"admin": true,
"install": true
},
"contentSecurityPolicy": "text"
}
Name of the integration.
^[a-zA-Z0-9-_.]+$
DELETE /v1/integrations/{integrationName} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Integration has been deleted
No content
Name of the integration.
^[a-zA-Z0-9-_.]+$
Identifier of the page results to fetch.
The number of results per page
External Id to filter by
GET /v1/integrations/{integrationName}/installations HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
OK
{
"next": {
"page": "text"
},
"count": 1,
"items": [
{
"id": "text",
"status": "active",
"space_selection": "all",
"site_selection": "all",
"spaces": 1,
"configuration": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"createdAt": "2025-06-21T04:22:40.106Z",
"updatedAt": "2025-06-21T04:22:40.106Z",
"urls": {
"location": "https://example.com",
"app": "https://example.com",
"publicEndpoint": "https://example.com"
},
"externalIds": [
"text"
],
"target": {
"organization": "text"
}
}
]
}
Name of the integration.
^[a-zA-Z0-9-_.]+$
POST /v1/integrations/{integrationName}/installations HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 23
{
"organization": "text"
}
{
"id": "text",
"status": "active",
"space_selection": "all",
"site_selection": "all",
"spaces": 1,
"configuration": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"createdAt": "2025-06-21T04:22:40.106Z",
"updatedAt": "2025-06-21T04:22:40.106Z",
"urls": {
"location": "https://example.com",
"app": "https://example.com",
"publicEndpoint": "https://example.com"
},
"externalIds": [
"text"
],
"target": {
"organization": "text"
}
}
Name of the integration.
^[a-zA-Z0-9-_.]+$
Identifier of the page results to fetch.
The number of results per page
GET /v1/integrations/{integrationName}/events HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Paginated list of integration events
{
"next": {
"page": "text"
},
"count": 1,
"items": [
{
"id": "text",
"integrationId": "text",
"installationId": "text",
"createdAt": "2025-06-21T04:22:40.106Z",
"payload": {
"eventId": "text",
"type": "installation_setup",
"installationId": "text",
"status": "active",
"previous": {
"status": "active",
"configuration": {}
}
},
"status": "success"
}
]
}
Name of the integration.
^[a-zA-Z0-9-_.]+$
ID of the integration event
GET /v1/integrations/{integrationName}/events/{eventId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"event": {
"id": "text",
"integrationId": "text",
"installationId": "text",
"createdAt": "2025-06-21T04:22:40.106Z",
"payload": {
"eventId": "text",
"type": "installation_setup",
"installationId": "text",
"status": "active",
"previous": {
"status": "active",
"configuration": {}
}
},
"status": "success"
},
"trace": {
"logs": [
{
"message": "text",
"timestamp": "2025-06-21T04:22:40.106Z",
"level": "debug"
}
]
}
}
Name of the integration.
^[a-zA-Z0-9-_.]+$
Identifier of the page results to fetch.
The number of results per page
External Id to filter by
If true, returns the space object in each items. If false, returns the space ID in each items.
false
GET /v1/integrations/{integrationName}/spaces HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
OK
{
"next": {
"page": "text"
},
"count": 1,
"items": [
{
"integration": "text",
"installation": "text",
"status": "active",
"configuration": {},
"externalIds": [
"text"
],
"urls": {
"location": "https://example.com",
"publicEndpoint": "https://example.com"
},
"space": "text"
}
]
}
Name of the integration.
^[a-zA-Z0-9-_.]+$
Identifier of the page results to fetch.
The number of results per page
External ID to filter by
If true, returns the site object in each items. If false, returns the site ID in each items.
false
GET /v1/integrations/{integrationName}/sites HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
OK
{
"next": {
"page": "text"
},
"count": 1,
"items": [
{
"integration": "text",
"installation": "text",
"status": "active",
"configuration": {},
"externalIds": [
"text"
],
"urls": {
"location": "https://example.com",
"publicEndpoint": "https://example.com"
},
"site": "text"
}
]
}
Name of the integration.
^[a-zA-Z0-9-_.]+$
URL of the tunnel to dispatch integration events to
If set to true, all requests will be forwarded to the tunnel, not just from the owning organization.
false
PUT /v1/integrations/{integrationName}/dev HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 32
{
"tunnelUrl": "text",
"all": false
}
No content
Name of the integration.
^[a-zA-Z0-9-_.]+$
DELETE /v1/integrations/{integrationName}/dev HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Disabled development mode successfully
No content
Name of the integration.
^[a-zA-Z0-9-_.]+$
LZ-string compressed JSON request
Output of the integration when rendering a UI.
GET /v1/integrations/{integrationName}/render HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
ContentKit element to render
{
"type": "element",
"element": {
"type": "block",
"children": [
{
"type": "button",
"style": "primary",
"onPress": "[Circular Reference]",
"icon": "close",
"trailingIcon": "close",
"label": "text",
"tooltip": "text",
"confirm": {
"title": "text",
"text": "text",
"confirm": "text",
"style": "primary"
},
"disabled": true
}
],
"controls": [
{
"icon": "close",
"label": "text",
"onPress": "[Circular Reference]",
"confirm": {
"title": "text",
"text": "text",
"confirm": "text",
"style": "primary"
}
}
]
},
"state": {},
"props": {
"ANY_ADDITIONAL_PROPERTY": {
"ANY_ADDITIONAL_PROPERTY": "[Circular Reference]"
}
}
}
Name of the integration.
^[a-zA-Z0-9-_.]+$
ID of the component to render in the integration.
Current local state of the UI.
Object representing the context in which a ContentKit component is rendered.
Output of the integration when rendering a UI.
POST /v1/integrations/{integrationName}/render HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 294
{
"componentId": "text",
"props": {
"ANY_ADDITIONAL_PROPERTY": {
"ANY_ADDITIONAL_PROPERTY": {
"ANY_ADDITIONAL_PROPERTY": "[Circular Reference]"
}
}
},
"state": {},
"context": {
"theme": "dark",
"type": "configuration_account",
"organizationId": "text"
},
"action": {
"action": "text",
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
ContentKit element to render
{
"type": "element",
"element": {
"type": "block",
"children": [
{
"type": "button",
"style": "primary",
"onPress": "[Circular Reference]",
"icon": "close",
"trailingIcon": "close",
"label": "text",
"tooltip": "text",
"confirm": {
"title": "text",
"text": "text",
"confirm": "text",
"style": "primary"
},
"disabled": true
}
],
"controls": [
{
"icon": "close",
"label": "text",
"onPress": "[Circular Reference]",
"confirm": {
"title": "text",
"text": "text",
"confirm": "text",
"style": "primary"
}
}
]
},
"state": {},
"props": {
"ANY_ADDITIONAL_PROPERTY": {
"ANY_ADDITIONAL_PROPERTY": "[Circular Reference]"
}
}
}
Name of the integration.
^[a-zA-Z0-9-_.]+$
Payload for the integration task
Number of seconds to wait before executing the task, defaults to 0
POST /v1/integrations/{integrationName}/tasks HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 24
{
"task": {},
"schedule": 1
}
No content
Name of the integration.
^[a-zA-Z0-9-_.]+$
Identifier of the installation
GET /v1/integrations/{integrationName}/installations/{installationId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"status": "active",
"space_selection": "all",
"site_selection": "all",
"spaces": 1,
"configuration": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"createdAt": "2025-06-21T04:22:40.106Z",
"updatedAt": "2025-06-21T04:22:40.106Z",
"urls": {
"location": "https://example.com",
"app": "https://example.com",
"publicEndpoint": "https://example.com"
},
"externalIds": [
"text"
],
"target": {
"organization": "text"
}
}
Name of the integration.
^[a-zA-Z0-9-_.]+$
Identifier of the installation
DELETE /v1/integrations/{integrationName}/installations/{installationId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Name of the integration.
^[a-zA-Z0-9-_.]+$
Identifier of the installation
External IDs assigned by the integration.
Describe whether all spaces have been selected or there's a selection involved
Describe whether all sites have been selected or there's a selection involved
PATCH /v1/integrations/{integrationName}/installations/{installationId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 126
{
"externalIds": [
"text"
],
"configuration": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"space_selection": "all",
"site_selection": "all"
}
The installation has been updated.
{
"id": "text",
"status": "active",
"space_selection": "all",
"site_selection": "all",
"spaces": 1,
"configuration": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"createdAt": "2025-06-21T04:22:40.106Z",
"updatedAt": "2025-06-21T04:22:40.106Z",
"urls": {
"location": "https://example.com",
"app": "https://example.com",
"publicEndpoint": "https://example.com"
},
"externalIds": [
"text"
],
"target": {
"organization": "text"
}
}
Creates a temporary API token of an integration's installation that has access to the installation and it's scopes. You must be authenticated as the integration to obtain this token.
Name of the integration.
^[a-zA-Z0-9-_.]+$
Identifier of the installation
POST /v1/integrations/{integrationName}/installations/{installationId}/tokens HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"token": "text"
}
Name of the integration.
^[a-zA-Z0-9-_.]+$
Identifier of the installation
Identifier of the page results to fetch.
The number of results per page
If true, returns the space object in each items. If false, returns the space ID in each items.
false
GET /v1/integrations/{integrationName}/installations/{installationId}/spaces HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
OK
{
"next": {
"page": "text"
},
"count": 1,
"items": [
{
"integration": "text",
"installation": "text",
"status": "active",
"configuration": {},
"externalIds": [
"text"
],
"urls": {
"location": "https://example.com",
"publicEndpoint": "https://example.com"
},
"space": "text"
}
]
}
Name of the integration.
^[a-zA-Z0-9-_.]+$
Identifier of the installation
The unique id of the space
If true, returns the space object in each items. If false, returns the space ID in each items.
false
GET /v1/integrations/{integrationName}/installations/{installationId}/spaces/{spaceId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"integration": "text",
"installation": "text",
"status": "active",
"configuration": {},
"externalIds": [
"text"
],
"urls": {
"location": "https://example.com",
"publicEndpoint": "https://example.com"
},
"space": "text"
}
Name of the integration.
^[a-zA-Z0-9-_.]+$
Identifier of the installation
The unique id of the space
DELETE /v1/integrations/{integrationName}/installations/{installationId}/spaces/{spaceId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
The space installation has been deleted.
No content
Name of the integration.
^[a-zA-Z0-9-_.]+$
Identifier of the installation
The unique id of the space
If true, returns the space object in each items. If false, returns the space ID in each items.
false
External IDs assigned by the integration.
PATCH /v1/integrations/{integrationName}/installations/{installationId}/spaces/{spaceId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 79
{
"externalIds": [
"text"
],
"configuration": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
The space installation has been updated.
{
"integration": "text",
"installation": "text",
"status": "active",
"configuration": {},
"externalIds": [
"text"
],
"urls": {
"location": "https://example.com",
"publicEndpoint": "https://example.com"
},
"space": "text"
}
Name of the integration.
^[a-zA-Z0-9-_.]+$
Identifier of the installation
Identifier of the page results to fetch.
The number of results per page
If true, returns the site object in each items. If false, returns the site ID in each items.
false
GET /v1/integrations/{integrationName}/installations/{installationId}/sites HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
OK
{
"next": {
"page": "text"
},
"count": 1,
"items": [
{
"integration": "text",
"installation": "text",
"status": "active",
"configuration": {},
"externalIds": [
"text"
],
"urls": {
"location": "https://example.com",
"publicEndpoint": "https://example.com"
},
"site": "text"
}
]
}
Name of the integration.
^[a-zA-Z0-9-_.]+$
Identifier of the installation
If true, returns the site object in each items. If false, returns the site ID in each items.
false
ID of the site to install the integration on
POST /v1/integrations/{integrationName}/installations/{installationId}/sites HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"siteId": "text"
}
{
"integration": "text",
"installation": "text",
"status": "active",
"configuration": {},
"externalIds": [
"text"
],
"urls": {
"location": "https://example.com",
"publicEndpoint": "https://example.com"
},
"site": "text"
}
Name of the integration.
^[a-zA-Z0-9-_.]+$
Identifier of the installation
The unique id of the site
If true, returns the site object in each items. If false, returns the site ID in each items.
false
GET /v1/integrations/{integrationName}/installations/{installationId}/sites/{siteId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"integration": "text",
"installation": "text",
"status": "active",
"configuration": {},
"externalIds": [
"text"
],
"urls": {
"location": "https://example.com",
"publicEndpoint": "https://example.com"
},
"site": "text"
}
Name of the integration.
^[a-zA-Z0-9-_.]+$
Identifier of the installation
The unique id of the site
DELETE /v1/integrations/{integrationName}/installations/{installationId}/sites/{siteId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
The site installation has been deleted.
No content
Name of the integration.
^[a-zA-Z0-9-_.]+$
Identifier of the installation
The unique id of the site
If true, returns the site object in each items. If false, returns the site ID in each items.
false
External IDs assigned by the integration.
PATCH /v1/integrations/{integrationName}/installations/{installationId}/sites/{siteId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 79
{
"externalIds": [
"text"
],
"configuration": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
The site installation has been updated.
{
"integration": "text",
"installation": "text",
"status": "active",
"configuration": {},
"externalIds": [
"text"
],
"urls": {
"location": "https://example.com",
"publicEndpoint": "https://example.com"
},
"site": "text"
}
The unique id of the organization
Identifier of the page results to fetch.
The number of results per page
A search string to filter integrations by name
Filter the integrations by category
Filter the integrations by block's domains
^[a-zA-Z0-9-_.]+$
If true, returns only integrations with blocks. If false, returns only integrations without blocks.
If true, returns only integrations with contentSources. If false, returns only integrations without contentSources.
If defined, only list integrations owned by the given organization.
Filter the integrations by scope
The target on which the integration can operate and needs to be configured for
GET /v1/orgs/{organizationId}/integrations HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
List of integrations.
{
"next": {
"page": "text"
},
"count": 1,
"items": [
{
"object": "integration",
"name": "text",
"version": 1,
"title": "text",
"description": "text",
"summary": "text",
"previewImages": [
"text"
],
"target": "all",
"verified": true,
"visibility": "public",
"scopes": [
"space:views:read"
],
"categories": [
"analytics"
],
"blocks": [
{
"id": "text",
"title": "text",
"description": "text",
"icon": "text",
"urlUnfurl": [
"text"
],
"markdown": {
"codeblock": "text",
"body": "text"
}
}
],
"contentSources": [
{
"id": "text",
"title": "text",
"description": "text",
"icon": "text",
"configuration": {
"componentId": "text"
}
}
],
"configurations": {
"account": {
"properties": {
"ANY_ADDITIONAL_PROPERTY": {
"title": "text",
"description": "text",
"type": "string",
"default": "text",
"completion_url": "text",
"enum": [
"text"
]
}
},
"required": [
"text"
]
},
"space": {
"properties": {
"ANY_ADDITIONAL_PROPERTY": {
"title": "text",
"description": "text",
"type": "string",
"default": "text",
"completion_url": "text",
"enum": [
"text"
]
}
},
"required": [
"text"
]
},
"site": {
"properties": {
"ANY_ADDITIONAL_PROPERTY": {
"title": "text",
"description": "text",
"type": "string",
"default": "text",
"completion_url": "text",
"enum": [
"text"
]
}
},
"required": [
"text"
]
}
},
"externalLinks": [
{
"url": "https://example.com",
"label": "text"
}
],
"owner": {
"object": "organization",
"id": "text",
"title": "text",
"createdAt": "2025-06-21T04:22:40.106Z",
"emailDomains": [
"text"
],
"hostname": "text",
"type": "business",
"useCase": "internalDocs",
"communityType": "nonProfit",
"defaultRole": "admin",
"defaultContent": {
"type": "site",
"site": "text"
},
"sso": true,
"ai": true,
"inviteLinks": true,
"plan": "free_2024",
"billing": {
"interval": "monthly",
"endDate": "2025-06-21T04:22:40.106Z",
"hasPaymentFailed": true,
"isScheduledToCancel": true
},
"urls": {
"location": "https://example.com",
"app": "https://example.com",
"logo": "https://example.com"
},
"trial": {
"status": "notapplicable",
"endDate": "2025-06-21T04:22:40.106Z",
"decision": "downgrade"
},
"customHostname": "text",
"blocked": {
"reason": "security"
},
"internal_billingMigration": {
"deadline": "2025-06-21T04:22:40.106Z",
"discountPercent": 1,
"discountEndDate": "2025-06-21T04:22:40.106Z"
},
"permissions": {
"view": true,
"admin": true,
"ownTeam": true,
"createContent": true,
"createOpenAPISpec": true,
"ingestConversations": true,
"viewBilling": true,
"listMembers": true,
"listTeams": true,
"listIntegrations": true
}
},
"urls": {
"location": "https://example.com",
"icon": "https://example.com",
"app": "https://example.com",
"assets": "https://example.com",
"publicEndpoint": "https://example.com"
},
"permissions": {
"admin": true,
"install": true
},
"contentSecurityPolicy": "text"
}
]
}
The unique id of the organization
Name of the integration.
^[a-zA-Z0-9-_.]+$
GET /v1/orgs/{organizationId}/integrations/{integrationName}/installation_status HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"status": "active"
}
The unique id of the organization
Identifier of the page results to fetch.
The number of results per page
A search string to filter integrations by name
GET /v1/orgs/{organizationId}/installations HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
List of integrations with the associated installations.
{
"next": {
"page": "text"
},
"count": 1,
"items": [
{
"installation": {
"id": "text",
"status": "active",
"space_selection": "all",
"site_selection": "all",
"spaces": 1,
"configuration": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"createdAt": "2025-06-21T04:22:40.106Z",
"updatedAt": "2025-06-21T04:22:40.106Z",
"urls": {
"location": "https://example.com",
"app": "https://example.com",
"publicEndpoint": "https://example.com"
},
"externalIds": [
"text"
],
"target": {
"organization": "text"
}
},
"integration": {
"object": "integration",
"name": "text",
"version": 1,
"title": "text",
"description": "text",
"summary": "text",
"previewImages": [
"text"
],
"target": "all",
"verified": true,
"visibility": "public",
"scopes": [
"space:views:read"
],
"categories": [
"analytics"
],
"blocks": [
{
"id": "text",
"title": "text",
"description": "text",
"icon": "text",
"urlUnfurl": [
"text"
],
"markdown": {
"codeblock": "text",
"body": "text"
}
}
],
"contentSources": [
{
"id": "text",
"title": "text",
"description": "text",
"icon": "text",
"configuration": {
"componentId": "text"
}
}
],
"configurations": {
"account": {
"properties": {
"ANY_ADDITIONAL_PROPERTY": {
"title": "text",
"description": "text",
"type": "string",
"default": "text",
"completion_url": "text",
"enum": [
"text"
]
}
},
"required": [
"text"
]
},
"space": {
"properties": {
"ANY_ADDITIONAL_PROPERTY": {
"title": "text",
"description": "text",
"type": "string",
"default": "text",
"completion_url": "text",
"enum": [
"text"
]
}
},
"required": [
"text"
]
},
"site": {
"properties": {
"ANY_ADDITIONAL_PROPERTY": {
"title": "text",
"description": "text",
"type": "string",
"default": "text",
"completion_url": "text",
"enum": [
"text"
]
}
},
"required": [
"text"
]
}
},
"externalLinks": [
{
"url": "https://example.com",
"label": "text"
}
],
"owner": {
"object": "organization",
"id": "text",
"title": "text",
"createdAt": "2025-06-21T04:22:40.106Z",
"emailDomains": [
"text"
],
"hostname": "text",
"type": "business",
"useCase": "internalDocs",
"communityType": "nonProfit",
"defaultRole": "admin",
"defaultContent": {
"type": "site",
"site": "text"
},
"sso": true,
"ai": true,
"inviteLinks": true,
"plan": "free_2024",
"billing": {
"interval": "monthly",
"endDate": "2025-06-21T04:22:40.106Z",
"hasPaymentFailed": true,
"isScheduledToCancel": true
},
"urls": {
"location": "https://example.com",
"app": "https://example.com",
"logo": "https://example.com"
},
"trial": {
"status": "notapplicable",
"endDate": "2025-06-21T04:22:40.106Z",
"decision": "downgrade"
},
"customHostname": "text",
"blocked": {
"reason": "security"
},
"internal_billingMigration": {
"deadline": "2025-06-21T04:22:40.106Z",
"discountPercent": 1,
"discountEndDate": "2025-06-21T04:22:40.106Z"
},
"permissions": {
"view": true,
"admin": true,
"ownTeam": true,
"createContent": true,
"createOpenAPISpec": true,
"ingestConversations": true,
"viewBilling": true,
"listMembers": true,
"listTeams": true,
"listIntegrations": true
}
},
"urls": {
"location": "https://example.com",
"icon": "https://example.com",
"app": "https://example.com",
"assets": "https://example.com",
"publicEndpoint": "https://example.com"
},
"permissions": {
"admin": true,
"install": true
},
"contentSecurityPolicy": "text"
}
}
]
}
The unique id of the organization
Identifier of the page results to fetch.
The number of results per page
A search string to filter integrations by name
GET /v1/orgs/{organizationId}/integrations/installations-status HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
List of integrations.
{
"next": {
"page": "text"
},
"count": 1,
"items": [
{
"status": "active",
"integration": {
"object": "integration",
"name": "text",
"version": 1,
"title": "text",
"description": "text",
"summary": "text",
"previewImages": [
"text"
],
"target": "all",
"verified": true,
"visibility": "public",
"scopes": [
"space:views:read"
],
"categories": [
"analytics"
],
"blocks": [
{
"id": "text",
"title": "text",
"description": "text",
"icon": "text",
"urlUnfurl": [
"text"
],
"markdown": {
"codeblock": "text",
"body": "text"
}
}
],
"contentSources": [
{
"id": "text",
"title": "text",
"description": "text",
"icon": "text",
"configuration": {
"componentId": "text"
}
}
],
"configurations": {
"account": {
"properties": {
"ANY_ADDITIONAL_PROPERTY": {
"title": "text",
"description": "text",
"type": "string",
"default": "text",
"completion_url": "text",
"enum": [
"text"
]
}
},
"required": [
"text"
]
},
"space": {
"properties": {
"ANY_ADDITIONAL_PROPERTY": {
"title": "text",
"description": "text",
"type": "string",
"default": "text",
"completion_url": "text",
"enum": [
"text"
]
}
},
"required": [
"text"
]
},
"site": {
"properties": {
"ANY_ADDITIONAL_PROPERTY": {
"title": "text",
"description": "text",
"type": "string",
"default": "text",
"completion_url": "text",
"enum": [
"text"
]
}
},
"required": [
"text"
]
}
},
"externalLinks": [
{
"url": "https://example.com",
"label": "text"
}
],
"owner": {
"object": "organization",
"id": "text",
"title": "text",
"createdAt": "2025-06-21T04:22:40.106Z",
"emailDomains": [
"text"
],
"hostname": "text",
"type": "business",
"useCase": "internalDocs",
"communityType": "nonProfit",
"defaultRole": "admin",
"defaultContent": {
"type": "site",
"site": "text"
},
"sso": true,
"ai": true,
"inviteLinks": true,
"plan": "free_2024",
"billing": {
"interval": "monthly",
"endDate": "2025-06-21T04:22:40.106Z",
"hasPaymentFailed": true,
"isScheduledToCancel": true
},
"urls": {
"location": "https://example.com",
"app": "https://example.com",
"logo": "https://example.com"
},
"trial": {
"status": "notapplicable",
"endDate": "2025-06-21T04:22:40.106Z",
"decision": "downgrade"
},
"customHostname": "text",
"blocked": {
"reason": "security"
},
"internal_billingMigration": {
"deadline": "2025-06-21T04:22:40.106Z",
"discountPercent": 1,
"discountEndDate": "2025-06-21T04:22:40.106Z"
},
"permissions": {
"view": true,
"admin": true,
"ownTeam": true,
"createContent": true,
"createOpenAPISpec": true,
"ingestConversations": true,
"viewBilling": true,
"listMembers": true,
"listTeams": true,
"listIntegrations": true
}
},
"urls": {
"location": "https://example.com",
"icon": "https://example.com",
"app": "https://example.com",
"assets": "https://example.com",
"publicEndpoint": "https://example.com"
},
"permissions": {
"admin": true,
"install": true
},
"contentSecurityPolicy": "text"
}
}
]
}
The unique id of the organization
The unique id of the site
GET /v1/orgs/{organizationId}/sites/{siteId}/integration-scripts HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"script": "https://example.com",
"contentSecurityPolicy": "text",
"cookies": true
}
]
The unique id of the organization
The unique id of the site
A search string to filter integrations by name
GET /v1/orgs/{organizationId}/sites/{siteId}/integrations HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Listing of integrations enabled in the site.
{
"next": {
"page": "text"
},
"count": 1,
"items": [
{
"object": "integration",
"name": "text",
"version": 1,
"title": "text",
"description": "text",
"summary": "text",
"previewImages": [
"text"
],
"target": "all",
"verified": true,
"visibility": "public",
"scopes": [
"space:views:read"
],
"categories": [
"analytics"
],
"blocks": [
{
"id": "text",
"title": "text",
"description": "text",
"icon": "text",
"urlUnfurl": [
"text"
],
"markdown": {
"codeblock": "text",
"body": "text"
}
}
],
"contentSources": [
{
"id": "text",
"title": "text",
"description": "text",
"icon": "text",
"configuration": {
"componentId": "text"
}
}
],
"configurations": {
"account": {
"properties": {
"ANY_ADDITIONAL_PROPERTY": {
"title": "text",
"description": "text",
"type": "string",
"default": "text",
"completion_url": "text",
"enum": [
"text"
]
}
},
"required": [
"text"
]
},
"space": {
"properties": {
"ANY_ADDITIONAL_PROPERTY": {
"title": "text",
"description": "text",
"type": "string",
"default": "text",
"completion_url": "text",
"enum": [
"text"
]
}
},
"required": [
"text"
]
},
"site": {
"properties": {
"ANY_ADDITIONAL_PROPERTY": {
"title": "text",
"description": "text",
"type": "string",
"default": "text",
"completion_url": "text",
"enum": [
"text"
]
}
},
"required": [
"text"
]
}
},
"externalLinks": [
{
"url": "https://example.com",
"label": "text"
}
],
"owner": {
"object": "organization",
"id": "text",
"title": "text",
"createdAt": "2025-06-21T04:22:40.106Z",
"emailDomains": [
"text"
],
"hostname": "text",
"type": "business",
"useCase": "internalDocs",
"communityType": "nonProfit",
"defaultRole": "admin",
"defaultContent": {
"type": "site",
"site": "text"
},
"sso": true,
"ai": true,
"inviteLinks": true,
"plan": "free_2024",
"billing": {
"interval": "monthly",
"endDate": "2025-06-21T04:22:40.106Z",
"hasPaymentFailed": true,
"isScheduledToCancel": true
},
"urls": {
"location": "https://example.com",
"app": "https://example.com",
"logo": "https://example.com"
},
"trial": {
"status": "notapplicable",
"endDate": "2025-06-21T04:22:40.106Z",
"decision": "downgrade"
},
"customHostname": "text",
"blocked": {
"reason": "security"
},
"internal_billingMigration": {
"deadline": "2025-06-21T04:22:40.106Z",
"discountPercent": 1,
"discountEndDate": "2025-06-21T04:22:40.106Z"
},
"permissions": {
"view": true,
"admin": true,
"ownTeam": true,
"createContent": true,
"createOpenAPISpec": true,
"ingestConversations": true,
"viewBilling": true,
"listMembers": true,
"listTeams": true,
"listIntegrations": true
}
},
"urls": {
"location": "https://example.com",
"icon": "https://example.com",
"app": "https://example.com",
"assets": "https://example.com",
"publicEndpoint": "https://example.com"
},
"permissions": {
"admin": true,
"install": true
},
"contentSecurityPolicy": "text"
}
]
}
Was this helpful?