gyk.dk
Get Started

Connect a WordPress site to gyk.dk

The Lynbro Short Links & QR plugin gives your posts, pages and products a short link and a print-ready QR code, and shows how many people came through each. It talks to gyk.dk only with an API key you create for the site — gyk.dk never gets access to your WordPress.

1. Create a free gyk.dk account

Sign up with your e-mail and a Danish mobile number. The Free plan includes the API: 50 links, 10 new links a day and 10,000 clicks a month with full statistics. Paid plans raise the limits.

person_addCreate account

2. Create an API key for the site

In the plugin, press “Open the API-key page”: the form opens with the site's name, its address and the two permissions already filled in. Keep both ticked — links:write (create and update links) and stats:read (show clicks) — and press “Generate New Key”.

https://gyk.dk/dashboard/api/keys/new?name=<your-site.dk>&scopes=links:write,stats:read&source=wordpress

keyOpen the API-key page

3. Paste the key and the signing secret into WordPress

Copy the API key (gyk_live_…) and the webhook signing secret (gyk_whsec_…) — both are shown only once. Paste them on the plugin's Connection screen. Lost them? Press “New key value” or “New signing secret” on the key.

4. Test the connection

Press “Save and test”. The plugin calls GET /api/v1/me and shows the account, the plan, the clicks used this month and the key's permissions and sites.

What is sent to gyk.dk

When a link is created or changed: the address of the post or product, its title and the UTM parameters you chose. With every call: your site's address, so the key works only for your site. Nothing about your visitors or users. The QR image is loaded from gyk.dk only on pages where you placed the QR block.

What gyk.dk sends back

If you turn on notifications in the plugin, gyk.dk posts link.broken (the destination stopped answering) and link.delete to your site. Each one is signed with your signing secret (X-Lynbro-Signature). The plugin refuses anything unsigned or older than five minutes, and re-reads the link from gyk.dk before it changes anything.

How to disconnect

Press “Revoke” on the key on the API page: the plugin stops working at once and notifications to the site stop. Disconnecting in WordPress only deletes the key there — revoke it here as well. Your links stay on gyk.dk.

If something goes wrong

401 invalid_key The key was not accepted — it was revoked or mistyped. Create a new key.
403 scope_missing The key is missing a permission. Create a key with both permissions ticked.
403 origin_mismatch The key belongs to another site. Create a key for this site (or add this address to the key's sites).
403 phone_verification_required Your gyk.dk account has not confirmed its e-mail and Danish mobile number yet. Sign in on gyk.dk and confirm them; the key starts working at once.
402 quota_exceeded Your plan's link limit is reached. Upgrade, or delete links you no longer need; the daily limit resets at midnight UTC.
429 rate_limited Too many requests at once — the plugin waits and retries by itself.

For developers

Calls are server-to-server with the key in X-API-Key (or Authorization: Bearer) and the site's address in X-Lynbro-Site. Every POST may carry an Idempotency-Key: a retry within 24 hours returns the first result instead of creating a second link. Errors come as {"error": {"code", "message", "details"}} with the message in the language of Accept-Language (da, en, uk). Webhooks carry X-Lynbro-Timestamp, X-Lynbro-Event-Id and X-Lynbro-Signature; path is the path of your webhook URL plus its query string, if any.

X-API-Key: gyk_live_…
X-Lynbro-Site: https://your-site.dk
Idempotency-Key: <uuid>
X-Lynbro-Timestamp: 1763380000
X-Lynbro-Event-Id: 9b2f…
X-Lynbro-Signature: v1=hex(HMAC-SHA256(signing_secret, timestamp + "." + "POST " + path + "." + raw_body))

All API endpoints · OpenAPI