Skip to main content
POST
Preview a realtime voice prompt template

Authorizations

X-API-Key
string
header
required

[Production] API key for production authentication

Path Parameters

id
string
required

The unique identifier for the agent.

Body

application/json

The template to render.

template
string

The unsaved template to render. The template is required, can't be blank, and can be at most 32 KiB.

Response

Returns the rendered prompt and the warnings.

characters
integer

The number of characters in the rendered prompt.

estimatedTokens
integer

An estimate of the number of tokens in the rendered prompt: the number of characters divided by 4, rounded up. It isn't a tokenizer count.

prompt
string

The template rendered with the values of this agent. If the agent can end or transfer calls and the template doesn't use the matching tokens, the prompt ends with the instructions for those actions, as in a real call.

warnings
object[]

The non-fatal findings about the template.