Start CLI browser-login device flow
curl --request POST \
--url https://api.peel.sh/public/device/start \
--header 'X-API-Key: <api-key>'const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.peel.sh/public/device/start', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.peel.sh/public/device/start"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_code": "<string>",
"verification_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"retry": "same_key",
"docs_url": "<string>",
"details": {}
}Account
Start CLI browser-login device flow
Creates a short-lived CLI login session and returns the browser verification URL. No API key is required.
POST
/
public
/
device
/
start
Start CLI browser-login device flow
curl --request POST \
--url https://api.peel.sh/public/device/start \
--header 'X-API-Key: <api-key>'const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.peel.sh/public/device/start', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.peel.sh/public/device/start"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_code": "<string>",
"verification_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"retry": "same_key",
"docs_url": "<string>",
"details": {}
}⌘I