curl https://okl.ink/api/v1/pages/cly1019283749/links \
-H "Authorization: Bearer YOUR_API_TOKEN"
[
{
"id": "cmsh_link_99",
"type": "github",
"url": "https://github.com/hebuildapps/demo-links",
"position": 0,
"title": "okl.ink Source Code",
"size": "2x1",
"thumbnail": null,
"active": true,
"highlighted": false,
"clicks": 142
}
]
Links
List Page Links
Retrieve all links belonging to a project ordered by position.
GET
/
api
/
v1
/
pages
/
{id}
/
links
curl https://okl.ink/api/v1/pages/cly1019283749/links \
-H "Authorization: Bearer YOUR_API_TOKEN"
[
{
"id": "cmsh_link_99",
"type": "github",
"url": "https://github.com/hebuildapps/demo-links",
"position": 0,
"title": "okl.ink Source Code",
"size": "2x1",
"thumbnail": null,
"active": true,
"highlighted": false,
"clicks": 142
}
]
List Page Links
Returns all links associated with a page, including their click counts and grid positions. Requirespages:read scope.
Headers
string
required
Bearer token with
pages:read scope.Path Parameters
string
required
The project ID.
Response
Returns an array of link tile objects:string
Link ID
string
Link type
string
Destination URL
number
Position index
string | null
Title
string
Tile span size
string | null
Thumbnail URL
boolean
Active status
boolean
Highlight state
number
Outbound click count
curl https://okl.ink/api/v1/pages/cly1019283749/links \
-H "Authorization: Bearer YOUR_API_TOKEN"
[
{
"id": "cmsh_link_99",
"type": "github",
"url": "https://github.com/hebuildapps/demo-links",
"position": 0,
"title": "okl.ink Source Code",
"size": "2x1",
"thumbnail": null,
"active": true,
"highlighted": false,
"clicks": 142
}
]