Skip to content

Exchange a one-time code for the real API key

POST
/v1/cli-auth/exchange
curl --request POST \
--url https://api.extport.dev/api/v1/cli-auth/exchange \
--header 'Content-Type: application/json' \
--data '{ "code": "example" }'

No auth — the code itself is the credential, single-use and short-lived.

Media typeapplication/json
object
code
required
string
>= 1 characters
Examplegenerated
{
"code": "example"
}

OK

Media typeapplication/json
object
key
required
string
Examplegenerated
{
"key": "example"
}