curl -X POST https://okl.ink/api/v1/pages/cly1019283749/publish \
-H "Authorization: Bearer YOUR_API_TOKEN"
{
"published": true
}
Pages
Toggle Publish
Toggle the published state of an okl.ink page.
POST
/
api
/
v1
/
pages
/
{id}
/
publish
curl -X POST https://okl.ink/api/v1/pages/cly1019283749/publish \
-H "Authorization: Bearer YOUR_API_TOKEN"
{
"published": true
}
Toggle Publish
Toggles whether a page is publicly visible at its/:slug route or restricted to private drafts. Requires pages:write scope.
Headers
string
required
Bearer token with
pages:write scope.Path Parameters
string
required
The project ID.
Response
boolean
The new publication state (
true or false).curl -X POST https://okl.ink/api/v1/pages/cly1019283749/publish \
-H "Authorization: Bearer YOUR_API_TOKEN"
{
"published": true
}