Skip to main content
POST
/
agents
Criar agente
curl --request POST \
  --url https://juiywycqytekaffjcbfa.supabase.co/functions/v1/api-v1/agents \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "workflow_type": "<string>",
  "language": "<string>",
  "tone": "<string>",
  "personality": "<string>",
  "greeting_message": "<string>"
}
'
{
  "success": true,
  "data": {
    "agent": {
      "id": "<string>",
      "name": "<string>",
      "description": "<string>",
      "is_active": true,
      "is_default": true,
      "workflow_type": "<string>",
      "language": "<string>",
      "tone": "<string>",
      "personality": "<string>",
      "greeting_message": "<string>",
      "custom_instructions": "<string>",
      "business_context": "<string>",
      "created_at": "<string>",
      "updated_at": "<string>"
    }
  }
}

Authorizations

x-api-key
string
header
required

Autenticação por chave de API.

Body

application/json
name
string
required
description
string
workflow_type
string
language
string
tone
string
personality
string
greeting_message
string

Response

201 - application/json

Agente criado

success
boolean
data
object