Skip to main content
POST

Authorizations

x-api-key
string
header
required

API key for authentication. Generate API keys from the RevRing dashboard.

Path Parameters

id
string<uuid>
required

Agent ID

Body

application/json
messages
object[]
required

The conversation so far, oldest first. Empty for the agent's opening line; otherwise the last message is yours

Maximum array length: 60
variables
object

Variables for this test, as on a call (for example {"first_name": "Sam"}). Override the agent's default variables

environment
string

Version to test: production (the published version) or the name of one of the agent's environments. Omit to test the saved draft

state
object

Conversation state from the previous reply. Send it back unchanged with the next message so the conversation continues where it left off (the same test call, any handoff to another agent, and variables set by the pre-call webhook or by tools). Omit it, or send no messages, to start a new conversation.

Response

The agent's next turn

data
object