curl -X POST https://okl.ink/api/v1/pages \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "My Project Hub",
"description": "Essential links, repository, and live demo.",
"slug": "my-project-hub",
"theme": {
"preset": "oklink",
"density": "comfortable"
}
}'
{
"id": "cly1019283749",
"slug": "my-project-hub",
"title": "My Project Hub",
"published": false
}
Pages
Create Page
Create a new project page with metadata, optional theme, and links.
POST
/
api
/
v1
/
pages
curl -X POST https://okl.ink/api/v1/pages \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "My Project Hub",
"description": "Essential links, repository, and live demo.",
"slug": "my-project-hub",
"theme": {
"preset": "oklink",
"density": "comfortable"
}
}'
{
"id": "cly1019283749",
"slug": "my-project-hub",
"title": "My Project Hub",
"published": false
}
Create Page
Creates a new okl.ink page belonging to the token owner. Requirespages:write scope.
Headers
string
required
Bearer token with
pages:write scope.Request Body
string
required
Page title.
string
required
One-line summary for page header and SEO metadata.
string
required
Unique URL slug (e.g.,
my-project). Must be alphanumeric + hyphens.string
Optional
http(s) cover banner image URL.string
Optional creator display name.
object
Optional theme configuration object.
Response
string
Created page ID.
string
Assigned slug.
string
Page title.
boolean
Publication status (defaults to
false).curl -X POST https://okl.ink/api/v1/pages \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "My Project Hub",
"description": "Essential links, repository, and live demo.",
"slug": "my-project-hub",
"theme": {
"preset": "oklink",
"density": "comfortable"
}
}'
{
"id": "cly1019283749",
"slug": "my-project-hub",
"title": "My Project Hub",
"published": false
}