translations
GET
https://linkyhub.net/api/v3 /page/translations Scope pages:readThe main page’s language, its translations, which settings of each block are translatable, and the supported languages.
Code samples
cURL
curl -X GET "https://linkyhub.net/api/v3/page/translations" \
-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.
PUT
https://linkyhub.net/api/v3 /page/locale Scope pages:writeSet the language the main page is written in.
Request body
application/json
localestringrequired{
"locale": "string"
}Code samples
cURL
curl -X PUT "https://linkyhub.net/api/v3/page/locale" \
-H "Authorization: Bearer $LINKYHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"locale":"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 /page/translations
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 /page/translations/{locale} Scope pages:writeCreate or change a translation. Only fields sent are changed; isPublished adds it to the language switcher.
Parameters
localestringpathrequiredRequest body
application/json
profileOverridesobjectShow child parameters
displayNamestringbiostringblockOverridesobjectBy block id: translated values for the keys translations.list names.
seoTitlestringseoDescriptionstringisPublishedboolean{
"profileOverrides": {
"displayName": "string",
"bio": "string"
},
"blockOverrides": {},
"seoTitle": "string",
"seoDescription": "string",
"isPublished": true
}Code samples
cURL
curl -X PUT "https://linkyhub.net/api/v3/page/translations/{locale}" \
-H "Authorization: Bearer $LINKYHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"profileOverrides":{"displayName":"string","bio":"string"},"blockOverrides":{},"seoTitle":"string","seoDescription":"string","isPublished":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 /page/translations
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
DELETE
https://linkyhub.net/api/v3 /page/translations/{locale} Scope pages:writeDelete a translation.
Parameters
localestringpathrequiredCode samples
cURL
curl -X DELETE "https://linkyhub.net/api/v3/page/translations/{locale}" \
-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 /page/translations
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
Updated