cURL
curl --request PATCH \ --url https://api.example.com/api/replies/{id} \ --header 'Content-Type: application/json' \ --data ' { "category_id": "<string>", "status": "<string>", "ai_response": "<string>" } '
{ "data": {} }
Update a reply’s status, category, or draft response
pending
ready
archived
sent
curl -X PATCH "https://app.replyify.ai/api/replies/abc123-def456-ghi789" \ -H "Authorization: Bearer rpl_your_api_key" \ -H "Content-Type: application/json" \ -d '{"category_id": "cat-interested-456"}'
curl -X PATCH "https://app.replyify.ai/api/replies/abc123-def456-ghi789" \ -H "Authorization: Bearer rpl_your_api_key" \ -H "Content-Type: application/json" \ -d '{"status": "archived"}'
curl -X PATCH "https://app.replyify.ai/api/replies/abc123-def456-ghi789" \ -H "Authorization: Bearer rpl_your_api_key" \ -H "Content-Type: application/json" \ -d '{"ai_response": "Hi John,\n\nCustomized response here...\n\nBest regards"}'
{ "data": { "id": "abc123-def456-ghi789", "from_email": "[email protected]", "from_name": "John Smith", "status": "archived", "category_id": "cat-interested-456", "ai_response": "Hi John,\n\nCustomized response here...\n\nBest regards", "updated_at": "2024-01-15T16:00:00Z" } }
{ "error": "Invalid category_id" }
{ "error": "Reply not found" }