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
Import run created successfully.
Bad Request
Not Found
POST /v1/org/{organizationId}/imports HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 120
{
"source": {
"type": "website",
"url": "https://example.com"
},
"target": {
"space": "text",
"changeRequest": "text",
"page": "text"
}
}{
"id": "text",
"startedAt": "2025-10-24T19:46:05.903Z",
"completedAt": "2025-10-24T19:46:05.903Z",
"status": "pending",
"pages": [
{
"id": "text",
"sourceURL": "text"
}
]
}The unique id of the organization
The unique id of the import run
Import run canceled successfully.
Bad Request
Not Found
POST /v1/org/{organizationId}/imports/{importRunId}/cancel HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"startedAt": "2025-10-24T19:46:05.903Z",
"completedAt": "2025-10-24T19:46:05.903Z",
"status": "pending",
"pages": [
{
"id": "text",
"sourceURL": "text"
}
]
}