Create a pending CLI device session
POST/api/cli/login/sessions
createCliLoginSession
Starts either a browser-mediated CLI login or an SSH-key enrollment. The public-key metadata is parsed and canonicalized by the server before approval.
Authentication is not described for this operation in the spec — that does not mean it is public. Check tokens and scopes.
curl
curl -X POST 'https://neosource.dev/api/cli/login/sessions' \
-H 'Content-Type: application/json' \
-d '{}'fetch
fetch("https://neosource.dev/api/cli/login/sessions", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({}),
});Request bodyrequired
application/json
Responses
201CLI login session created
application/json
Standard errors
Bodies documented once for the whole API — see standard errors.
- 400Bad Request — one of: invalid_input
- 429Rate limited — retry after the `Retry-After` header
- 500Internal server error
- 503Service temporarily unavailable / at capacity — retry after the `Retry-After` header
- 504Gateway timeout — the request exceeded the server's handling budget