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

Resolve a URL of a published content.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
urlstring · uri · max: 2048Required

URL to resolve

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
post/urls/published
POST /v1/urls/published HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 194

{
  "url": "https://example.com",
  "redirectOnError": false,
  "visitor": {
    "type": "human",
    "jwtToken": "text",
    "unsignedClaims": {
      "ANY_ADDITIONAL_PROPERTY": {
        "ANY_ADDITIONAL_PROPERTY": "[Circular Reference]"
      }
    }
  }
}
{
  "target": "application",
  "redirect": "https://example.com"
}

Last updated

Was this helpful?

Powered by GitBook