Copy this prompt
Copy it, paste it into your agent, and fill in the<...> placeholders — service, stack, and your task. Leave the rest as is.
It is deliberately short. Rather than restating the API, it does the three things an agent will not do on its own: read the docs and report risks before writing code, name the mistakes to refuse to ship (skipped confirm calls, unverified webhook signatures, hardcoded keys), and prove the integration works afterward instead of just claiming it does.
Use it in your editor
- Claude Code
- Cursor
- Codex / other agents
Paste the prompt straight into a session for a one-off task.To load it in every session, save the prompt to Claude Code reads imported files on startup, so the instructions are in context before you ask for anything.
.claude/bizmori-api.md and import it from your CLAUDE.md:CLAUDE.md
Give your agent the live docs
The prompt above works because these docs are published in a machine-readable form. Your agent pulls the current spec at the moment you ask, rather than working from whatever was true when the prompt was written:Before you ship what the agent wrote
The API key is not hardcoded
The API key is not hardcoded
The key must come from an environment variable or a secret manager, never from source. Grep the diff for
Bearer and for anything resembling a literal key, and confirm the key is not written to logs.The confirm step matches the service
The confirm step matches the service
Anti-AI (upload mode) and AI Detection require a confirm call. Watermark Embed and Watermark Extract do not — and calling confirm for them will fail. Anti-AI in pure URL mode also skips confirm.
Webhook signatures are verified against the raw body
Webhook signatures are verified against the raw body
The HMAC must be computed over the raw request bytes. If a JSON body-parser runs first and the code re-serializes the object, the signature will not match and the agent may be tempted to “fix” it by skipping verification. It must compare in constant time.
Presigned URL expiry is handled
Presigned URL expiry is handled
Upload and download URLs are valid for 1 hour. A long-running batch job must call Refresh URLs rather than reusing a stale URL.
Next steps
Quickstart
Walk a flow by hand before automating it.
API Reference
The authoritative spec for every endpoint.
Webhooks
Signature verification and event payloads in full.
Error Codes
Every code your agent’s error handling should cover.