apps

Embed
Preview of the card
<a href="https://linkyhub.net/docs/ref-apps"><img src="https://linkyhub.net/docs/_api/public/orgs/2fd2a4b7-b627-4925-af1e-1c51bf890403/spaces/c4b920fb-a433-40b5-b354-ff84bf0c3eb1/pages/5a24f5f1-6d09-4f36-8593-1b829079aeb6/social-card.svg?v=3e7ae33eec8b" alt="apps" width="600" height="315"></a>
GEThttps://linkyhub.net/api/v3/appsScope apps:read

The 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[]required
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/appsScope apps:write

Register an OAuth app owned by this account. It starts in development. The response carries the client secret, once.

Request body

application/json
slugstringrequired
Lowercase letters, numbers and single hyphens. Fixed once registered.
namestringrequired
taglinestring
descriptionstring
homepageUrlstringrequired
https, on a public host.
widgetUrlstring
Framed on pages that connect the app. Omit for an API-only app.
redirectUrisstring[]required
Matched exactly. Public clients may also use http://127.0.0.1:<port> or com.example.app:/callback.
categorystring
music | video | commerce | community | productivity | analytics | other
scopesstring[]required
Catalogue scopes the app will ask creators for.
isPublicboolean
No secret: mobile, desktop and CLI apps (PKCE and the device flow). Fixed once registered.
acceptTermsrequired
You 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-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 /apps

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/apps/{appId}Scope apps:read

One of this account’s OAuth apps.

Parameters

appIdstringpathrequired

Code 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-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 /apps

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/apps/{appId}Scope apps:write

Delete the app. Every token it holds stops working and every creator who connected it is disconnected.

Parameters

appIdstringpathrequired

Code 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-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 /apps

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/apps/{appId}Scope apps:write

Change an app’s listing and registration. Only the fields sent change; redirectUris and scopes replace the lists.

Parameters

appIdstringpathrequired

Request body

application/json
namestring
taglinestring
descriptionstring
homepageUrlstring
https, on a public host.
widgetUrlstring
Framed 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.
categorystring
music | video | commerce | community | productivity | analytics | other
scopesstring[]
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-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 /apps

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/apps/{appId}/rotate-secretScope apps:write

A new client secret, returned once. The old one keeps working for 24 hours.

Parameters

appIdstringpathrequired

Code 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-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 /apps

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/apps/{appId}/submitScope apps:write

Ask Linky Hub to review the app. Once approved, any creator can connect it.

Parameters

appIdstringpathrequired

Code 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-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 /apps

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/apps/{appId}/webhookScope apps:read

The app’s webhook: url, events, createdAt and lastDeliveryAt. Never the secret. 404 when none is set.

Parameters

appIdstringpathrequired

Code 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-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 /apps

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/apps/{appId}/webhookScope apps:write

Set 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

appIdstringpathrequired

Request body

application/json
urlstringrequired
https, 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-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 /apps

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