Integrations
Install and handle third-party integrations for extended GitBook functionality.
Was this helpful?
Install and handle third-party integrations for extended GitBook functionality.
Was this helpful?
Was this helpful?
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
Paginated list of integrations
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.
OK
Organization could not be found for the given hostname
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
OK
OK
Name of the integration.
^[a-zA-Z0-9-_.]+$
Identifier of the page results to fetch.
The number of results per page
Paginated list of integration events
Paginated list of integration events
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
OK
OK
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
OK
OK
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
Updated development mode successfully
Not Found
No content
Name of the integration.
^[a-zA-Z0-9-_.]+$
LZ-string compressed JSON request
ContentKit element to render
Output of the integration when rendering a UI.
ContentKit element to render
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.
ContentKit element to render
Output of the integration when rendering a UI.
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
Integration task created successfully
Not Found
Name of the integration.
^[a-zA-Z0-9-_.]+$
Identifier of the installation
Integration installation
Not Found
Name of the integration.
^[a-zA-Z0-9-_.]+$
Identifier of the installation
Integration installation did not exist
Integration uninstalled successfully
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
The installation has been updated.
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
The API token for the installation
Installation could not be found
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
OK
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
Integration space installation
Not Found
Name of the integration.
^[a-zA-Z0-9-_.]+$
Identifier of the installation
The unique id of the space
The space installation did not exist.
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.
The space installation has been updated.
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
OK
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
Integration installed successfully on site
Not Found
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
Integration site installation
Not Found
Name of the integration.
^[a-zA-Z0-9-_.]+$
Identifier of the installation
The unique id of the site
The site installation did not exist.
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.
The site installation has been updated.
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
List of integrations.
The unique id of the organization
Name of the integration.
^[a-zA-Z0-9-_.]+$
Integration installation status
Not Found
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
List of integrations with the associated installations.
List of integrations with the associated installations.
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
List of integrations.
List of integrations.
The unique id of the organization
The unique id of the site
A search string to filter integrations by name
Listing of integrations enabled in the site.
Listing of integrations enabled in the site.
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-08-26T20:44:16.148Z",
"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-08-26T20:44:16.148Z",
"hasPaymentFailed": true,
"isScheduledToCancel": true,
"pricing": {
"members": {
"plus_2024": {
"monthly": 1,
"yearly": 1
},
"pro_2024": {
"monthly": 1,
"yearly": 1
}
},
"sites": {
"premium": {
"monthly": 1,
"yearly": 1
},
"ultimate": {
"monthly": 1,
"yearly": 1
}
}
},
"usageAddons": {
"ANY_ADDITIONAL_PROPERTY": {
"enabled": true
}
}
},
"urls": {
"location": "https://example.com",
"app": "https://example.com",
"logo": "https://example.com"
},
"trial": {
"status": "notapplicable",
"endDate": "2025-08-26T20:44:16.148Z",
"decision": "downgrade"
},
"customHostname": "text",
"blocked": {
"reason": "security"
},
"internal_billingMigration": {
"deadline": "2025-08-26T20:44:16.148Z",
"discountPercent": 1,
"discountEndDate": "2025-08-26T20:44:16.148Z"
},
"permissions": {
"view": true,
"admin": true,
"ownTeam": true,
"createContent": true,
"createOpenAPISpec": true,
"ingestConversations": true,
"viewBilling": true,
"listMembers": true,
"listTeams": true,
"listIntegrations": true,
"listInstallations": true,
"installIntegration": 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
},
"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-08-26T20:44:16.148Z",
"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-08-26T20:44:16.148Z",
"hasPaymentFailed": true,
"isScheduledToCancel": true,
"pricing": {
"members": {
"plus_2024": {
"monthly": 1,
"yearly": 1
},
"pro_2024": {
"monthly": 1,
"yearly": 1
}
},
"sites": {
"premium": {
"monthly": 1,
"yearly": 1
},
"ultimate": {
"monthly": 1,
"yearly": 1
}
}
},
"usageAddons": {
"ANY_ADDITIONAL_PROPERTY": {
"enabled": true
}
}
},
"urls": {
"location": "https://example.com",
"app": "https://example.com",
"logo": "https://example.com"
},
"trial": {
"status": "notapplicable",
"endDate": "2025-08-26T20:44:16.148Z",
"decision": "downgrade"
},
"customHostname": "text",
"blocked": {
"reason": "security"
},
"internal_billingMigration": {
"deadline": "2025-08-26T20:44:16.148Z",
"discountPercent": 1,
"discountEndDate": "2025-08-26T20:44:16.148Z"
},
"permissions": {
"view": true,
"admin": true,
"ownTeam": true,
"createContent": true,
"createOpenAPISpec": true,
"ingestConversations": true,
"viewBilling": true,
"listMembers": true,
"listTeams": true,
"listIntegrations": true,
"listInstallations": true,
"installIntegration": 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
},
"contentSecurityPolicy": "text"
}
{
"id": "text",
"status": "active",
"space_selection": "all",
"site_selection": "all",
"spaces": 1,
"configuration": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"createdAt": "2025-08-26T20:44:16.148Z",
"updatedAt": "2025-08-26T20:44:16.148Z",
"urls": {
"location": "https://example.com",
"app": "https://example.com",
"publicEndpoint": "https://example.com"
},
"externalIds": [
"text"
],
"target": {
"organization": "text"
}
}
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]"
}
}
}
No content
The installation has been updated.
{
"id": "text",
"status": "active",
"space_selection": "all",
"site_selection": "all",
"spaces": 1,
"configuration": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"createdAt": "2025-08-26T20:44:16.148Z",
"updatedAt": "2025-08-26T20:44:16.148Z",
"urls": {
"location": "https://example.com",
"app": "https://example.com",
"publicEndpoint": "https://example.com"
},
"externalIds": [
"text"
],
"target": {
"organization": "text"
}
}
The API token for the installation
{
"token": "text"
}
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"
}
]
}
{
"integration": "text",
"installation": "text",
"status": "active",
"configuration": {},
"externalIds": [
"text"
],
"urls": {
"location": "https://example.com",
"publicEndpoint": "https://example.com"
},
"space": "text"
}
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"
}
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"
}
]
}
{
"integration": "text",
"installation": "text",
"status": "active",
"configuration": {},
"externalIds": [
"text"
],
"urls": {
"location": "https://example.com",
"publicEndpoint": "https://example.com"
},
"site": "text"
}
{
"integration": "text",
"installation": "text",
"status": "active",
"configuration": {},
"externalIds": [
"text"
],
"urls": {
"location": "https://example.com",
"publicEndpoint": "https://example.com"
},
"site": "text"
}
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"
}
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-08-26T20:44:16.148Z",
"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-08-26T20:44:16.148Z",
"hasPaymentFailed": true,
"isScheduledToCancel": true,
"pricing": {
"members": {
"plus_2024": {
"monthly": 1,
"yearly": 1
},
"pro_2024": {
"monthly": 1,
"yearly": 1
}
},
"sites": {
"premium": {
"monthly": 1,
"yearly": 1
},
"ultimate": {
"monthly": 1,
"yearly": 1
}
}
},
"usageAddons": {
"ANY_ADDITIONAL_PROPERTY": {
"enabled": true
}
}
},
"urls": {
"location": "https://example.com",
"app": "https://example.com",
"logo": "https://example.com"
},
"trial": {
"status": "notapplicable",
"endDate": "2025-08-26T20:44:16.148Z",
"decision": "downgrade"
},
"customHostname": "text",
"blocked": {
"reason": "security"
},
"internal_billingMigration": {
"deadline": "2025-08-26T20:44:16.148Z",
"discountPercent": 1,
"discountEndDate": "2025-08-26T20:44:16.148Z"
},
"permissions": {
"view": true,
"admin": true,
"ownTeam": true,
"createContent": true,
"createOpenAPISpec": true,
"ingestConversations": true,
"viewBilling": true,
"listMembers": true,
"listTeams": true,
"listIntegrations": true,
"listInstallations": true,
"installIntegration": 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
},
"contentSecurityPolicy": "text"
}
]
}
GET /v1/integrations HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
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-08-26T20:44:16.148Z",
"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-08-26T20:44:16.148Z",
"hasPaymentFailed": true,
"isScheduledToCancel": true,
"pricing": {
"members": {
"plus_2024": {
"monthly": 1,
"yearly": 1
},
"pro_2024": {
"monthly": 1,
"yearly": 1
}
},
"sites": {
"premium": {
"monthly": 1,
"yearly": 1
},
"ultimate": {
"monthly": 1,
"yearly": 1
}
}
},
"usageAddons": {
"ANY_ADDITIONAL_PROPERTY": {
"enabled": true
}
}
},
"urls": {
"location": "https://example.com",
"app": "https://example.com",
"logo": "https://example.com"
},
"trial": {
"status": "notapplicable",
"endDate": "2025-08-26T20:44:16.148Z",
"decision": "downgrade"
},
"customHostname": "text",
"blocked": {
"reason": "security"
},
"internal_billingMigration": {
"deadline": "2025-08-26T20:44:16.148Z",
"discountPercent": 1,
"discountEndDate": "2025-08-26T20:44:16.148Z"
},
"permissions": {
"view": true,
"admin": true,
"ownTeam": true,
"createContent": true,
"createOpenAPISpec": true,
"ingestConversations": true,
"viewBilling": true,
"listMembers": true,
"listTeams": true,
"listIntegrations": true,
"listInstallations": true,
"installIntegration": 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
},
"contentSecurityPolicy": "text"
}
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"
}
DELETE /v1/integrations/{integrationName} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
GET /v1/integrations/{integrationName}/installations HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"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-08-26T20:44:16.148Z",
"updatedAt": "2025-08-26T20:44:16.148Z",
"urls": {
"location": "https://example.com",
"app": "https://example.com",
"publicEndpoint": "https://example.com"
},
"externalIds": [
"text"
],
"target": {
"organization": "text"
}
}
]
}
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"
}
GET /v1/integrations/{integrationName}/events HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"next": {
"page": "text"
},
"count": 1,
"items": [
{
"id": "text",
"integrationId": "text",
"installationId": "text",
"createdAt": "2025-08-26T20:44:16.148Z",
"payload": {
"eventId": "text",
"type": "installation_setup",
"installationId": "text",
"status": "active",
"previous": {
"status": "active",
"configuration": {}
}
},
"status": "success"
}
]
}
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-08-26T20:44:16.148Z",
"payload": {
"eventId": "text",
"type": "installation_setup",
"installationId": "text",
"status": "active",
"previous": {
"status": "active",
"configuration": {}
}
},
"status": "success"
},
"trace": {
"logs": [
{
"message": "text",
"timestamp": "2025-08-26T20:44:16.148Z",
"level": "debug"
}
]
}
}
GET /v1/integrations/{integrationName}/spaces HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"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"
}
]
}
GET /v1/integrations/{integrationName}/sites HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"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"
}
]
}
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
}
DELETE /v1/integrations/{integrationName}/dev HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
GET /v1/integrations/{integrationName}/render HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"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]"
}
}
}
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"
}
}
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
}
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-08-26T20:44:16.148Z",
"updatedAt": "2025-08-26T20:44:16.148Z",
"urls": {
"location": "https://example.com",
"app": "https://example.com",
"publicEndpoint": "https://example.com"
},
"externalIds": [
"text"
],
"target": {
"organization": "text"
}
}
DELETE /v1/integrations/{integrationName}/installations/{installationId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
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"
}
POST /v1/integrations/{integrationName}/installations/{installationId}/tokens HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
GET /v1/integrations/{integrationName}/installations/{installationId}/spaces HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
GET /v1/integrations/{integrationName}/installations/{installationId}/spaces/{spaceId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
DELETE /v1/integrations/{integrationName}/installations/{installationId}/spaces/{spaceId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
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"
}
}
GET /v1/integrations/{integrationName}/installations/{installationId}/sites HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
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"
}
GET /v1/integrations/{integrationName}/installations/{installationId}/sites/{siteId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
DELETE /v1/integrations/{integrationName}/installations/{installationId}/sites/{siteId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
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"
}
}
GET /v1/orgs/{organizationId}/integrations HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
GET /v1/orgs/{organizationId}/integrations/{integrationName}/installation_status HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"status": "active"
}
GET /v1/orgs/{organizationId}/installations HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"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-08-26T20:44:16.148Z",
"updatedAt": "2025-08-26T20:44:16.148Z",
"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-08-26T20:44:16.148Z",
"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-08-26T20:44:16.148Z",
"hasPaymentFailed": true,
"isScheduledToCancel": true,
"pricing": {
"members": {
"plus_2024": {
"monthly": 1,
"yearly": 1
},
"pro_2024": {
"monthly": 1,
"yearly": 1
}
},
"sites": {
"premium": {
"monthly": 1,
"yearly": 1
},
"ultimate": {
"monthly": 1,
"yearly": 1
}
}
},
"usageAddons": {
"ANY_ADDITIONAL_PROPERTY": {
"enabled": true
}
}
},
"urls": {
"location": "https://example.com",
"app": "https://example.com",
"logo": "https://example.com"
},
"trial": {
"status": "notapplicable",
"endDate": "2025-08-26T20:44:16.148Z",
"decision": "downgrade"
},
"customHostname": "text",
"blocked": {
"reason": "security"
},
"internal_billingMigration": {
"deadline": "2025-08-26T20:44:16.148Z",
"discountPercent": 1,
"discountEndDate": "2025-08-26T20:44:16.148Z"
},
"permissions": {
"view": true,
"admin": true,
"ownTeam": true,
"createContent": true,
"createOpenAPISpec": true,
"ingestConversations": true,
"viewBilling": true,
"listMembers": true,
"listTeams": true,
"listIntegrations": true,
"listInstallations": true,
"installIntegration": 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
},
"contentSecurityPolicy": "text"
}
}
]
}
GET /v1/orgs/{organizationId}/integrations/installations-status HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"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-08-26T20:44:16.148Z",
"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-08-26T20:44:16.148Z",
"hasPaymentFailed": true,
"isScheduledToCancel": true,
"pricing": {
"members": {
"plus_2024": {
"monthly": 1,
"yearly": 1
},
"pro_2024": {
"monthly": 1,
"yearly": 1
}
},
"sites": {
"premium": {
"monthly": 1,
"yearly": 1
},
"ultimate": {
"monthly": 1,
"yearly": 1
}
}
},
"usageAddons": {
"ANY_ADDITIONAL_PROPERTY": {
"enabled": true
}
}
},
"urls": {
"location": "https://example.com",
"app": "https://example.com",
"logo": "https://example.com"
},
"trial": {
"status": "notapplicable",
"endDate": "2025-08-26T20:44:16.148Z",
"decision": "downgrade"
},
"customHostname": "text",
"blocked": {
"reason": "security"
},
"internal_billingMigration": {
"deadline": "2025-08-26T20:44:16.148Z",
"discountPercent": 1,
"discountEndDate": "2025-08-26T20:44:16.148Z"
},
"permissions": {
"view": true,
"admin": true,
"ownTeam": true,
"createContent": true,
"createOpenAPISpec": true,
"ingestConversations": true,
"viewBilling": true,
"listMembers": true,
"listTeams": true,
"listIntegrations": true,
"listInstallations": true,
"installIntegration": 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
},
"contentSecurityPolicy": "text"
}
}
]
}
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
}
]
GET /v1/orgs/{organizationId}/sites/{siteId}/integrations HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"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-08-26T20:44:16.148Z",
"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-08-26T20:44:16.148Z",
"hasPaymentFailed": true,
"isScheduledToCancel": true,
"pricing": {
"members": {
"plus_2024": {
"monthly": 1,
"yearly": 1
},
"pro_2024": {
"monthly": 1,
"yearly": 1
}
},
"sites": {
"premium": {
"monthly": 1,
"yearly": 1
},
"ultimate": {
"monthly": 1,
"yearly": 1
}
}
},
"usageAddons": {
"ANY_ADDITIONAL_PROPERTY": {
"enabled": true
}
}
},
"urls": {
"location": "https://example.com",
"app": "https://example.com",
"logo": "https://example.com"
},
"trial": {
"status": "notapplicable",
"endDate": "2025-08-26T20:44:16.148Z",
"decision": "downgrade"
},
"customHostname": "text",
"blocked": {
"reason": "security"
},
"internal_billingMigration": {
"deadline": "2025-08-26T20:44:16.148Z",
"discountPercent": 1,
"discountEndDate": "2025-08-26T20:44:16.148Z"
},
"permissions": {
"view": true,
"admin": true,
"ownTeam": true,
"createContent": true,
"createOpenAPISpec": true,
"ingestConversations": true,
"viewBilling": true,
"listMembers": true,
"listTeams": true,
"listIntegrations": true,
"listInstallations": true,
"installIntegration": 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
},
"contentSecurityPolicy": "text"
}
]
}