← Prompt library
Level 9 · API
Connect an API with failure handling
Integrate {{API}} with {{PROJECT_NAME}} using current official documentation. Keep credentials server-side; handle timeouts, rate limits, and invalid responses.
Fill in the variables
Replace the placeholders with your project’s real details. Keep secrets out.
Example input
PROJECT_NAME: codex-practice · SCOPE: index.html
Expected result
Use mocked responses for success and failure. Confirm retries are bounded and do not duplicate writes.
Expected result
Review and edit before using it in your project.
Before you run
Practice safely: use a disposable folder and sample data. Check every placeholder and the actual project state before using this template.