Saltar para o conteúdo principal
POST
/
public
/
api
/
v1
/
agents
/
{agentPublicId}
/
http-tools
Link an HTTP tool to the agent
curl --request POST \
  --url https://api.gennia.ai/public/api/v1/agents/{agentPublicId}/http-tools \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "httpToolPublicId": "9c3a4d22-1a8d-4b3f-9b1e-7a0f0c4f3e21"
}
'
{
  "active": true,
  "httpToolPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "requiresApproval": true,
  "toolName": "<string>"
}

Autorizações

X-Api-Key
string
header
obrigatório

Parâmetros de caminho

agentPublicId
string<uuid>
obrigatório

Corpo

application/json

Body for linking an existing HTTP tool to an agent.

httpToolPublicId
string<uuid>
obrigatório

Public ID of the HTTP tool to link to the agent.

Exemplo:

"9c3a4d22-1a8d-4b3f-9b1e-7a0f0c4f3e21"

Resposta

Tool linked

HTTP tool linked to an agent.

active
boolean
httpToolPublicId
string<uuid>
requiresApproval
boolean
toolName
string
toolType
enum<string>
Opções disponíveis:
HTTP_REQUEST,
DATABASE_QUERY,
INTERNAL_VARIABLE,
CUSTOM_INTEGRATION,
PIPEDREAM_MCP