CLI starts login (DPoP proof signed by sign_pub required)
POST
/v1/cli-auth/requests
const url = 'https://app.skillpouch.net/v1/cli-auth/requests';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"code_challenge":"example","device_name":"example","assistants":[],"os":"linux","arch":"example","cli_version":"example","sign_pub":{"kty":"EC","crv":"P-256","x":"example","y":"example"},"enc_pub":{"kty":"EC","crv":"P-256","x":"example","y":"example"},"key_storage":"tpm","connect_token":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.skillpouch.net/v1/cli-auth/requests \ --header 'Content-Type: application/json' \ --data '{ "code_challenge": "example", "device_name": "example", "assistants": [], "os": "linux", "arch": "example", "cli_version": "example", "sign_pub": { "kty": "EC", "crv": "P-256", "x": "example", "y": "example" }, "enc_pub": { "kty": "EC", "crv": "P-256", "x": "example", "y": "example" }, "key_storage": "tpm", "connect_token": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
code_challenge
required
string
device_name
required
string
assistants
Array<string>
os
required
string
arch
required
string
cli_version
required
string
sign_pub
required
object
kty
required
string
crv
required
string
x
required
string
y
required
string
enc_pub
required
object
kty
required
string
crv
required
string
x
required
string
y
required
string
key_storage
required
string
connect_token
string
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
ok
required
boolean
data
required
object
request_id
required
string format: uuid
authorize_url
required
string format: uri
expires_in
required
integer
interval
required
integer
meta
required
object
request_id
required
string
next_cursor
string | null
Example
{ "ok": true}