apps
GET
https://linkyhub.net/api/v3 /apps Scope apps:readThe OAuth apps this account registered, newest first, with client ids and redirect URIs. Never secrets.
Code samples
cURL
curl -X GET "https://linkyhub.net/api/v3/apps" \
-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.
POST
https://linkyhub.net/api/v3 /apps Scope apps:writeRegister an OAuth app owned by this account. It starts in development. The response carries the client secret, once.
Request body
application/json
slugstringrequiredLowercase letters, numbers and single hyphens. Fixed once registered.
namestringrequiredtaglinestringdescriptionstringhomepageUrlstringrequiredhttps, on a public host.
widgetUrlstringFramed on pages that connect the app. Omit for an API-only app.
redirectUrisstring[]requiredMatched exactly. Public clients may also use http://127.0.0.1:<port> or com.example.app:/callback.
categorystringscopesstring[]requiredCatalogue scopes the app will ask creators for.
isPublicbooleanNo secret: mobile, desktop and CLI apps (PKCE and the device flow). Fixed once registered.
acceptTermsrequiredYou accept the developer terms at /legal/developer-terms.
{
"slug": "string",
"name": "string",
"tagline": "string",
"description": "string",
"homepageUrl": "string",
"widgetUrl": "string",
"redirectUris": [
"string"
],
"category": "music",
"scopes": [
"profile:read"
],
"isPublic": true,
"acceptTerms": {}
}Code samples
cURL
curl -X POST "https://linkyhub.net/api/v3/apps" \
-H "Authorization: Bearer $LINKYHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"slug":"string","name":"string","tagline":"string","description":"string","homepageUrl":"string","widgetUrl":"string","redirectUris":["string"],"category":"music","scopes":["profile:read"],"isPublic":true,"acceptTerms":{}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 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 /apps
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 /apps/{appId} Scope apps:readOne of this account’s OAuth apps.
Parameters
appIdstringpathrequiredCode samples
cURL
curl -X GET "https://linkyhub.net/api/v3/apps/{appId}" \
-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 /apps
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 /apps/{appId} Scope apps:writeDelete the app. Every token it holds stops working and every creator who connected it is disconnected.
Parameters
appIdstringpathrequiredCode samples
cURL
curl -X DELETE "https://linkyhub.net/api/v3/apps/{appId}" \
-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 /apps
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 /apps/{appId} Scope apps:writeChange an app’s listing and registration. Only the fields sent change; redirectUris and scopes replace the lists.
Parameters
appIdstringpathrequiredRequest body
application/json
namestringtaglinestringdescriptionstringhomepageUrlstringhttps, on a public host.
widgetUrlstringFramed on pages that connect the app. Omit for an API-only app.
redirectUrisstring[]Matched exactly. Public clients may also use http://127.0.0.1:<port> or com.example.app:/callback.
categorystringscopesstring[]Catalogue scopes the app will ask creators for.
{
"name": "string",
"tagline": "string",
"description": "string",
"homepageUrl": "string",
"widgetUrl": "string",
"redirectUris": [
"string"
],
"category": "music",
"scopes": [
"profile:read"
]
}Code samples
cURL
curl -X PATCH "https://linkyhub.net/api/v3/apps/{appId}" \
-H "Authorization: Bearer $LINKYHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","tagline":"string","description":"string","homepageUrl":"string","widgetUrl":"string","redirectUris":["string"],"category":"music","scopes":["profile:read"]}'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 /apps
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 /apps/{appId}/rotate-secret Scope apps:writeA new client secret, returned once. The old one keeps working for 24 hours.
Parameters
appIdstringpathrequiredCode samples
cURL
curl -X POST "https://linkyhub.net/api/v3/apps/{appId}/rotate-secret" \
-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 /apps
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 /apps/{appId}/submit Scope apps:writeAsk Linky Hub to review the app. Once approved, any creator can connect it.
Parameters
appIdstringpathrequiredCode samples
cURL
curl -X POST "https://linkyhub.net/api/v3/apps/{appId}/submit" \
-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 /apps
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 /apps/{appId}/webhook Scope apps:readThe app’s webhook: url, events, createdAt and lastDeliveryAt. Never the secret. 404 when none is set.
Parameters
appIdstringpathrequiredCode samples
cURL
curl -X GET "https://linkyhub.net/api/v3/apps/{appId}/webhook" \
-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 /apps
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 /apps/{appId}/webhook Scope apps:writeSet the app’s one webhook URL and events (https on a public host). The signing secret (whsec_…) is returned only when the webhook is first created; it is null on later calls.
Parameters
appIdstringpathrequiredRequest body
application/json
urlstringrequiredhttps, on a public host.
eventsstring[]required{
"url": "string",
"events": [
"order.paid"
]
}Code samples
cURL
curl -X PUT "https://linkyhub.net/api/v3/apps/{appId}/webhook" \
-H "Authorization: Bearer $LINKYHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"string","events":["order.paid"]}'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 /apps
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
Updated