HotAPI integration
Inspect the target repository before choosing a framework, HTTP client, file layout, or test strategy. Preserve its existing architecture and local instructions.
Sources of truth
- Exact endpoints and schemas: OpenAPI 3.1
- Integration guidance: HotAPI developer docs
- Consolidated agent context: llms-full.txt
- Live read-only alternative:
https://hotapi.ai/mcp
OpenAPI wins when prose and a request schema disagree. Do not infer fields or supported values from memory.
Integration rules
- Keep
HOTAPI_KEYin trusted server-side code. Never expose it to browser code, logs, tests, commits, or an agent transcript. - Prefer the typed per-model endpoint for a fixed capability. Use
POST /v1/tasksonly when the model is chosen at runtime. - Generate one stable
Idempotency-Keyper business action and reuse it for submission retries. - Persist the returned task
idbefore waiting. Stop onsucceeded,failed, orcancelled; use a bounded poll loop or a signature-verified webhook. - Check HTTP status before treating a body as success. Preserve
error.type,error.code,error.param, andrequest_id. - Copy result assets into application-owned storage before
expires_atwhen the product needs durable files. - Mock HotAPI in automated tests. Never spend credits from CI.
Acceptance check
Report the endpoint and model selected, files changed, secret configuration, terminal-state handling, timeout and retry behavior, output persistence, tests run, and one exact manual smoke test.
