Skip to main content
POST
/
v2
/
agent
/
{agentId}
/
trainings
cURL
curl --request POST \
  --url https://api.gptmaker.ai/v2/agent/{agentId}/trainings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "TEXT",
  "text": "<string>",
  "image": "<string>",
  "callbackUrl": "<string>"
}'
{
  "success": true
}

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 do treinamento a ser adicionado

  • Texto
  • Website
  • Vídeo
  • Documento
type
enum<string>

Tipo do treinamento deve ser TEXT

Available options:
TEXT
text
string

Texto do treinamento

image
string

URL de uma imagem para o treinamento

callbackUrl
string

URL do webhook para notificação quando o treinamento finaliza com sucesso ou erro (opcional)

Response

Treinamento adicionado com sucesso

success
boolean
I