Skip to main content
GET
/
cost-estimations
/
{id}
Get cost estimation
curl --request GET \
  --url https://api.example.com/cost-estimations/{id}
Returns a single cost estimation. Poll this endpoint on a pending estimation until status reaches a terminal value (completed, partial, or failed).
Scope required: read

Request

curl "https://api.hacktron.ai/v1/cost-estimations/b4f5c6a1-2d3e-4f56-9a8b-0c1d2e3f4a5b" \
  -H "X-Api-Key: $HACKTRON_API_KEY"

Path parameters

ParameterTypeDescription
idUUIDThe cost estimation UUID.

Response

200 OK — see Create cost estimation for the response schema.
{
  "id": "b4f5c6a1-2d3e-4f56-9a8b-0c1d2e3f4a5b",
  "organization_id": "f336d0bc-b841-465b-8045-024475c079dd",
  "user_id": "e5a6d7c8-9b0a-1c2d-3e4f-5a6b7c8d9e0f",
  "name": "nightly-estimate",
  "task_id": "cost_est_acme-backend_1712345678",
  "status": "completed",
  "repos": [
    {
      "source": "connected",
      "repo_url": "https://github.com/acme/backend",
      "branch": "main",
      "commit_sha": "abc123def456"
    }
  ],
  "total_credits": 4200,
  "repo_results": [
    {
      "repo_url": "https://github.com/acme/backend",
      "branch": "main",
      "commit_sha": "abc123def456",
      "status": "completed",
      "from_cache": false,
      "credits": 4200,
      "applications": [
        {
          "app_name": "backend-api",
          "app_root_path": "apps/api",
          "architecture": "NestJS REST API with PostgreSQL"
        }
      ]
    }
  ],
  "created_at": "2026-04-13T12:00:00.000Z",
  "updated_at": "2026-04-13T12:03:21.000Z"
}

Errors

  • 404 — estimation not found or not visible to your organization.