Create a one-time "connect a device" link
Create a one-time "connect a device" link (QR code)
Every request sends Authorization: Bearer ...: the access token in local mode, an API key stk_... in cloud mode. Use Send to try it against your cloud instance with your API key.
Dashboard only (session or local principal). The token is in the URL fragment, valid for 5 minutes, single use.
AuthorizationBearer <token>API key (stk_...), or in the Community Edition the access token (stk_local_...)
Idempotency-Key?stringReplays the stored response when the same key is repeated with the same method, path,
query string and body within 24 hours (422 idempotency_mismatch with a different
request, 409 idempotency_in_progress while the first one runs). Not applied to
multipart uploads or to responses that carry a secret.
length <= 200Created
application/json- response
url*stringexpires_at*stringdate-timereachable*booleanfalse when the URL points at localhost
hint?stringcurl -X POST 'https://staqly.example.com/v1/device-links'{ "url": "https://staqly.example.com/connect#abc...", "expires_at": "2019-08-24T14:15:22Z", "reachable": true, "hint": "string"}