Fetch a program's estimate
GET/programs/:id/estimate
Returns the cost-and-time estimate for a program owned by the authenticated team. 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 program does not exist or belongs to a different team. The optional timings query param selects the estimate variant: fast (default) returns the heuristic estimate that's always available once the program is ready; refined returns the simulation-based estimate, which may still be processing after fast is ready.
Request
Responses
- 200
- 202
- 400
- 401
- 404
- 422
- 500
Estimate is ready
Estimate is still being computed by the Engine
Invalid request
Missing or invalid bearer token
Resource not found
The request was well-formed but could not be processed (e.g. the engine could not compute an estimate).
Unexpected server error