Preview agent
Agents
Preview agent
Fills the agent’s prompts with a set of variables and returns the text a call would start with. Nothing is saved, dialled or charged, so it is a cheap way to check your variables before a campaign.
Add changes (any fields PATCH accepts) to preview an edit before you save it. If the agent has an input_schema, the values are checked against it and its defaults are filled in. Without one, every value must be a string, and a placeholder with no value renders empty.
POST
Preview agent
Authorizations
Your workspace secret key, sk_live_ followed by 32 hex characters. Create one in the console under Developers.
Path Parameters
The agent's id (agt_…).