import

Embed
Preview of the card
<a href="https://linkyhub.net/docs/ref-import"><img src="https://linkyhub.net/docs/_api/public/orgs/2fd2a4b7-b627-4925-af1e-1c51bf890403/spaces/c4b920fb-a433-40b5-b354-ff84bf0c3eb1/pages/32ec8318-ecd8-4833-8148-b7fcd07312af/social-card.svg?v=3e7ae33eec8b" alt="import" width="600" height="315"></a>
POSThttps://linkyhub.net/api/v3/import/previewScope pages:write

Read 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-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.
POSThttps://linkyhub.net/api/v3/importScope pages:write

Add reviewed links to the page as link blocks; replaceExisting first deletes every link block.

Request body

application/json
linksobject[]required
Show child parameters
titlestringrequired
urlstringrequired
replaceExistingbooleanrequired
{
  "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-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 · POST /import/preview

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