For the complete documentation index, see llms.txt. This page is also available as Markdown.

Resolve a URL of a published content.

Deprecated
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
urlstring · uri · max: 2048Required

URL to resolve

visitorAuthTokenstringOptional

JWT token generated for a authenticated access session

redirectOnErrorbooleanOptional

When true redirects the user to the authentication/fallback URL if the access token is invalid

Default: false
Responses
200

OK

application/json
or
or
get/urls/published
GET /v1/urls/published?url=https%3A%2F%2Fexample.com HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "target": "application",
  "redirect": "https://example.com"
}

Last updated

Was this helpful?

Powered by GitBook