Resolve a URL of a published content.
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
redirectOnErrorbooleanOptionalDefault:
When true redirects the user to the authentication/fallback URL if the access token is invalid
falseResponses
200
OK
application/json
or
or
404
No content found for the URL.
application/json
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?