REST API - Cost Estimations
Create a cost estimation for one or more repos
Changed onpost/cost-estimations
Request
- Base URLhttps://api.hacktron.ai/v1
- URLhttps://api.hacktron.ai/v1/cost-estimations
- AuthAPI key in header X-Api-Key
Request body
Response
Example response
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"organization_id": "f336d0bc-b841-465b-8045-024475c079dd",
"user_id": "f336d0bc-b841-465b-8045-024475c079dd",
"task_id": "cost_est_owner-repo_12345",
"status": "completed",
"repos": [
{
"repo_url": "https://github.com/owner/repo",
"branch": "main",
"commit_sha": "abc123def456"
}
],
"total_credits": 8000,
"repo_results": [
{
"repo_url": "https://github.com/owner/repo",
"branch": "main",
"commit_sha": "abc123def456",
"status": "completed",
"applications": [
{
"app_name": "backend-api",
"app_root_path": "apps/api",
"architecture": "NestJS REST API with PostgreSQL"
}
],
"credits": 4000,
"scoped_file_count": 42
}
],
"triage_fee_credits": 1600,
"created_at": "2026-03-10T12:00:00.000Z",
"updated_at": "2026-03-10T12:05:00.000Z"
}Changes
- warning
added the new
scope_no_matchenum value to the//response property for the response status - info
added
connectedpublicuploaddiscriminator mapping keys to the/request property - info
added the optional property
//to the response with the status
- warning