Read infrastructure inventory import
curl --request GET \
--url https://api.trycomp.ai/v1/evidence-forms/infrastructure-inventory/suggestions/runs/{runId} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/evidence-forms/infrastructure-inventory/suggestions/runs/{runId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/evidence-forms/infrastructure-inventory/suggestions/runs/{runId}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"runId": "<string>",
"status": "queued",
"result": {
"data": [
{
"assetId": "i-0abc123def4567890",
"systemType": "EC2 instance (t3.micro)",
"environment": "Production",
"location": "AWS us-east-1 (account 123456789012)",
"sourceName": "Amazon Web Services"
}
],
"count": 42,
"sources": [
{
"slug": "aws",
"name": "Amazon Web Services",
"connectionId": "icn_abc123",
"assetCount": 42,
"failures": [
"Could not list Lambda functions for the inventory"
]
}
]
}
}Evidence Forms
Read infrastructure inventory import | Comp AI API
Poll an inventory run from start-inventory-import. A completed run returns suggested rows and source coverage warnings. Review rows, add owner/review date.
GET
/
v1
/
evidence-forms
/
infrastructure-inventory
/
suggestions
/
runs
/
{runId}
Read infrastructure inventory import
curl --request GET \
--url https://api.trycomp.ai/v1/evidence-forms/infrastructure-inventory/suggestions/runs/{runId} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/evidence-forms/infrastructure-inventory/suggestions/runs/{runId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/evidence-forms/infrastructure-inventory/suggestions/runs/{runId}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"runId": "<string>",
"status": "queued",
"result": {
"data": [
{
"assetId": "i-0abc123def4567890",
"systemType": "EC2 instance (t3.micro)",
"environment": "Production",
"location": "AWS us-east-1 (account 123456789012)",
"sourceName": "Amazon Web Services"
}
],
"count": 42,
"sources": [
{
"slug": "aws",
"name": "Amazon Web Services",
"connectionId": "icn_abc123",
"assetCount": 42,
"failures": [
"Could not list Lambda functions for the inventory"
]
}
]
}
}Authorizations
API key for authentication
Headers
Organization ID (required for session auth, optional for API key auth)
Path Parameters
Run handle returned by the inventory import start endpoint
Was this page helpful?

