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?url=text', { method: 'GET', headers: { "Authorization": "Bearer <token>" }, }); const data = await response.json();
{ "collection": { "object": "collection", "id": "text", "title": "text", "description": "text", "organization": "text", "parent": "text", "defaultLevel": "admin", "urls": { "location": "https://example.com", "app": "https://example.com" }, "permissions": { "admin": false, "create": false } } }