Custom fonts
Bring your own fonts to personalize your documentation style.
Upload and manage custom fonts for branding or aesthetic purposes. Once added, fonts can be applied to your spaces or sites to achieve a unique look.
The unique id of the organization
OK
Not Found
GET /v1/orgs/YOUR_ORGANIZATION_ID/fonts HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_API_TOKEN
Accept: */*
{
"next": {
"page": "text"
},
"count": 1,
"items": [
{
"id": "text",
"custom": true,
"fontFamily": "text",
"fontFaces": [
{
"weight": 1,
"sources": [
{
"url": "https://example.com",
"format": "woff2"
}
]
}
],
"permissions": {
"edit": true
}
}
]
}The unique id of the organization
Defines a custom font and associated font faces with storage references.
The human-readable font-family name used in CSS (e.g., "Open Sans", "Playfair Display").
Custom font created successfully.
Not Found
Invalid request data, such as missing required font weights.
PUT /v1/orgs/YOUR_ORGANIZATION_ID/fonts HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_API_TOKEN
Content-Type: application/json
Content-Length: 68
Accept: */*
{
"fontFamily": "text",
"fontFaces": [
{
"weight": 1,
"storageKey": "text"
}
]
}{
"id": "text",
"custom": true,
"fontFamily": "text",
"fontFaces": [
{
"weight": 1,
"sources": [
{
"url": "https://example.com",
"format": "woff2"
}
]
}
],
"permissions": {
"edit": true
}
}The unique id of the organization
The unique ID of a font
Custom font.
Organization or font not found.
GET /v1/orgs/YOUR_ORGANIZATION_ID/fonts/YOUR_FONT_ID HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_API_TOKEN
Accept: */*
{
"id": "text",
"custom": true,
"fontFamily": "text",
"fontFaces": [
{
"weight": 1,
"sources": [
{
"url": "https://example.com",
"format": "woff2"
}
]
}
],
"permissions": {
"edit": true
}
}The unique id of the organization
The unique ID of a font
Defines a custom font and associated font faces with storage references.
The human-readable font-family name used in CSS (e.g., "Open Sans", "Playfair Display").
Custom font created successfully.
Not Found
Invalid request data, such as missing required font weights.
POST /v1/orgs/YOUR_ORGANIZATION_ID/fonts/YOUR_FONT_ID HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_API_TOKEN
Content-Type: application/json
Content-Length: 68
Accept: */*
{
"fontFamily": "text",
"fontFaces": [
{
"weight": 1,
"storageKey": "text"
}
]
}{
"id": "text",
"custom": true,
"fontFamily": "text",
"fontFaces": [
{
"weight": 1,
"sources": [
{
"url": "https://example.com",
"format": "woff2"
}
]
}
],
"permissions": {
"edit": true
}
}The unique id of the organization
The unique ID of a font
Organization or font not found.
Custom font deleted successfully.
DELETE /v1/orgs/YOUR_ORGANIZATION_ID/fonts/YOUR_FONT_ID HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_API_TOKEN
Accept: */*
No content
Last updated
Was this helpful?