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 TranslationSettings object

Attributes
objectstring · enumrequiredAvailable options:
idstringrequired

Unique identifier of the translation settings

titlestring · min: 1 · max: 100required

Title of the translation settings

languagesstring · enum[]required
createdAtstring · date-timerequired
updatedAtstring · date-timerequired
permissionsobjectrequired
urlsobjectrequired

URLs associated with the object

The TranslationSettings object

{
  "object": "translation-settings",
  "id": "text",
  "title": "text",
  "languages": [
    "en"
  ],
  "createdAt": "2025-04-16T04:38:06.915Z",
  "updatedAt": "2025-04-16T04:38:06.915Z",
  "permissions": {
    "edit": true
  },
  "urls": {
    "location": "https://example.com"
  }
}

List all the translation settings

get
Authorizations
Path parameters
organizationIdstringrequired

The unique id of the organization

Query parameters
pagestringoptional

Identifier of the page results to fetch.

limitnumber · max: 1000optional

The number of results per page

Responses
application/json
all ofoptional
get
GET /v1/orgs/{organizationId}/translations HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

OK

{
  "next": {
    "page": "text"
  },
  "count": 1,
  "items": [
    {
      "object": "translation-settings",
      "id": "text",
      "title": "text",
      "languages": [
        "en"
      ],
      "createdAt": "2025-04-16T04:38:06.915Z",
      "updatedAt": "2025-04-16T04:38:06.915Z",
      "permissions": {
        "edit": true
      },
      "urls": {
        "location": "https://example.com"
      }
    }
  ]
}

Create a translation settings

post
Authorizations
Path parameters
organizationIdstringrequired

The unique id of the organization

Body
titlestringrequired

The title of the translation settings

Responses
application/json
objectoptional
post
POST /v1/orgs/{organizationId}/translations HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 16

{
  "title": "text"
}
{
  "object": "translation-settings",
  "id": "text",
  "title": "text",
  "languages": [
    "en"
  ],
  "createdAt": "2025-04-16T04:38:06.915Z",
  "updatedAt": "2025-04-16T04:38:06.915Z",
  "permissions": {
    "edit": true
  },
  "urls": {
    "location": "https://example.com"
  }
}

Get a translation settings by its ID

get
Authorizations
Path parameters
organizationIdstringrequired

The unique id of the organization

translationSettingsIdstringrequired

The unique id of the translation settings

Responses
application/json
objectoptional
get
GET /v1/orgs/{organizationId}/translations/{translationSettingsId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "object": "translation-settings",
  "id": "text",
  "title": "text",
  "languages": [
    "en"
  ],
  "createdAt": "2025-04-16T04:38:06.915Z",
  "updatedAt": "2025-04-16T04:38:06.915Z",
  "permissions": {
    "edit": true
  },
  "urls": {
    "location": "https://example.com"
  }
}

Update a translation settings

put
Authorizations
Path parameters
organizationIdstringrequired

The unique id of the organization

translationSettingsIdstringrequired

The unique id of the translation settings

Body
titlestringrequired

The title of the translation settings

Responses
application/json
objectoptional
put
PUT /v1/orgs/{organizationId}/translations/{translationSettingsId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 16

{
  "title": "text"
}
{
  "object": "translation-settings",
  "id": "text",
  "title": "text",
  "languages": [
    "en"
  ],
  "createdAt": "2025-04-16T04:38:06.915Z",
  "updatedAt": "2025-04-16T04:38:06.915Z",
  "permissions": {
    "edit": true
  },
  "urls": {
    "location": "https://example.com"
  }
}

Delete a translation settings

delete
Authorizations
Path parameters
organizationIdstringrequired

The unique id of the organization

translationSettingsIdstringrequired

The unique id of the translation settings

Responses
delete
DELETE /v1/orgs/{organizationId}/translations/{translationSettingsId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
205

Translation settings has been deleted

No Content

Was this helpful?