pages

Embed
Preview of the card
<a href="https://linkyhub.net/docs/ref-pages"><img src="https://linkyhub.net/docs/_api/public/orgs/2fd2a4b7-b627-4925-af1e-1c51bf890403/spaces/c4b920fb-a433-40b5-b354-ff84bf0c3eb1/pages/58b6d8b8-d8e7-478d-bbaa-b1bbd522e8ce/social-card.svg?v=3e7ae33eec8b" alt="pages" width="600" height="315"></a>
GEThttps://linkyhub.net/api/v3/pagesScope pages:read

The 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[]required
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.
Example
{
  "error": "string",
  "message": "string"
}
Schema
errorstringrequired
A stable code to branch on, e.g. insufficient_scope.
messagestringrequired
A sentence to show a person.
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
GEThttps://linkyhub.net/api/v3/pageScope pages:read

The 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-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /pages

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
POSThttps://linkyhub.net/api/v3/pages/{pageId}/publishScope pages:write

Put a page on the public internet.

Parameters

pageIdstringpathrequired

Code 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-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /pages

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
PATCHhttps://linkyhub.net/api/v3/pages/{pageId}Scope pages:write

Change a page’s search title and description, custom CSS (Pro), or hide Linky Hub branding (Pro).

Parameters

pageIdstringpathrequired

Request body

application/json
seoTitlestring
seoDescriptionstring
customCssstring
hideBrandingboolean
{
  "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-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /pages

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
PUThttps://linkyhub.net/api/v3/pages/{pageId}/themeScope pages:write

Replace a page’s theme: layout, colours, background and font, as pages.main returns it.

Parameters

pageIdstringpathrequired

Request body

application/json
themeobjectrequired
Show child parameters
backgroundColorstringrequired
textColorstringrequired
buttonColorstringrequired
accentColorstringrequired
secondaryColorstringrequired
fontFamilystringrequired
fontSourcestringrequired
system | google
layoutstringrequired
CENTERED | LEFT_ALIGNED | CARD | MINIMAL | FULL_WIDTH
buttonStylestringrequired
rounded | pill | square | outline | shadow
buttonRadiusintegerrequired
backgroundTypestringrequired
SOLID | GRADIENT | IMAGE | VIDEO | ANIMATED
backgroundImageUrlstring
backgroundVideoUrlstring
backgroundConfigobject
{
  "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-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /pages

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
POSThttps://linkyhub.net/api/v3/pages/{pageId}/unpublishScope pages:write

Take a page offline.

Parameters

pageIdstringpathrequired

Code 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-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /pages

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
GEThttps://linkyhub.net/api/v3/pages/{pageId}/settingsScope pages:read

A page’s search title and description, custom CSS, branding, password lock and per-block audiences.

Parameters

pageIdstringpathrequired

Code 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-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /pages

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
PUThttps://linkyhub.net/api/v3/pages/{pageId}/lockScope pages:write

Password-protect a page. Omit password to change only the hint; null removes the lock.

Parameters

pageIdstringpathrequired

Request body

application/json
passwordstring
At 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-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /pages

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
POSThttps://linkyhub.net/api/v3/pages/{pageId}/templateScope pages:write

Replace a page’s theme and blocks with a template’s. The old page is kept as a revision.

Parameters

pageIdstringpathrequired

Request body

application/json
templateIdstringrequired
The 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-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /pages

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
Updated