import
POST
https://linkyhub.net/api/v3 /import/preview Scope pages:writeRead the links off a public Linktree, Beacons or bio.link page. Writes nothing.
Request body
application/json
urlstringrequired{
"url": "string"
}Code samples
cURL
curl -X POST "https://linkyhub.net/api/v3/import/preview" \
-H "Authorization: Bearer $LINKYHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"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.
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.
POST
https://linkyhub.net/api/v3 /import Scope pages:writeAdd reviewed links to the page as link blocks; replaceExisting first deletes every link block.
Request body
application/json
linksobject[]requiredShow child parameters
titlestringrequiredurlstringrequiredreplaceExistingbooleanrequired{
"links": [
{
"title": "string",
"url": "string"
}
],
"replaceExisting": true
}Code samples
cURL
curl -X POST "https://linkyhub.net/api/v3/import" \
-H "Authorization: Bearer $LINKYHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"links":[{"title":"string","url":"string"}],"replaceExisting":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 · POST /import/preview
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
Updated