POST
/
v2
/
agent
/
{agentId}
/
intentions
curl --request POST \
  --url https://api.gptmaker.ai/v2/agent/{agentId}/intentions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "<string>",
  "preprocessingMessage": "DISABLED",
  "preprocessingText": "<string>",
  "fields": [
    {
      "name": "<string>",
      "jsonName": "<string>",
      "description": "<string>",
      "type": "TEXT",
      "required": true
    }
  ],
  "type": "WEBHOOK",
  "httpMethod": "GET",
  "url": "<string>",
  "headers": [
    {
      "name": "<string>",
      "value": "<string>"
    }
  ],
  "params": [
    {
      "name": "<string>",
      "value": "<string>"
    }
  ],
  "requestBody": "<string>",
  "autoGenerateParams": true,
  "autoGenerateBody": true
}'
{
  "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 da intenção a ser adicionada

The body is of type object.

Response

200
application/json

Intenção adicionada com sucesso

The response is of type object.