Site auth
Manage the authentication needed for publishing your site.
Was this helpful?
Manage the authentication needed for publishing your site.
Was this helpful?
Was this helpful?
Configure the credentials or tokens required to publish documentation externally. This helps ensure your site is consistently kept up to date.
{
"backend": "custom",
"object": "publishing-auth",
"privateKey": "text",
"fallbackURL": "https://example.com",
"integration": "text"
}
OK
Bad Request
GET /v1/orgs/{organizationId}/sites/{siteId}/publishing/auth HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"backend": "custom",
"object": "publishing-auth",
"privateKey": "text",
"fallbackURL": "https://example.com",
"integration": "text"
}
OK
Bad Request
PATCH /v1/orgs/{organizationId}/sites/{siteId}/publishing/auth HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 56
{
"backend": "custom",
"fallbackURL": "https://example.com"
}
The unique id of the organization
The unique id of the site
OK
Bad Request
POST /v1/orgs/{organizationId}/sites/{siteId}/publishing/auth/regenerate HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"backend": "custom",
"object": "publishing-auth",
"privateKey": "text",
"fallbackURL": "https://example.com",
"integration": "text"
}
{
"backend": "custom",
"object": "publishing-auth",
"privateKey": "text",
"fallbackURL": "https://example.com",
"integration": "text"
}