Rewrite CopyBeta
Rewrite one flagged sentence or the whole draft. Costs 1 AI credit.
https://api.foxreach.io/ api/ v1/ copy/ rewriteAsks the chat model to rewrite the copy, then has the Copy check accept or discard the result. Nothing is saved: the rewrite is returned for you to apply. Costs 1 AI credit from the key owner's monthly pool once the model has answered, whether or not the check accepts the rewrite. A 422 or a 502 from the model is not charged.
Body Parameters#
subjectstringbodySubject line, up to 500 characters.
bodystringbodyEmail body, plain text or HTML.
sendAsHtmlbooleanbodydefault falseSet to true when the body is HTML.
stepNumberintegerbodydefault 1Sequence step the copy belongs to (1-50).
targetobjectbodyrequiredWhat to rewrite.
Show target
kindstringbodyrequiredemail for the whole draft, span for one sentence.fieldstringbodysubject or body.startintegerbody/copy/judge.endintegerbodytextstringbodystart to end.categorystringbody/copy/judge.signalsarraybodyOverall problems from a previous /copy/judge call, to steer the rewrite.
Response#
For kind: "email":
dataobjectShow Email rewrite
subjectstringbodyTextstringverdictobject/copy/judge.For kind: "span", data holds replacement, accepted, keepProbability and issue.
Errors#
| Status | Description |
|---|---|
400 | A span rewrite is missing field, start, end or text, or the draft is empty |
403 | ai_credits_exhausted: the monthly AI credits are used up, or the key is read-only |
409 | The draft no longer matches the span. Run /copy/judge again |
422 | The model's rewrite was discarded (it added merge tags that are not in your draft). Not charged |
502 | The model could not be reached. Not charged for a model failure, retry shortly |
503 | Rewriting is unavailable on this server |
Rate Limit#
- 100 requests per minute, shared by every
expensivecall in your workspace. Fixed 60-second window. - Every response includes
X-RateLimit-Limit,X-RateLimit-Remaining,X-RateLimit-Reset(unix epoch seconds) andX-RateLimit-Bucket(expensive). - A
429response includes aRetry-Afterheader (seconds until the bucket resets).
For client-side patterns (Retry-After, exponential backoff, monitoring X-RateLimit-Remaining), see Rate Limiting.