URLs

A URL is an entity in GitBook that represents the location of a published GitBook site.

Resolve a URL to a content (space, collection, page)

get
Authorizations
Query parameters
urlstringRequired

URL to resolve

Responses
200

OK

application/json
Responseone of
or
get
/urls/content
GET /v1/urls/content?url=text HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

OK

{
  "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": {
      "view": true,
      "admin": true,
      "viewInviteLinks": true,
      "create": true
    }
  }
}

Was this helpful?