Rate Limits & Idempotency
To protect platform stability for agencies and enterprise pipelines, every /v1 API key enforces plan-tiered rate limits and supports idempotent retries on write requests.
Rate limits by plan
| Plan | Requests per minute | Notes | | :--- | :--- | :--- | | Creator / Solo | 60 req/min | Site-scoped keys | | Agency / Studio | 300 req/min | Supports Organization-wide keys | | Enterprise | 1,000 req/min | Custom RPM overrides available on request |
Every /v1 response includes standard rate-limit headers:
- Name
X-RateLimit-Limit- Type
- integer
- Description
Maximum requests allowed in the current 60-second window.
- Name
X-RateLimit-Remaining- Type
- integer
- Description
Requests remaining in the current window.
- Name
X-RateLimit-Reset- Type
- integer
- Description
Unix epoch timestamp (seconds) when the current window resets.
- Name
Retry-After- Type
- integer
- Description
Returned on
429 RATE_LIMIT_EXCEEDEDresponses indicating seconds to wait before retrying.
Idempotent requests
For POST, PUT, and PATCH operations (such as creating posts, sending newsletters, or generating AI drafts), pass an Idempotency-Key header containing a unique string (for example, a UUID v4, up to 128 characters).
- Keys are scoped per API key, HTTP method, and endpoint path for 24 hours.
- If a network timeout occurs and you retry with the same
Idempotency-Keyand identical payload, BlogHunch returns the original response withIdempotency-Replayed: truewithout duplicating writes or charging AI credits twice. - Reusing an
Idempotency-Keywith a different JSON payload returns409 IDEMPOTENCY_CONFLICT.
Idempotent POST request
curl -X POST https://api.bloghunch.com/v1/posts \
-H "Authorization: Bearer {token}" \
-H "Idempotency-Key: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d" \
-H "Content-Type: application/json" \
-d '{
"title": "Zero-downtime deploys",
"content_markdown": "## Overview\nSafe retries with idempotency keys.",
"status": "draft"
}'

