A rewrite would write a new draft, and the organization's draft allowance (its plan's emails, or the free trial) is used up, or Outbound is not active for it. Nothing was generated.
Retry only after changing the request
HTTP/1.1 402
Content-Type: application/problem+json
{
"type": "https://sealdeal.ai/errors/draft-allowance-exhausted",
"title": "Draft allowance exhausted",
"status": 402,
"detail": "..."
}`type` is stable and safe to branch on in code. `detail` is specific to your request and is the field to read for the particulars; its wording may change.
All error types · API documentation · Integrations
Related errors: 404 Not found · 400 Bad request · 405 Method not allowed · 415 Unsupported media type · 409 Conflict · 422 Idempotency key reused · 409 List has in-flight sequences · 422 Stage gate not met · 422 Deal has no primary contact · 422 Contact is excluded · 402 No actions left