Skip to content
Internal docs

Wi-Fi for anonymous lines

An anonymous line has no customer portal login, so the household cannot set its own Wi-Fi in the portal. These two calls cover that. They work for anonymous lines only.

  • Send a link. kurnl mails the line’s contact_email a link. The household opens it, picks a network name and a password, and the router applies them.
  • Set it yourself. You send the network name and password, for example from your own set-up page.

kurnl also sends the first link on its own. See CKO-03 anonymous.

Authentication

X-API-Key header with the provisioning:write scope. A key without it gets 403. Rate limit: 60 requests / minute per key on each call.

Address the line

The {subscription_id} in the path is the kurnl subscription_id from the completion call. To use your own identifier instead, add ?by=external_subscription_id and put your external_subscription_id in the path.

A line that is not yours, or does not exist, answers 404; so does a path id that is not a kurnl subscription_id. Looked up by your own identifier, only your own anonymous lines match: a named line, or a line of another provider with the same identifier, answers 404. Any by value other than external_subscription_id answers 422 with invalid_lookup.

POST /partner/subscriptions/{subscription_id}/wifi-link
POST /partner/subscriptions/{external_subscription_id}/wifi-link?by=external_subscription_id

No body. kurnl mails the line’s contact_email.

Response — 200 OK:

{
"expires_at": "2026-11-02T10:15:00+00:00"
}
  • The link works once and for 7 days.
  • A new link cancels the earlier link of that line if it has not been used yet.
  • At most 5 links per line in 24 hours.
  • The link is only in the mail. It is never returned to you.

Set the network yourself

PUT /partner/subscriptions/{subscription_id}/wifi
PUT /partner/subscriptions/{external_subscription_id}/wifi?by=external_subscription_id
{
"ssid": "Household Wi-Fi",
"psk": "a-password-of-8-to-63-characters"
}
Field Rules
ssid The network name. 1 to 32 characters. No quotes.
psk The password. 8 to 63 characters. No quotes. Always required.

Response — 200 OK:

{
"ssid": "Household Wi-Fi",
"apply_status": "pending"
}

kurnl never returns the password, and does not store it where you can read it back. Keep your own copy. apply_status tells you where the router stands. It is pending until the router has taken the new settings, then applied, or failed if it did not.

Errors

Status detail.code Meaning and what to do
403 The key does not have the provisioning:write scope.
404 No such line for your account, a path id that is not a kurnl subscription_id, or — with ?by=external_subscription_id — a named line or another provider’s line.
409 named_line The line belongs to a customer account. Its Wi-Fi is set in the customer portal.
409 no_line The line is not in service.
409 no_device The line has no kurnl router that can carry a Wi-Fi network.
409 no_wifi The router cannot carry a Wi-Fi network.
409 no_management_ip The router has not reported in yet. Try again later.
409 line_not_active The line is not active yet. A line waiting for its install counts once the router has made first contact.
409 no_contact_email The line has no contact_email. Link call only.
409 no_portal No customer portal address is set up for the link. Link call only. Contact kurnl.
422 invalid_lookup The by query parameter has a value other than external_subscription_id.
422 invalid_wifi The body is missing, or the name or password breaks the rules above. Set call only.
429 wifi_link_limit Five links were sent for this line in the last 24 hours. Try again later. Link call only.
429 Rate limit exceeded.
503 unavailable Try again shortly. See below.

Errors carry detail.code and detail.message. On a 4xx error nothing was sent or changed. A 503 usually means the same, but a failure late in the call can answer 503 after kurnl has already sent the network to the router, or the link to the household. Repeating the set call with the same name and password is safe.