Skip to main content
POST
cURL
This endpoint lets you create a new agent.

Tool Input Types

When defining a tool’s api_schema, every parameter (in path_params, query_params, request_headers, or request_body) takes an input object that tells the platform where the value should come from at call time. There are two input types:
The agent extracts the value from the conversation based on the description you provide.
Use a literal value, or a built-in template variable that gets substituted at call time. Template variables are written as %VARIABLE_NAME%.
You can also pass any plain string (e.g. an API key, a fixed endpoint, a constant flag):

Built-in Template Variables

When an input of type: "value" contains one of the following tokens, the platform replaces it with the appropriate runtime value before the tool is invoked: Tokens are substituted anywhere they appear inside a string value, so you can interpolate them into URLs, headers, query params, and request body fields.

Example

A forward_message tool that posts the customer’s phone number, message text, attached image, and a reply callback to your own webhook:
%IMAGE_URL% is only populated when the message that triggered the tool call was an image. For text-only messages the field is omitted from the outgoing request.

Authorizations

X-API-Key
string
header
required

API key authentication. Pass your API key in the X-API-Key header.

Body

application/json
name
string
required
Maximum string length: 255

Response

201 - application/json
id
string<uuid>
required
read-only
name
string
required
Maximum string length: 255
systemPrompt
string
required
firstMessage
string
required
profilePicture
string
required
read-only
tools
object[]
required
read-only
documents
object[]
required
read-only
memoryKeys
object[]
required
read-only
wakeUpConfigs
object[]
required
read-only
outboundTriggers
object[]
required
read-only
websiteTools
object[]
required
read-only
imageGenerateTools
object[]
required
read-only
handoffTools
object[]
required
read-only
mcpConfigs
object[]
required
read-only
paywallConfig
string
required
read-only
adConfig
string
required
read-only
creditSettings
string
required
read-only
voiceCallConfig
string
required
read-only
owner
string
required
read-only
sharings
string
required
read-only
phoneNumbers
object[]
required
read-only
totalMessages
string
required
read-only
totalSessions
string
required
read-only
connectUrl
string
required
read-only
ownerActive
string
required
read-only
createdAt
string<date-time>
required
read-only
description
string
icebreakers
any
llmModel
string | null