Connect a WordPress site
Order, booking and form SMS, and verification codes, from your WordPress site — through your own ITBC SMS Gateway account, with a key only for that site. ITBC SMS Gateway never gets access to your WordPress.
Four steps
Create a free account
Sign up at https://sms.itbc.dk/portal/register. You pay only for the SMS you send; there is no subscription.
Create a key for the site
Open the API-key page from the plugin's Connection tab — the link fills in the site name and ticks the permissions the plugin needs (send, verify, lookup). Press “Create key”.
Paste the key and the webhook secret into WordPress
Copy both values from the page (they are shown once) and paste them into the plugin. The plugin stores them encrypted, server-side only.
Test
Press “Save and test”. The plugin shows your account name, plan, balance and which permissions the key has. Then send a test SMS to your own phone.
The key-page link
Plugins open https://sms.itbc.dk/keys/new?name=<your-domain>&scopes=send,verify,lookup&source=wordpress. Nothing is created until you press “Create key”. The key is bound to your site's address (origin), not to an IP, so moving hosting does not break it; add a staging address in the same field if you need one.
What a WordPress key may do
send— send SMS — order, booking and form notificationsverify— send and check verification codes (OTP)lookup— check whether a phone number exists
A WordPress key cannot send in bulk, change account settings or reach premium-rate number ranges, and it sends to one recipient per request. Tick only what the plugin needs.
What is sent, and what is not
- From the site to ITBC SMS Gateway: the recipient's phone number, the message text and the sender name — only when one of your rules fires.
- From ITBC SMS Gateway to the site: delivery reports (sms.queued, sms.sent, sms.delivered, sms.failed) and replies (sms.received), signed, to the one address the plugin registered on your site.
- Never: WordPress logins, passwords, users, database, FTP or SSH access. ITBC SMS Gateway cannot read or change anything on your site.
Signed webhooks (Lynbro Signature v1)
Every webhook carries three headers. The plugin checks them; you only need this if you build your own receiver.
X-Lynbro-Timestamp: 1763400000
X-Lynbro-Event-Id: 6f1d…-uuid
X-Lynbro-Signature: v1=<hex HMAC-SHA256(secret, ts + "." + METHOD + " " + path + "." + body)>
Refuse the request if the timestamp is more than 300 seconds off, if you have seen the event id before, or if the signature does not match (constant-time comparison). Then re-read the message from the API by its id before you change an order — the payload is a hint, the API is the truth.
$ts = $_SERVER['HTTP_X_LYNBRO_TIMESTAMP'] ?? '';
$id = $_SERVER['HTTP_X_LYNBRO_EVENT_ID'] ?? '';
$sig = $_SERVER['HTTP_X_LYNBRO_SIGNATURE'] ?? '';
$body = file_get_contents('php://input');
$base = $ts . '.' . $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'] . '.' . $body;
$want = 'v1=' . hash_hmac('sha256', $base, $webhook_secret);
if (abs(time() - (int) $ts) > 300 || ! hash_equals($want, $sig) || seen_before($id)) {
http_response_code(401); exit;
}
Errors the plugin shows you
| HTTP | error.code | |
|---|---|---|
| 401 | invalid_key | The key was revoked or mistyped. Create a new one. |
| 403 | scope_missing | The key lacks a permission (details.scope). Tick it on a new key. |
| 403 | origin_mismatch | The key belongs to another site. Create a key for this one. |
| 402 | quota_exceeded | No SMS credit left. Top up; nothing is lost meanwhile. |
| 429 | rate_limited | Too many requests; the plugin retries after Retry-After seconds. |
Testing without sending
Add "dry_run": true to a send to price and validate it without sending or paying. POST /api/v1/key/webhook/test sends one signed synthetic event to your site's webhook. GET /api/v1/me shows who the key belongs to.
How to disconnect
In WordPress press “Disconnect”, then revoke the key under https://sms.itbc.dk/portal/api-keys (“Revoke”). A revoked key stops at once, everywhere. If the key or the webhook secret leaked, revoke it or rotate the secret on the same page.