Skip to main content
POST
/
public
/
device
/
exchange
Exchange a completed CLI browser-login session
curl --request POST \
  --url https://api.peel.sh/public/device/exchange \
  --header 'Content-Type: application/json' \
  --header 'Key: <api-key>' \
  --data '
{
  "session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "user_code": "<string>"
}
'
{
  "api_key": "<string>"
}

Authorizations

Key
string
header
required

Body

application/json
session_id
string<uuid>
required
user_code
string
required

Response

Completed device-auth session.

api_key
string
required