Skip to main content
POST
Create a new agent function
Legacy endpoint - deprecated. Unversioned endpoints are scheduled for removal on July 31, 2026. A public v1 replacement is not currently listed in the v1 reference. This endpoint remains available for existing integrations until then.
Creates a custom function on a specific agent version. Use this nested v1 path for new integrations instead of the legacy flat agent-functions route.

Path parameters

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-organization-id
string
required

RSA encrypted organization ID (base64 format)

Example:

"BASE64_ENCRYPTED_ORG_ID_HERE"

Path Parameters

agentId
string
required

ID of the agent

versionNumber
string
required

Version number of the agent

Body

application/json
type
enum<string>
required

Type of the function

Available options:
end_call,
call_transfer,
custom,
check_calendar_availability,
book_calendar,
integration
Example:

"end_call"

displayName
string

Display name of the function (max 35 characters)

Maximum string length: 35
Example:

"End Call Function"

description
string

Description of the function

Example:

"This function ends the call"

config
object

Configuration object for the function

Example:

Response

The agent function has been successfully created.