Search the resource inventory
const url = 'https://api.aletheia-ops.com/api/v1/resources';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.aletheia-ops.com/api/v1/resources \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
GET /resources response
object
Public shape of a discovered resource
object
object
object
Are the grouped counts backing the filter rail
object
One facet value and its match count
object
One facet value and its match count
object
One facet value and its match count
object
One facet value and its match count
object
Machine-readable data-freshness block carried by every inventory response (§1.6)
object
One connected account whose data is older than its scan interval
object
Examplegenerated
{ "items": [ { "id": "example", "aws_account_id": "example", "region": "example", "resource_type": "example", "native_id": "example", "arn": "example", "name": "example", "tags": { "additionalProperty": "example" }, "configuration": {}, "config_hash": "example", "status": "example", "management_state": "example", "first_discovered_at": "2026-04-15T12:00:00Z", "last_seen_at": "2026-04-15T12:00:00Z", "last_changed_at": "2026-04-15T12:00:00Z", "deleted_at": "2026-04-15T12:00:00Z" } ], "next_cursor": "example", "total": 1, "facets": { "resource_type": [ { "value": "example", "count": 1 } ], "aws_account_id": [ { "value": "example", "count": 1 } ], "region": [ { "value": "example", "count": 1 } ], "status": [ { "value": "example", "count": 1 } ] }, "freshness": { "oldest_successful_scan_at": "2026-04-15T12:00:00Z", "stale_accounts": [ { "aws_account_id": "example", "account_id": "example", "name": "example", "scan_interval_minutes": 1, "last_successful_scan_at": "2026-04-15T12:00:00Z" } ] }}No valid credential was presented, or it has expired.
object
Stable, machine-readable identifier. Branch on this.
Human-readable explanation. Safe to display; do not parse.
Examples
{ "code": "unauthorized", "message": "authentication required"}{ "code": "invalid_credentials", "message": "invalid email or password"}{ "code": "invalid_token", "message": "invalid or expired token"}{ "code": "token_reuse", "message": "session revoked"}{ "code": "webhook_unauthorized", "message": "webhook verification failed"}Authenticated, but not permitted to perform this action.
object
Stable, machine-readable identifier. Branch on this.
Human-readable explanation. Safe to display; do not parse.
Examples
{ "code": "forbidden", "message": "you do not have permission to perform this action"}{ "code": "csrf_failed", "message": "missing or invalid CSRF token"}{ "code": "account_deactivated", "message": "your account is deactivated; contact your administrator"}{ "code": "ai_disabled", "message": "the AI assistant is disabled for this organization"}An unexpected failure. Diagnostic detail is logged server-side and
deliberately not returned. Quote the X-Request-Id response header when
reporting one.
object
Stable, machine-readable identifier. Branch on this.
Human-readable explanation. Safe to display; do not parse.
Examples
{ "code": "internal_error", "message": "internal server error"}