Rest API
Read a content library page
GET
/api/v1/wiki/pages/{path}
const url = 'https://api.unless.com/api/v1/wiki/pages/example';const options = { method: 'GET', headers: { 'x-api-key': 'example', 'x-user-email': 'example', 'x-account-id': 'example', 'x-website-id': 'example' }};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.unless.com/api/v1/wiki/pages/example \ --header 'x-account-id: example' \ --header 'x-api-key: example' \ --header 'x-user-email: example' \ --header 'x-website-id: example'Read one content library page by its path. Use the browse endpoint to discover paths.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”path
required
string
Page path without the leading slash, e.g. billing/refunds.
Header Parameters
Section titled “Header Parameters”x-api-key
required
string
Your API key from account settings.
x-user-email
required
string
The email address of your user.
x-account-id
required
string
The ID of your account. You can find this in the account settings.
x-website-id
required
string
The ID of the workspace you want to use.
Responses
Section titled “Responses”The page.
Unauthorized - invalid API key.
Not found - no page at that path, or the website does not belong to the account.
Bad request - missing websiteId or path.