Exchange an auth code for device credentials
curl --request POST \
--url https://api.trycomp.ai/v1/device-agent/exchange-code \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.trycomp.ai/v1/device-agent/exchange-code', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/device-agent/exchange-code"
payload = {}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Device Agent
Exchange an auth code for device credentials | Comp AI API
Exchange an auth code for device credentials in Comp AI. Register employee devices, submit device compliance check-ins, download agent builds, and manage.
POST
/
v1
/
device-agent
/
exchange-code
Exchange an auth code for device credentials
curl --request POST \
--url https://api.trycomp.ai/v1/device-agent/exchange-code \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.trycomp.ai/v1/device-agent/exchange-code', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/device-agent/exchange-code"
payload = {}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Body
application/json
The body is of type object.
Response
201
Was this page helpful?

