Hacktron REST API - Cost Estimations API
The REST API - Cost Estimations API from Hacktron — 2 operation(s) for rest api - cost estimations.
The REST API - Cost Estimations API from Hacktron — 2 operation(s) for rest api - cost estimations.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/hacktron:hacktron-rest-api-cost-estimations-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Hacktron REST API - Cost Estimations API
version: '1.0'
contact: {}
description: 'Operations tagged REST API - Cost Estimations across 2 of this provider''s published API definitions: hacktron-openapi.json, openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.hacktron.ai/v1
security:
- api-key: []
tags:
- name: REST API - Cost Estimations
paths:
/cost-estimations:
post:
operationId: RestCostEstimationController_create
parameters: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateCostEstimationDto'
responses:
'201':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/CostEstimationResponseDto'
summary: Create a cost estimation for one or more repos
tags:
- REST API - Cost Estimations
get:
operationId: RestCostEstimationController_list
parameters:
- name: limit
required: false
in: query
schema:
type: number
- name: offset
required: false
in: query
schema:
type: number
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/RestCostEstimationListResponseDto'
summary: List cost estimations
tags:
- REST API - Cost Estimations
servers:
- url: https://api.hacktron.ai/v1
/cost-estimations/{id}:
get:
operationId: RestCostEstimationController_findOne
parameters:
- name: id
required: true
in: path
schema:
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/CostEstimationResponseDto'
summary: Get cost estimation details
tags:
- REST API - Cost Estimations
servers:
- url: https://api.hacktron.ai/v1
components:
schemas:
RepoResultApplicationDto:
type: object
properties:
app_name:
type: string
description: Application name
example: backend-api
app_root_path:
type: string
description: Application root path
example: apps/api
architecture:
type: string
description: Architecture description
example: NestJS REST API with PostgreSQL
required:
- app_name
- app_root_path
CreateCostEstimationDto:
type: object
properties:
name:
type: string
description: Friendly name for this estimation
repos:
type: array
description: Repositories to estimate
items:
oneOf:
- $ref: '#/components/schemas/ConnectedCostEstimationRepoDto'
- $ref: '#/components/schemas/PublicCostEstimationRepoDto'
- $ref: '#/components/schemas/UploadCostEstimationRepoDto'
discriminator:
propertyName: source
mapping:
connected: '#/components/schemas/ConnectedCostEstimationRepoDto'
public: '#/components/schemas/PublicCostEstimationRepoDto'
upload: '#/components/schemas/UploadCostEstimationRepoDto'
required:
- repos
CostEstimationResponseDto:
type: object
properties:
id:
type: string
description: Estimation UUID
example: 123e4567-e89b-12d3-a456-426614174000
organization_id:
type: string
description: Organization UUID
example: f336d0bc-b841-465b-8045-024475c079dd
user_id:
type: string
description: User UUID
example: f336d0bc-b841-465b-8045-024475c079dd
name:
type: string
description: Friendly name for this estimation
task_id:
type: string
description: Task identifier
example: cost_est_owner-repo_12345
status:
type: string
description: Estimation status
enum:
- pending
- running
- completed
- partial
- failed
example: completed
repos:
description: Input repositories
type: array
items:
$ref: '#/components/schemas/RepoInputResponseDto'
total_credits:
type: number
description: Total estimated credits across all repos
example: 8000
repo_results:
description: Per-repo estimation results
type: array
items:
$ref: '#/components/schemas/RepoResultResponseDto'
error:
type: string
description: Error message
triage_required:
type: boolean
description: Whether human triage is mandatory for a scan of this estimation (large app, above the predicted-cost threshold). The customer cannot opt out when true.
example: false
triage_fee_credits:
type: number
description: Triage fee in credits (a percentage of the scan base credits) added when triage is enabled
example: 1600
created_at:
format: date-time
type: string
description: Timestamp when estimation was created
example: '2026-03-10T12:00:00.000Z'
updated_at:
format: date-time
type: string
description: Timestamp when estimation was last updated
example: '2026-03-10T12:05:00.000Z'
required:
- id
- organization_id
- user_id
- task_id
- status
- repos
- triage_required
- triage_fee_credits
- created_at
- updated_at
RepoInputResponseDto:
type: object
properties:
source:
type: string
description: Source type
enum:
- connected
- public
- upload
repo_url:
type: string
description: Repository URL
example: https://github.com/owner/repo
branch:
type: string
description: Branch name
example: main
commit_sha:
type: string
description: Resolved commit SHA
example: abc123def456
archive_id:
type: string
description: Archive ID (for upload sources)
RestCostEstimationListResponseDto:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/CostEstimationResponseDto'
total:
type: number
required:
- data
- total
ConnectedCostEstimationRepoDto:
type: object
properties:
source:
type: string
description: Source type
enum:
- connected
default: connected
repo_url:
type: string
description: Repository URL
branch:
type: string
description: Branch name
github_installation_id:
type: number
description: GitHub App installation ID. Omitted for PAT-based connections (e.g. GitHub Enterprise), where the installation is resolved from repo_url and the organization instead.
required:
- source
- repo_url
- branch
PublicCostEstimationRepoDto:
type: object
properties:
source:
type: string
description: Source type
enum:
- public
repo_url:
type: string
description: Repository URL
branch:
type: string
description: Branch name
required:
- source
- repo_url
- branch
RepoResultResponseDto:
type: object
properties:
repo_url:
type: string
description: Repository URL
example: https://github.com/owner/repo
branch:
type: string
description: Branch name
example: main
commit_sha:
type: string
description: Commit SHA
example: abc123def456
status:
type: string
description: Result status
enum:
- completed
- failed
example: completed
from_cache:
type: boolean
description: Whether result was served from cache
example: false
applications:
description: Detected applications
type: array
items:
$ref: '#/components/schemas/RepoResultApplicationDto'
credits:
type: number
description: Estimated credits for this repo
example: 4000
error:
type: string
description: Error message (when status is failed)
failure_reason:
type: string
description: Structured failure reason
enum:
- unsupported_language
- scope_no_match
unsupported_languages:
description: Detected unsupported languages among the top languages
type: array
items:
type: string
scoped_file_count:
type: number
description: Files that matched the repository's whitebox scope rules, counted on disk before analysis. Absent for unscoped repositories.
example: 42
required:
- repo_url
- status
- from_cache
UploadCostEstimationRepoDto:
type: object
properties:
source:
type: string
description: Source type
enum:
- upload
archive_id:
type: string
description: Scan archive ID
required:
- source
- archive_id
securitySchemes:
api-key:
type: apiKey
in: header
name: X-Api-Key
x-refined-from:
- hacktron-openapi.json
- openapi.json