Imports
Import content into GitBook.
Last updated
Was this helpful?
Import content into GitBook.
Last updated
Was this helpful?
Was this helpful?
The Imports API provides allows you to import content into GitBook.
The unique id of the organization
Enhance the imported content with AI
trueImport run created successfully.
Bad Request
Not Found
{
"id": "text",
"startedAt": "2025-11-08T15:57:21.697Z",
"completedAt": "2025-11-08T15:57:21.697Z",
"status": "pending",
"pages": [
{
"id": "text",
"sourceURL": "text",
"type": "page",
"status": "complete"
}
]
}POST /v1/org/{organizationId}/imports HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 135
{
"source": {
"type": "website",
"url": "https://example.com"
},
"target": {
"space": "text",
"changeRequest": "text",
"page": "text"
},
"enhance": true
}POST /v1/org/{organizationId}/imports/{importRunId}/cancel HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"startedAt": "2025-11-08T15:57:21.697Z",
"completedAt": "2025-11-08T15:57:21.697Z",
"status": "pending",
"pages": [
{
"id": "text",
"sourceURL": "text",
"type": "page",
"status": "complete"
}
]
}