Exemplo de chamada do Bot usando parâmetros

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://api-docs.neppo.com.br/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Neppo API MCP server": {
    "url": "https://api-docs.neppo.com.br/mcp"
  }
}

Close
POST /chatapi/1.0/api/bot/dialog/hook/{bot_username}

Como o nome do bot é criado por padrão utilizando o caracter @ na api subistitua esta caracter pela formatação %40 ao utilizar a api. Por exemplo se o nome do bot for: bot@neppo, utilize: bot%40neppo

Path parameters

  • bot_username string Required

    Username do bot que receberá a chamada de diálogo (hook).

application/json

Body

  • args object
    Hide args attributes Show args attributes object
    • valor1 string
    • valor2 string
    • valor3 string
    • valor4 string

Responses

  • 200 application/json

    Requisição processada com sucesso. Retorna os dados correspondentes ao filtro informado.

    Hide response attribute Show response attribute object
    • id number
  • 401 application/json

    Token de autenticação ausente ou inválido. Envie o header Authorization: Bearer {token}.

    Hide response attribute Show response attribute object
    • status string
  • 403 application/json

    Acesso negado. O token informado não possui permissão para este recurso.

    Hide response attribute Show response attribute object
    • status string
  • 404 application/json

    Recurso não encontrado para os parâmetros informados.

    Hide response attribute Show response attribute object
    • status string
POST /chatapi/1.0/api/bot/dialog/hook/{bot_username}
curl \
 --request POST 'https://api.neppo.com.br/chatapi/1.0/api/bot/dialog/hook/{bot_username}' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"args":{"valor1":"111.222.333-00","valor2":"2 - DOIS","valor3":"3 - TRÊS","valor4":"4 - QUATRO"}}'
Request example
{
  "args": {
    "valor1": "111.222.333-00",
    "valor2": "2 - DOIS",
    "valor3": "3 - TRÊS",
    "valor4": "4 - QUATRO"
  }
}
Response examples (200)
{
  "id": 825786
}
Response examples (401)
{
  "status": "Unauthorized"
}
Response examples (403)
{
  "status": "Forbidden"
}
Response examples (404)
{
  "status": "Not Found"
}