Skip to main content
POST

Autorisierungen

Authorization
string
header
erforderlich

Scoped API token. Required scopes are listed on each operation in x-required-scopes.

Body

application/json

Create an API tool. integration_id is ignored; the backing integration is created automatically.

function_type
string
erforderlich

Must be external:api.

Allowed value: "external:api"
url
string
erforderlich

URL to call. {{param}} placeholders are filled from the call arguments.

Pattern: ^https?://
function_definition
object
erforderlich

OpenAI-style function schema. Its name becomes the tool name.

method
string
Standard:GET

HTTP method, for example GET or POST.

headers
object

Request headers. {{param}} placeholders are filled from the call arguments; {{api_key}} resolves to the access token or OAuth token.

fixed_parameters
object

Values always sent with the request, not chosen by the agent.

name
string

Optional. Must equal function_definition.name.

access_token
string

Mutually exclusive with oauth_provider_id.

oauth_provider_id
integer | null

ID of an OAuth connection in your account. Mutually exclusive with access_token.

say_before
string

Phrase the agent says before calling the API.

condition
string

When the agent should use this tool.

agent_override_condition
string

Condition override for one agent. Only applied when agent_id is given.

response_fields
string[]

Fields of the API response the agent may use.

response_variables
object[]

Values extracted from the response and stored as variables for later steps.

Maximum array length: 25
prompt_id
integer
veraltet

Deprecated alias of agent_id (the agent's prompt id).

agent_id
integer

Enable the tool for this voice agent right away.

Antwort

The created tool, or tool pair.

Returned by create and update. Call-forwarding and warm-transfer types return the pair.

id
integer
erforderlich

ID of the tool.

name
string
erforderlich

Tool name as the agent's model sees it. Equals function_definition.name.

description
string | null
erforderlich

What the tool does. Empty for API tools; the model reads function_definition.description.

function_type
string
erforderlich

Always external:api.

Allowed value: "external:api"
integration_id
integer
erforderlich

ID of the integration created for this tool.

ai_action_id
integer | null
erforderlich

ID of the action record backing this tool.

external_api
object
erforderlich

How the API is called.

function_definition
object
erforderlich

OpenAI-style function schema the agent's model uses to decide when and how to call the tool.

enabled_for_agent
boolean

Only returned by create. True when agent_id was supplied and the tool was enabled for that agent.