profile

Embed
Preview of the card
<a href="https://linkyhub.net/docs/ref-profile"><img src="https://linkyhub.net/docs/_api/public/orgs/2fd2a4b7-b627-4925-af1e-1c51bf890403/spaces/c4b920fb-a433-40b5-b354-ff84bf0c3eb1/pages/d90f1554-11bf-4d83-88c9-7bb8b86b3e2e/social-card.svg?v=3e7ae33eec8b" alt="profile" width="600" height="315"></a>
GEThttps://linkyhub.net/api/v3/meScope profile:read

The creator this token acts for: id, username, display name, avatar and public URL. Never their email.

Code samples

cURL
curl -X GET "https://linkyhub.net/api/v3/me" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
Example
{
  "data": {
    "id": "string",
    "username": "string",
    "displayName": "string",
    "avatarUrl": "string",
    "url": "string"
  },
  "id": "string",
  "username": "string",
  "displayName": "string",
  "avatarUrl": "string",
  "url": "string",
  "bio": "string",
  "publicUrl": "string"
}
Schema
dataobjectrequired
Show child parameters
idstringrequired
The creator’s id: the same as the access token’s sub.
usernamestringrequired
displayNamestringrequired
avatarUrlstringrequired
urlstringrequired
Their public page.
idstringrequired
The creator’s id: the same as the access token’s sub.
usernamestringrequired
displayNamestringrequired
avatarUrlstringrequired
urlstringrequired
Their public page.
biostringrequired
publicUrlstringrequired
Deprecated: use data.url.
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.
PATCHhttps://linkyhub.net/api/v3/meScope pages:write

Change the display name, bio or social links. Social links replace the whole set.

Request body

application/json
displayNamestring
biostring
socialLinksobject[]
Show child parameters
platformstringrequired
INSTAGRAM | TIKTOK | YOUTUBE | TWITTER | DISCORD | GITHUB | LINKEDIN | SPOTIFY | TWITCH | FACEBOOK | THREADS | SNAPCHAT | PINTEREST | REDDIT | TUMBLR | BLUESKY | MASTODON | WHATSAPP | TELEGRAM | SIGNAL | APPLE_MUSIC | SOUNDCLOUD | BANDCAMP | AUDIOMACK | DEEZER | TIDAL | PATREON | KOFI | BUYMEACOFFEE | SUBSTACK | MEDIUM | BEHANCE | DRIBBBLE | ETSY | SHOPIFY | AMAZON | KICKSTARTER | VIMEO | RUMBLE | KICK | STEAM | XBOX | PLAYSTATION | ROBLOX | STRAVA | GOODREADS | IMDB | CAMEO | CALENDLY | EMAIL
urlstringrequired
{
  "displayName": "string",
  "bio": "string",
  "socialLinks": [
    {
      "platform": "INSTAGRAM",
      "url": "string"
    }
  ]
}

Code samples

cURL
curl -X PATCH "https://linkyhub.net/api/v3/me" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"displayName":"string","bio":"string","socialLinks":[{"platform":"INSTAGRAM","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.

Same as default · GET /me

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/me/settingsScope profile:read

Everything on the settings screen except sign-in: profile, social links, timezone, language and plan.

Code samples

cURL
curl -X GET "https://linkyhub.net/api/v3/me/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 /me

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/me/settingsScope profile:write

Change the timezone or language. Name, bio and social links are PATCH /me.

Request body

application/json
timezonestring
languagestring
{
  "timezone": "string",
  "language": "string"
}

Code samples

cURL
curl -X PATCH "https://linkyhub.net/api/v3/me/settings" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"timezone":"string","language":"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 /me

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/me/usernameScope profile:read

Whether a username is valid and free for this creator.

Parameters

usernamestringqueryrequired

Code samples

cURL
curl -X GET "https://linkyhub.net/api/v3/me/username?username=<username>" \
  -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 /me

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/me/usernameScope profile:write

Change the username. The page moves to the new address and old links to it stop working.

Request body

application/json
usernamestringrequired
{
  "username": "string"
}

Code samples

cURL
curl -X PUT "https://linkyhub.net/api/v3/me/username" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username":"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 /me

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/me/avatarScope pages:write

Replace the avatar (multipart, part "file").

Request body

multipart/form-data
filestringrequired
{
  "file": "string"
}

Code samples

cURL
curl -X POST "https://linkyhub.net/api/v3/me/avatar" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY" \
  -H "Content-Type: multipart/form-data" \
  -d '{"file":"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 /me

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
DELETEhttps://linkyhub.net/api/v3/me/avatarScope pages:write

Remove the avatar.

Code samples

cURL
curl -X DELETE "https://linkyhub.net/api/v3/me/avatar" \
  -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 /me

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