Skip to main content
POST https://api.revreply.com/v1/response/generate
This endpoint requires authentication.

Try it

Use the following request to classify an incoming email and generate a response:

Authentication

This endpoint uses Bearer authentication with a JWT.

Request

Headers

Body

The request body uses the GenerateResponseRequest schema. The body requires email_body, agent_id, and prospect_name. When the selected agent’s objective is Schedule Meeting, available_slots is also required.

Request structure

Request examples

The request is a POST request to:

Response

Response structure

A successful request returns an object containing the generated response. The response schema requires thread_id, classification, and reply inside data.

Response example

Errors

402 — Insufficient credits

Returned when there are not enough credits to generate the response.

404 — Agent or thread not found

Returned when the specified agent or email thread cannot be found.

422 — Validation error

Returned when one or more request fields fail validation.

500 — Response generation failed

Returned when response generation fails.