cURL
curl --request GET \ --url https://api.example.com/api/repos/{id}
{ "success": true, "data": { "id": "<string>", "user_id": "<string>", "org_id": "<string>", "name": "<string>", "source_type": "<string>", "remote_url": "<string>", "default_branch": "<string>", "last_commit_sha": "<string>", "oauth_connection_id": "<string>", "issue_auto_create_enabled": true, "issue_auto_create_min_severity": "<string>", "created_at": {}, "updated_at": {}, "deleted_at": {} }, "error": { "success": true, "code": 123, "message": "<string>" } }
Retrieve details of a specific repository by ID
Show Repository Object
github
gitlab
git_url
zip
critical
high
medium
low
null
curl -X GET https://api.heimdall.example.com/api/repos/01936d2f-8c4e-7890-b123-456789abcdef \ -H "Cookie: session=your_session_token"
{ "success": true, "data": { "id": "01936d2f-8c4e-7890-b123-456789abcdef", "user_id": "01936d2e-1234-5678-9abc-def012345678", "org_id": null, "name": "my-web-app", "source_type": "git_url", "remote_url": "https://github.com/example/my-web-app.git", "default_branch": "main", "last_commit_sha": "abc123def456789012345678901234567890abcd", "oauth_connection_id": null, "issue_auto_create_enabled": true, "issue_auto_create_min_severity": "high", "created_at": "2026-03-12T10:30:00Z", "updated_at": "2026-03-12T15:45:00Z", "deleted_at": null } }
Show Error Object
false
{ "success": false, "code": 404, "message": "Repo '01936d2f-8c4e-7890-b123-456789abcdef' not found" }
{ "success": false, "code": 500, "message": "Failed to fetch repo: database connection error" }