profile
GET
https://linkyhub.net/api/v3 /me Scope profile:readThe 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
dataobjectrequiredShow child parameters
idstringrequiredThe creator’s id: the same as the access token’s sub.
usernamestringrequireddisplayNamestringrequiredavatarUrlstringrequiredurlstringrequiredTheir public page.
idstringrequiredThe creator’s id: the same as the access token’s sub.
usernamestringrequireddisplayNamestringrequiredavatarUrlstringrequiredurlstringrequiredTheir public page.
biostringrequiredpublicUrlstringrequiredDeprecated: use data.url.
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.
PATCH
https://linkyhub.net/api/v3 /me Scope pages:writeChange the display name, bio or social links. Social links replace the whole set.
Request body
application/json
displayNamestringbiostringsocialLinksobject[]Show child parameters
platformstringrequiredurlstringrequired{
"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-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 /me
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
GET
https://linkyhub.net/api/v3 /me/settings Scope profile:readEverything 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-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 /me
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
PATCH
https://linkyhub.net/api/v3 /me/settings Scope profile:writeChange the timezone or language. Name, bio and social links are PATCH /me.
Request body
application/json
timezonestringlanguagestring{
"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-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 /me
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
GET
https://linkyhub.net/api/v3 /me/username Scope profile:readWhether a username is valid and free for this creator.
Parameters
usernamestringqueryrequiredCode 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-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 /me
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 /me/username Scope profile:writeChange 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-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 /me
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 /me/avatar Scope pages:writeReplace 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-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 /me
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 /me/avatar Scope pages:writeRemove 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-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 /me
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
Updated