LinkOpenContact

API

Send an app link to GET /api/link and get the https link back, or send a LinkOpen link and get the app link. No key, no account.

Works on
Any language
Sends
The app link or the LinkOpen link, to linkopen.app. The API works the answer out from it and stores nothing.

Errors

A request LinkOpen can’t make a link from, or read one from, gets status 400 and a short message, as plain text, or as {"error": "…"} with format=json. The messages:

  • url is missing
  • url is longer than 2048 characters
  • url must start with a scheme, like obsidian:, for stray text such as a note title
  • javascript: links are not allowed, and the same for data: and vbscript:
  • mode must be auto or manual
  • format must be text or json, always as plain text
  • send url or link, not both
  • link is longer than 2048 characters
  • link is not a LinkOpen link, for any other address, and for a LinkOpen link whose page would say it’s broken
curl, a link without a scheme
curl -G https://linkopen.app/api/link \
  --data-urlencode 'url=Roadmap' -d format=json
Response
{"error":"url must start with a scheme, like obsidian:"}

CORS and caching

Responses send Access-Control-Allow-Origin: *, so a web page on any site can call the API with fetch. Successful responses may be cached for a day. The API doesn’t save the links it’s sent; the answer is worked out on each request.

The API is described in OpenAPI 3.1 at /openapi.json, for GPT actions, automation platforms and API catalogs. The app link formats from the URL scheme list are at /schemes.json.

curl, the headers that matter
curl -sS -D - -o /dev/null -G https://linkopen.app/api/link \
  --data-urlencode 'url=slack://open' | grep -iE '^(access-control|cache-control)'
Response
access-control-allow-origin: *
cache-control: public, max-age=86400

More integrations

All integrations