Skip to main content
POST
Create agent action

Authorizations

X-Maitai-Api-Key
string
header
required

Your Maitai API key from the Portal.

Path Parameters

agent_id
integer
required

Body

application/json
action_name
string
required
action_type
string
required

llm | api | webhook | maitai_workflow | integration

description
string
required
action_config
object

Shape depends on action_type. LLM: {prompt, user_prompt, model_config:{model,temperature,max_tokens}}. API/webhook: {base_url,endpoint,method,headers,auth}.

is_default
boolean
action_result_type
string
invocation_mode
string
meta
object

Response

201 - application/json

Create agent action.

data
object

A capability that an agent can invoke — an LLM call, API call, or webhook.