Skip to main content
POST
This endpoint is for the VIP plan only. Other plans get a 403. See Plan access.
A custom action calls your endpoint during a conversation. It belongs to the workspace, so one action can serve many agents. See Actions for the request your endpoint gets. After you create it, attach it to an agent. Returns 201.

Body

string
required
The workspace. Required.
string
required
The action’s name.
string
When the agent should use it.
string
required
GET, POST, PUT, PATCH or DELETE.
string
required
Your endpoint. It must be a public address. We refuse private and internal addresses.
object[]
What the agent fills in from the conversation. Each has name, description, type (string, number or boolean) and required.
boolean
Whether agents can use it.
object
Headers to send with every call. A name may only use letters, digits and !#$%&'*+-.^_|~, a value can't hold a line break, and you can't set Host, Content-Length, Transfer-EncodingorConnection.</ParamField> <ParamField body="authType" type="string">bearer, api_keyorbasic.</ParamField> <ParamField body="authValue" type="string">The secret for authType. Needed when you set authType`.
authValue and header values are write only. We never send them back. A response shows hasAuth and the header names.

Errors