List saved scan accounts
curl --request GET \
--url https://api.trycomp.ai/v1/security-penetration-tests/accounts \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/security-penetration-tests/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/security-penetration-tests/accounts"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": "psa_abc123",
"label": "auditor",
"kind": "cookie",
"createdAt": "2023-11-07T05:31:56Z",
"role": "<string>",
"tenant": "<string>",
"lastVerifiedAt": "2023-11-07T05:31:56Z",
"revokedAt": "2023-11-07T05:31:56Z"
}
]Security Penetration Tests
List saved scan accounts | Comp AI API
Returns the scan accounts saved for the organization and when each credential last passed a probe. Credentials are never returned. Pass their ids as.
GET
/
v1
/
security-penetration-tests
/
accounts
List saved scan accounts
curl --request GET \
--url https://api.trycomp.ai/v1/security-penetration-tests/accounts \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/security-penetration-tests/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/security-penetration-tests/accounts"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": "psa_abc123",
"label": "auditor",
"kind": "cookie",
"createdAt": "2023-11-07T05:31:56Z",
"role": "<string>",
"tenant": "<string>",
"lastVerifiedAt": "2023-11-07T05:31:56Z",
"revokedAt": "2023-11-07T05:31:56Z"
}
]Headers
Response
200 - application/json
Saved scan accounts
Was this page helpful?

