Pular para o conteúdo principal
POST
/
api
/
{agentId}
Enviar mensagem
curl --request POST \
  --url https://chat.meuassistente.rdstationmentoria.com.br/api/{agentId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "tools": [],
  "preview": false,
  "utm": {
    "source": "<string>",
    "medium": "<string>",
    "campaign": "<string>",
    "content": "<string>",
    "term": "<string>"
  },
  "format": "markdown",
  "leadId": "<string>",
  "platformUserIdentifier": "<string>",
  "message": {
    "content": null,
    "name": null,
    "createdAt": "2026-02-08T00:20:48.482Z",
    "metadata": {},
    "toolCallId": null,
    "attachments": []
  },
  "messages": []
}
'
import requests

url = "https://chat.meuassistente.rdstationmentoria.com.br/api/{agentId}"

payload = {
    "id": "<string>",
    "tools": [],
    "preview": False,
    "utm": {
        "source": "<string>",
        "medium": "<string>",
        "campaign": "<string>",
        "content": "<string>",
        "term": "<string>"
    },
    "format": "markdown",
    "leadId": "<string>",
    "platformUserIdentifier": "<string>",
    "message": {
        "content": None,
        "name": None,
        "createdAt": "2026-02-08T00:20:48.482Z",
        "metadata": {},
        "toolCallId": None,
        "attachments": []
    },
    "messages": []
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({
    id: '<string>',
    tools: [],
    preview: false,
    utm: {
      source: '<string>',
      medium: '<string>',
      campaign: '<string>',
      content: '<string>',
      term: '<string>'
    },
    format: 'markdown',
    leadId: '<string>',
    platformUserIdentifier: '<string>',
    message: {
      content: null,
      name: null,
      createdAt: '2026-02-08T00:20:48.482Z',
      metadata: {},
      toolCallId: null,
      attachments: []
    },
    messages: []
  })
};

fetch('https://chat.meuassistente.rdstationmentoria.com.br/api/{agentId}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://chat.meuassistente.rdstationmentoria.com.br/api/{agentId}",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'id' => '<string>',
    'tools' => [
        
    ],
    'preview' => false,
    'utm' => [
        'source' => '<string>',
        'medium' => '<string>',
        'campaign' => '<string>',
        'content' => '<string>',
        'term' => '<string>'
    ],
    'format' => 'markdown',
    'leadId' => '<string>',
    'platformUserIdentifier' => '<string>',
    'message' => [
        'content' => null,
        'name' => null,
        'createdAt' => '2026-02-08T00:20:48.482Z',
        'metadata' => [
                
        ],
        'toolCallId' => null,
        'attachments' => [
                
        ]
    ],
    'messages' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer <token>",
    "Content-Type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://chat.meuassistente.rdstationmentoria.com.br/api/{agentId}"

	payload := strings.NewReader("{\n  \"id\": \"<string>\",\n  \"tools\": [],\n  \"preview\": false,\n  \"utm\": {\n    \"source\": \"<string>\",\n    \"medium\": \"<string>\",\n    \"campaign\": \"<string>\",\n    \"content\": \"<string>\",\n    \"term\": \"<string>\"\n  },\n  \"format\": \"markdown\",\n  \"leadId\": \"<string>\",\n  \"platformUserIdentifier\": \"<string>\",\n  \"message\": {\n    \"content\": null,\n    \"name\": null,\n    \"createdAt\": \"2026-02-08T00:20:48.482Z\",\n    \"metadata\": {},\n    \"toolCallId\": null,\n    \"attachments\": []\n  },\n  \"messages\": []\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://chat.meuassistente.rdstationmentoria.com.br/api/{agentId}")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"id\": \"<string>\",\n  \"tools\": [],\n  \"preview\": false,\n  \"utm\": {\n    \"source\": \"<string>\",\n    \"medium\": \"<string>\",\n    \"campaign\": \"<string>\",\n    \"content\": \"<string>\",\n    \"term\": \"<string>\"\n  },\n  \"format\": \"markdown\",\n  \"leadId\": \"<string>\",\n  \"platformUserIdentifier\": \"<string>\",\n  \"message\": {\n    \"content\": null,\n    \"name\": null,\n    \"createdAt\": \"2026-02-08T00:20:48.482Z\",\n    \"metadata\": {},\n    \"toolCallId\": null,\n    \"attachments\": []\n  },\n  \"messages\": []\n}")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://chat.meuassistente.rdstationmentoria.com.br/api/{agentId}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"id\": \"<string>\",\n  \"tools\": [],\n  \"preview\": false,\n  \"utm\": {\n    \"source\": \"<string>\",\n    \"medium\": \"<string>\",\n    \"campaign\": \"<string>\",\n    \"content\": \"<string>\",\n    \"term\": \"<string>\"\n  },\n  \"format\": \"markdown\",\n  \"leadId\": \"<string>\",\n  \"platformUserIdentifier\": \"<string>\",\n  \"message\": {\n    \"content\": null,\n    \"name\": null,\n    \"createdAt\": \"2026-02-08T00:20:48.482Z\",\n    \"metadata\": {},\n    \"toolCallId\": null,\n    \"attachments\": []\n  },\n  \"messages\": []\n}"

response = http.request(request)
puts response.read_body
{
  "id": "<string>",
  "messages": [
    {
      "id": "<string>",
      "conversationId": "<string>",
      "usage": {
        "promptTokens": 123,
        "completionTokens": 123,
        "cachedTokens": 123
      },
      "name": null,
      "content": null,
      "toolCallId": null,
      "toolCalls": null,
      "metadata": {},
      "feedback": null,
      "attachments": [],
      "createdAt": "2026-02-08T00:20:48.487Z",
      "updatedAt": "2026-02-08T00:20:48.487Z"
    }
  ],
  "lead": {
    "id": "<string>",
    "workspaceId": "<string>",
    "agentId": null,
    "name": null,
    "email": null,
    "phone": null,
    "company": null,
    "site": null,
    "custom": {},
    "utm": {},
    "capture": "completed",
    "createdAt": "2026-02-08T00:20:48.488Z",
    "updatedAt": "2026-02-08T00:20:48.488Z"
  }
}
{
  "message": "<string>",
  "code": "<string>",
  "issues": [
    {
      "message": "<string>"
    }
  ]
}

Autorizações

Authorization
string
header
obrigatório

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

Parâmetros de caminho

agentId
string
obrigatório

Identificador do assistente

Corpo

application/json
id
string

A conversa para enviar a mensagem, ou undefined para iniciar uma nova conversa

tools
object[]

Ferramentas utilizadas pelo assistente

preview
boolean
padrão:false
utm
object

Informações de rastreamento UTM

format
enum<string>
padrão:markdown

Formata a resposta gerada pelo assistente para diferentes canais

Opções disponíveis:
markdown,
plain,
whatsapp,
slack
leadId
string

Identificador do lead

platformUserIdentifier
string

Identificador do usuário plataforma de origem

message
object | null

Mensagem única para adicionar neste turno da conversa e gerar uma resposta

messages
object[] | null

Mensagens para adicionar neste turno da conversa e gerar uma resposta

Resposta

Successful response

Resposta de uma conversa de chat com mensagens, status e lead

id
string
obrigatório

Identificador da conversa

messages
object[]
obrigatório

Mensagens geradas durante este turno da conversa

status
enum<string>
obrigatório

Status

Opções disponíveis:
active,
finished
lead
object

Dados do lead