POST
/
v2
/
agent
/
{agentId}
/
conversation
curl --request POST \
  --url https://api.gptmaker.ai/v2/agent/{agentId}/conversation \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "contextId": "12345",
  "prompt": "oi qual seu nome?",
  "callbackUrl": "https://webhook.site",
  "chatName": "Fulano",
  "chatPicture": "https://foto.jpeg",
  "phone": "55xxxxxxxx"
}'
{
  "message": "<string>",
  "images": [
    "<string>"
  ],
  "audios": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

agentId
string
required

ID do agente

Body

application/json

Dados para conversar com o agente

The body is of type object.

Response

200
application/json

Resposta do agente

The response is of type object.