proxy_url and webhook_url for the agent — these are the two URLs you configure in your voice platform (e.g. Vapi’s custom LLM URL and server URL fields). The agent is immediately active once created.
Endpoint
masker_session authentication.
Request body
string
required
Display name for the agent. Must be unique within your account. 1–64 characters.
string
required
Upstream LLM provider and model. Accepted values:
openai:gpt-4o-mini, openai:gpt-4o, stub (for testing).string
default:"vault-deterministic"
Tokenization scheme to use for PHI replacement tokens.
vault-deterministic produces consistent tokens for the same input value (useful for de-duplication and audit correlation). reversible-aead produces encrypted tokens that are reversible without a vault lookup.string
default:"healthcare-default"
Name of an existing masking policy to apply. Mutually exclusive with
policy_yaml. Defaults to healthcare-default.string
Inline YAML definition of a custom masking policy. Mutually exclusive with
policy_name. The YAML is validated before the agent is created; an invalid policy returns 422.Response fields
On success the API returns201 Created with the full agent object.
object
required
The newly created agent.
Example
Response (201 Created)