API documentation
The ReplyCraft API lets Agency customers generate replies from their own tools — CRMs, Zapier/Make scenarios, client dashboards. One endpoint, JSON in, JSON out.
Authentication
Create a key in Dashboard → API (Agency plan). Send it in the Authorization header: Authorization: Bearer rc_live_…. Keys are shown once and stored hashed; revoke them any time.
Endpoint
POST https://replycraft.trustcraft.work/api/v1/reply
{
"business": "Café Roma", // required, max 80 chars
"review": "Best tiramisu in town…", // required, max 1500 chars
"rating": 5, // 1–5, default 5
"author": "Anna P.", // optional
"tone": "warm", // warm | professional | friendly
"language": "auto", // auto | en | ro | fr | de | es | it
"signoff": "— Maria, owner", // optional
"notes": "Family-run since 1998", // optional, max 600 chars
"contact": "hello@caferoma.ro" // optional, offered to unhappy customers
}
Response:
{ "reply": "Thank you, Anna! …", "language": "en", "model": "mistral-small-3.1" }
Errors
| Status | Meaning |
|---|---|
| 400 | Missing or invalid field (body includes error) |
| 401 | Missing or revoked key |
| 402 | Plan does not include API access |
| 429 | Rate limit: 60 requests/minute, 5,000/day per account |
Example
curl -X POST https://replycraft.trustcraft.work/api/v1/reply \
-H "Authorization: Bearer rc_live_xxx" -H "Content-Type: application/json" \
-d '{"business":"Café Roma","review":"Best tiramisu in town","rating":5,"author":"Anna"}'
Tip: send a descriptive User-Agent header (e.g. MyCRM/1.0 (+https://example.com)). Generic library defaults such as Python-urllib can be challenged by our edge bot protection.
Need webhooks (new review → your URL) or bulk endpoints? Tell us — they are on the roadmap.