List repositories
GET
/api/v1/repositories
const url = 'https://api.aletheia-ops.com/api/v1/repositories';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/repositories \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
Tracked-repository envelope
object
items
Array<object>
One row of the tracked-repository list
object
id
string
provider
string
full_name
string
default_branch
string
visibility
string
archived
boolean
iac_project_count
integer
open_pr_count
integer
application_ids
Array<string>
team_ids
Array<string>
scan_status
string
last_scanned_at
string format: date-time
connection_status
string
total
integer
Examplegenerated
{ "items": [ { "id": "example", "provider": "example", "full_name": "example", "default_branch": "example", "visibility": "example", "archived": true, "iac_project_count": 1, "open_pr_count": 1, "application_ids": [ "example" ], "team_ids": [ "example" ], "scan_status": "example", "last_scanned_at": "2026-04-15T12:00:00Z", "connection_status": "example" } ], "total": 1}No valid credential was presented, or it has expired.
Media typeapplication/json
object
code
required
Stable, machine-readable identifier. Branch on this.
string
message
required
Human-readable explanation. Safe to display; do not parse.
string
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.
Media typeapplication/json
object
code
required
Stable, machine-readable identifier. Branch on this.
string
message
required
Human-readable explanation. Safe to display; do not parse.
string
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.
Media typeapplication/json
object
code
required
Stable, machine-readable identifier. Branch on this.
string
message
required
Human-readable explanation. Safe to display; do not parse.
string
Examples
Exampleinternal_error
{ "code": "internal_error", "message": "internal server error"}