A URL is an entity in GitBook that represents the location of a published GitBook site.
GET
Last updated 1 year ago
OK
const response = await fetch('https://api.gitbook.com/v1/urls/content', { method: 'GET', headers: { "Authorization": "Bearer <token>" }, }); const data = await response.json();
{ "collection": { "object": "collection", "id": "text", "title": "text", "description": "text", "path": "text", "visibility": "public", "publishingType": "variants", "organization": "text", "parent": "text", "defaultLevel": "admin", "urls": { "location": "https://example.com", "app": "https://example.com" } } }