pages
GET
https://linkyhub.net/api/v3 /pages Scope pages:readThe creator’s pages and the blocks on each, in display order.
Code samples
cURL
curl -X GET "https://linkyhub.net/api/v3/pages" \
-H "Authorization: Bearer $LINKYHUB_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Done.
Example
{
"data": [
{}
]
}Schema
dataobject[]requiredHeaders
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Example
{
"error": "string",
"message": "string"
}Schema
errorstringrequiredA stable code to branch on, e.g. insufficient_scope.
messagestringrequiredA sentence to show a person.
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
GET
https://linkyhub.net/api/v3 /page Scope pages:readThe main page in editing order, with its blocks and links.
Code samples
cURL
curl -X GET "https://linkyhub.net/api/v3/page" \
-H "Authorization: Bearer $LINKYHUB_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Done.
{}Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /pages
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
POST
https://linkyhub.net/api/v3 /pages/{pageId}/publish Scope pages:writePut a page on the public internet.
Parameters
pageIdstringpathrequiredCode samples
cURL
curl -X POST "https://linkyhub.net/api/v3/pages/{pageId}/publish" \
-H "Authorization: Bearer $LINKYHUB_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Done.
{}Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /pages
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
PATCH
https://linkyhub.net/api/v3 /pages/{pageId} Scope pages:writeChange a page’s search title and description, custom CSS (Pro), or hide Linky Hub branding (Pro).
Parameters
pageIdstringpathrequiredRequest body
application/json
seoTitlestringseoDescriptionstringcustomCssstringhideBrandingboolean{
"seoTitle": "string",
"seoDescription": "string",
"customCss": "string",
"hideBranding": true
}Code samples
cURL
curl -X PATCH "https://linkyhub.net/api/v3/pages/{pageId}" \
-H "Authorization: Bearer $LINKYHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"seoTitle":"string","seoDescription":"string","customCss":"string","hideBranding":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Done.
{}Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /pages
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
PUT
https://linkyhub.net/api/v3 /pages/{pageId}/theme Scope pages:writeReplace a page’s theme: layout, colours, background and font, as pages.main returns it.
Parameters
pageIdstringpathrequiredRequest body
application/json
themeobjectrequiredShow child parameters
backgroundColorstringrequiredtextColorstringrequiredbuttonColorstringrequiredaccentColorstringrequiredsecondaryColorstringrequiredfontFamilystringrequiredfontSourcestringrequiredlayoutstringrequiredbuttonStylestringrequiredbuttonRadiusintegerrequiredbackgroundTypestringrequiredbackgroundImageUrlstringbackgroundVideoUrlstringbackgroundConfigobject{
"theme": {
"backgroundColor": "string",
"textColor": "string",
"buttonColor": "string",
"accentColor": "string",
"secondaryColor": "string",
"fontFamily": "string",
"fontSource": "system",
"layout": "CENTERED",
"buttonStyle": "rounded",
"buttonRadius": 0,
"backgroundType": "SOLID",
"backgroundImageUrl": "string",
"backgroundVideoUrl": "string",
"backgroundConfig": {}
}
}Code samples
cURL
curl -X PUT "https://linkyhub.net/api/v3/pages/{pageId}/theme" \
-H "Authorization: Bearer $LINKYHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"theme":{"backgroundColor":"string","textColor":"string","buttonColor":"string","accentColor":"string","secondaryColor":"string","fontFamily":"string","fontSource":"system","layout":"CENTERED","buttonStyle":"rounded","buttonRadius":0,"backgroundType":"SOLID","backgroundImageUrl":"string","backgroundVideoUrl":"string","backgroundConfig":{}}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Done.
{}Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /pages
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
POST
https://linkyhub.net/api/v3 /pages/{pageId}/unpublish Scope pages:writeTake a page offline.
Parameters
pageIdstringpathrequiredCode samples
cURL
curl -X POST "https://linkyhub.net/api/v3/pages/{pageId}/unpublish" \
-H "Authorization: Bearer $LINKYHUB_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Done.
{}Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /pages
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
GET
https://linkyhub.net/api/v3 /pages/{pageId}/settings Scope pages:readA page’s search title and description, custom CSS, branding, password lock and per-block audiences.
Parameters
pageIdstringpathrequiredCode samples
cURL
curl -X GET "https://linkyhub.net/api/v3/pages/{pageId}/settings" \
-H "Authorization: Bearer $LINKYHUB_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Done.
{}Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /pages
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
PUT
https://linkyhub.net/api/v3 /pages/{pageId}/lock Scope pages:writePassword-protect a page. Omit password to change only the hint; null removes the lock.
Parameters
pageIdstringpathrequiredRequest body
application/json
passwordstringAt least 8 characters; null unlocks the page.
hintstring{
"password": "string",
"hint": "string"
}Code samples
cURL
curl -X PUT "https://linkyhub.net/api/v3/pages/{pageId}/lock" \
-H "Authorization: Bearer $LINKYHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"password":"string","hint":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Done.
{}Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /pages
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
POST
https://linkyhub.net/api/v3 /pages/{pageId}/template Scope pages:writeReplace a page’s theme and blocks with a template’s. The old page is kept as a revision.
Parameters
pageIdstringpathrequiredRequest body
application/json
templateIdstringrequiredThe template id.
{
"templateId": "string"
}Code samples
cURL
curl -X POST "https://linkyhub.net/api/v3/pages/{pageId}/template" \
-H "Authorization: Bearer $LINKYHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"templateId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Done.
{}Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /pages
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
Updated