POST /v1/codes/qr-wifi

Wi-Fi QR code

Guests point a camera at it and join.

Make a scan-to-join Wi-Fi code now No key, no code — 2 credits either way.

curl -X POST "$DOATHING_API/v1/codes/qr-wifi" \
  -H "x-api-key: $DOATHING_KEY" \
  -H "content-type: application/json" \
  -d '{"ssid": "Cafe Guest", "password": "flat-white-2026", "security": "WPA"}'

Guests point a camera at it and join. No spelling out the password.

Generate a Wi-Fi provisioning QR code from an SSID, password and authentication type.

Response

The result carries your remaining balance alongside it, so you can track spend without a second call.

{
  "ssid": "Cafe Guest",
  "security": "WPA",
  "payload_preview": "WIFI:T:WPA;S:Cafe Guest;…",
  "request_id": "37f01edb-0163-42a1-ac51-0acaef979800",
  "credits_remaining": 96
}

Cost

2 credits per call, whether it is run from the site or from the API — the credential differs, the price does not. A new account starts with 20 credits.

A rejected request still costs a credit: the authorizer decrements before the tool validates. A call rejected for a missing or invalid key is free.

Parameters

Generated from the endpoint’s own validation, so this is exactly what it accepts. A body field goes at the top level; an option goes inside options.

NameInTypeDefaultNotes
ssid *bodystring
securitybodystring"WPA"one of WPA, WEP, nopass
hiddenbodybooleanfalse
passwordbodystring""
error_correctionoptionsstring"M"L, M, Q or H. one of L, M, Q, H
scaleoptionsinteger8Pixels per module. 1 to 40
borderoptionsinteger40 to 20
darkoptionsstring"#000000"
lightoptionsstring"#FFFFFF"