API reference / auth
auth
POST /v1/device/code
Device Code
Request body (application/json, required)
| Member | Type | Notes |
|---|---|---|
client required | string (pattern ^[a-z][a-z0-9-]{0,31}$) | e.g. senv |
client_version | string (max length 64) | null | |
mode | "live" | "test" | Default "live". |
name | string (max length 100) | null | Name for the key the human approves |
Responses
- 201 DeviceCodeOut
- 4xx 5xx
application/problem+json; see the error reference.
POST /v1/device/token
Device Token
Request body (application/json, required)
| Member | Type | Notes |
|---|---|---|
device_code required | string (min length 16, max length 128) |
Responses
- 200 DeviceTokenOut
- 4xx 5xx
application/problem+json; see the error reference.