Create device code
Start a device sign-in. The client shows user_code to the user, who enters it on the Sevalla dashboard authorize page and picks the company and permissions for a new API key. The client keeps device_code to itself and polls POST /auth/device-codes/token with it until the request is approved, denied or expired. Codes expire after 5 minutes and work once. Maximum 5 active codes per IP address. Send the optional x-sevalla-client header to name the client that requests access, for example sevalla-cli/2.2.0. The dashboard shows that name to the user as reported by the client. A CLI on the same computer can send callback_url so the browser hands the approval straight back to it, and then the token endpoint needs the approval_secret from that callback.
Body
Optional loopback URL where the dashboard sends the browser after the user approves or denies, for a CLI that listens on this computer. It must be http://127.0.0.1:<port>/callback/<nonce> or http://[::1]:<port>/callback/<nonce>, with a port from 1024 to 65535 and a nonce of 22 to 64 letters, digits, - or _, without a query, fragment or user info, and at most 120 characters. After approval the dashboard opens it with an approval_secret query parameter, and the token endpoint only releases the key together with that secret. On deny it adds error=access_denied instead
"http://127.0.0.1:49152/callback/q0Zr8mWbH1sLx4aPqE6uJ2dFgN7oRtYv"
Response
Default Response