Start a CLI login exchange
POST
/v1/cli-auth/start
const url = 'https://api.extport.dev/api/v1/cli-auth/start';const options = {method: 'POST', headers: {cookie: 'extport_session=<extport_session>'}};
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://api.extport.dev/api/v1/cli-auth/start \ --cookie extport_session=<extport_session>Session-only. Mints a real API key plus a one-time code the CLI redeems for it — never the key itself in this response.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
object
code
required
string
Examplegenerated
{ "code": "example"}