Skip to main content
GET
/
auth
/
device-codes
/
{code}
Poll device code status
curl --request GET \
  --url https://api.sevalla.com/v3/auth/device-codes/{code}
{
  "status": "pending",
  "token": "svl_abc123..."
}

Path Parameters

code
string
required

The device code to check the status of

Minimum string length: 1
Example:

"ABCD1234"

Response

Default Response

status
enum<string>
required

Current status of the device code. pending - waiting for user action, approved - user approved and token is included, denied - user explicitly rejected the request, expired - code has expired

Available options:
pending,
approved,
denied,
expired
Example:

"pending"

token
string

The API key token, only present when status is approved. This is the only time the token is returned - store it securely

Example:

"svl_abc123..."