Translations
Configure multi-language support and translation options for your documentation.
The Translations API provides ways to localize your content into various languages. It supports custom strings, default language settings, and more.
The unique id of the organization
Identifier of the page results to fetch.
The number of results per page
OK
GET /v1/orgs/{organizationId}/translations HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
OK
{
"next": {
"page": "text"
},
"count": 1,
"items": [
{
"object": "translation",
"id": "text",
"status": "pending",
"source": {
"space": "text",
"language": "en"
},
"language": "en",
"instructions": {
"object": "document",
"data": {
"schemaVersion": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"nodes": [
"[Circular Reference]"
]
},
"result": {
"space": "text",
"revision": "text"
},
"createdAt": "2025-08-06T04:48:41.841Z",
"updatedAt": "2025-08-06T04:48:41.841Z",
"stats": {
"runs": 1,
"totalWords": 1,
"totalPages": 1,
"totalDuration": 1,
"latestRunDuration": 1,
"latestPages": 1,
"latestWords": 1
},
"permissions": {
"view": true,
"edit": true
},
"urls": {
"location": "https://example.com"
}
}
]
}
The unique id of the organization
Translation has been created
Bad Request
POST /v1/orgs/{organizationId}/translations HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 294
{
"source": {
"space": "text",
"language": "en"
},
"language": "en",
"instructions": {
"object": "document",
"data": {
"schemaVersion": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"nodes": [
{
"object": "block",
"type": "paragraph",
"key": "text",
"nodes": [
"[Circular Reference]"
],
"isVoid": false,
"data": {
"align": "start"
}
}
]
}
}
{
"object": "translation",
"id": "text",
"status": "pending",
"source": {
"space": "text",
"language": "en"
},
"language": "en",
"instructions": {
"object": "document",
"data": {
"schemaVersion": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"nodes": [
{
"object": "block",
"type": "paragraph",
"key": "text",
"nodes": [
"[Circular Reference]"
],
"isVoid": false,
"data": {
"align": "start"
}
}
]
},
"result": {
"space": "text",
"revision": "text"
},
"createdAt": "2025-08-06T04:48:41.841Z",
"updatedAt": "2025-08-06T04:48:41.841Z",
"stats": {
"runs": 1,
"totalWords": 1,
"totalPages": 1,
"totalDuration": 1,
"latestRunDuration": 1,
"latestPages": 1,
"latestWords": 1
},
"permissions": {
"view": true,
"edit": true
},
"urls": {
"location": "https://example.com"
}
}
The unique id of the organization
The unique id of the translation
OK
No matching translation found
GET /v1/orgs/{organizationId}/translations/{translationId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"object": "translation",
"id": "text",
"status": "pending",
"source": {
"space": "text",
"language": "en"
},
"language": "en",
"instructions": {
"object": "document",
"data": {
"schemaVersion": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"nodes": [
{
"object": "block",
"type": "paragraph",
"key": "text",
"nodes": [
"[Circular Reference]"
],
"isVoid": false,
"data": {
"align": "start"
}
}
]
},
"result": {
"space": "text",
"revision": "text"
},
"createdAt": "2025-08-06T04:48:41.841Z",
"updatedAt": "2025-08-06T04:48:41.841Z",
"stats": {
"runs": 1,
"totalWords": 1,
"totalPages": 1,
"totalDuration": 1,
"latestRunDuration": 1,
"latestPages": 1,
"latestWords": 1
},
"permissions": {
"view": true,
"edit": true
},
"urls": {
"location": "https://example.com"
}
}
The unique id of the organization
The unique id of the translation
Translation has been updated
Bad Request
PUT /v1/orgs/{organizationId}/translations/{translationId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 236
{
"instructions": {
"object": "document",
"data": {
"schemaVersion": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"nodes": [
{
"object": "block",
"type": "paragraph",
"key": "text",
"nodes": [
"[Circular Reference]"
],
"isVoid": false,
"data": {
"align": "start"
}
}
]
}
}
{
"object": "translation",
"id": "text",
"status": "pending",
"source": {
"space": "text",
"language": "en"
},
"language": "en",
"instructions": {
"object": "document",
"data": {
"schemaVersion": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"nodes": [
{
"object": "block",
"type": "paragraph",
"key": "text",
"nodes": [
"[Circular Reference]"
],
"isVoid": false,
"data": {
"align": "start"
}
}
]
},
"result": {
"space": "text",
"revision": "text"
},
"createdAt": "2025-08-06T04:48:41.841Z",
"updatedAt": "2025-08-06T04:48:41.841Z",
"stats": {
"runs": 1,
"totalWords": 1,
"totalPages": 1,
"totalDuration": 1,
"latestRunDuration": 1,
"latestPages": 1,
"latestWords": 1
},
"permissions": {
"view": true,
"edit": true
},
"urls": {
"location": "https://example.com"
}
}
The unique id of the organization
The unique id of the translation
Translation did not exist
Translation has been deleted
DELETE /v1/orgs/{organizationId}/translations/{translationId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Was this helpful?