cURL
curl --request POST \ --url https://chatbot.menuia.com/api/v2/ia \ --header 'Content-Type: application/json' \ --data '{ "authkey": "SUA_AUTHKEY", "device": "SEU DEVICE", "agent_name": "Assistente de Vendas" }'
{ "status": 201, "message": "Agente Criado com sucesso", "data": { "agent_id": 34, "agent_name": "Meu agente" } }
Cria um novo agente de IA.
authkey
device
agent_name
{ "authkey": "A29gzpIJyLWvxg2opJaq70AscJ08PWGLfydphRmjAJtY9IQLoz", "device": "servidor", "agent_name": "AGENTE 2" }
Agente Criado com sucesso
The response is of type object.
object