Skip to main content

Fetch a program's estimate

GET 

/parts/:partId/programs/:programId/estimate

Returns the cost-and-time estimate for a concrete program on the URL part. Returns a 202 with a ProcessingResponse envelope while the engine is still computing, a 200 with a PublicEstimate envelope once the estimate is ready, or 422 if the engine reported an error. Returns 404 if the part or program does not exist, belongs to a different team, or the program is not on that part.

The optional timings query param selects the estimate variant:

  • fast (default): the heuristic estimate, always available once the program is ready.
  • refined: the simulation-based estimate, which may still be processing after fast is ready.

Request

Responses

Estimate is ready