curl --request POST \
--url https://api.jurichat.com/conversation/start-human-support \
--header 'Content-Type: application/json' \
--header 'x-jurichat-api-key: <api-key>' \
--data '
{
"conversationId": "<string>",
"departmentId": "<string>",
"selectedUserId": "<string>",
"isRandom": false,
"notifyTransfer": false,
"templateName": "<string>",
"variables": [
"<string>"
],
"bodyVariableNames": [
"<string>"
],
"headerVariables": [
"<string>"
],
"headerVariableNames": [
"<string>"
],
"buttonVariables": [
{
"index": 1,
"parameters": [
"<string>"
],
"parameterNames": [
"<string>"
]
}
]
}
'import requests
url = "https://api.jurichat.com/conversation/start-human-support"
payload = {
"conversationId": "<string>",
"departmentId": "<string>",
"selectedUserId": "<string>",
"isRandom": False,
"notifyTransfer": False,
"templateName": "<string>",
"variables": ["<string>"],
"bodyVariableNames": ["<string>"],
"headerVariables": ["<string>"],
"headerVariableNames": ["<string>"],
"buttonVariables": [
{
"index": 1,
"parameters": ["<string>"],
"parameterNames": ["<string>"]
}
]
}
headers = {
"x-jurichat-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-jurichat-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
conversationId: '<string>',
departmentId: '<string>',
selectedUserId: '<string>',
isRandom: false,
notifyTransfer: false,
templateName: '<string>',
variables: ['<string>'],
bodyVariableNames: ['<string>'],
headerVariables: ['<string>'],
headerVariableNames: ['<string>'],
buttonVariables: [{index: 1, parameters: ['<string>'], parameterNames: ['<string>']}]
})
};
fetch('https://api.jurichat.com/conversation/start-human-support', 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://api.jurichat.com/conversation/start-human-support",
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([
'conversationId' => '<string>',
'departmentId' => '<string>',
'selectedUserId' => '<string>',
'isRandom' => false,
'notifyTransfer' => false,
'templateName' => '<string>',
'variables' => [
'<string>'
],
'bodyVariableNames' => [
'<string>'
],
'headerVariables' => [
'<string>'
],
'headerVariableNames' => [
'<string>'
],
'buttonVariables' => [
[
'index' => 1,
'parameters' => [
'<string>'
],
'parameterNames' => [
'<string>'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-jurichat-api-key: <api-key>"
],
]);
$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://api.jurichat.com/conversation/start-human-support"
payload := strings.NewReader("{\n \"conversationId\": \"<string>\",\n \"departmentId\": \"<string>\",\n \"selectedUserId\": \"<string>\",\n \"isRandom\": false,\n \"notifyTransfer\": false,\n \"templateName\": \"<string>\",\n \"variables\": [\n \"<string>\"\n ],\n \"bodyVariableNames\": [\n \"<string>\"\n ],\n \"headerVariables\": [\n \"<string>\"\n ],\n \"headerVariableNames\": [\n \"<string>\"\n ],\n \"buttonVariables\": [\n {\n \"index\": 1,\n \"parameters\": [\n \"<string>\"\n ],\n \"parameterNames\": [\n \"<string>\"\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-jurichat-api-key", "<api-key>")
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://api.jurichat.com/conversation/start-human-support")
.header("x-jurichat-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"conversationId\": \"<string>\",\n \"departmentId\": \"<string>\",\n \"selectedUserId\": \"<string>\",\n \"isRandom\": false,\n \"notifyTransfer\": false,\n \"templateName\": \"<string>\",\n \"variables\": [\n \"<string>\"\n ],\n \"bodyVariableNames\": [\n \"<string>\"\n ],\n \"headerVariables\": [\n \"<string>\"\n ],\n \"headerVariableNames\": [\n \"<string>\"\n ],\n \"buttonVariables\": [\n {\n \"index\": 1,\n \"parameters\": [\n \"<string>\"\n ],\n \"parameterNames\": [\n \"<string>\"\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jurichat.com/conversation/start-human-support")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-jurichat-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"conversationId\": \"<string>\",\n \"departmentId\": \"<string>\",\n \"selectedUserId\": \"<string>\",\n \"isRandom\": false,\n \"notifyTransfer\": false,\n \"templateName\": \"<string>\",\n \"variables\": [\n \"<string>\"\n ],\n \"bodyVariableNames\": [\n \"<string>\"\n ],\n \"headerVariables\": [\n \"<string>\"\n ],\n \"headerVariableNames\": [\n \"<string>\"\n ],\n \"buttonVariables\": [\n {\n \"index\": 1,\n \"parameters\": [\n \"<string>\"\n ],\n \"parameterNames\": [\n \"<string>\"\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>"
}{
"message": "<string>",
"statusCode": 123,
"details": "<unknown>"
}{
"message": "<string>",
"statusCode": 123,
"details": "<unknown>"
}Iniciar atendimento humano ou transferir
Transfere a conversa para atendimento humano. Permite atribuir a um atendente específico ou a um aleatório, com opção de notificar o contato.
curl --request POST \
--url https://api.jurichat.com/conversation/start-human-support \
--header 'Content-Type: application/json' \
--header 'x-jurichat-api-key: <api-key>' \
--data '
{
"conversationId": "<string>",
"departmentId": "<string>",
"selectedUserId": "<string>",
"isRandom": false,
"notifyTransfer": false,
"templateName": "<string>",
"variables": [
"<string>"
],
"bodyVariableNames": [
"<string>"
],
"headerVariables": [
"<string>"
],
"headerVariableNames": [
"<string>"
],
"buttonVariables": [
{
"index": 1,
"parameters": [
"<string>"
],
"parameterNames": [
"<string>"
]
}
]
}
'import requests
url = "https://api.jurichat.com/conversation/start-human-support"
payload = {
"conversationId": "<string>",
"departmentId": "<string>",
"selectedUserId": "<string>",
"isRandom": False,
"notifyTransfer": False,
"templateName": "<string>",
"variables": ["<string>"],
"bodyVariableNames": ["<string>"],
"headerVariables": ["<string>"],
"headerVariableNames": ["<string>"],
"buttonVariables": [
{
"index": 1,
"parameters": ["<string>"],
"parameterNames": ["<string>"]
}
]
}
headers = {
"x-jurichat-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-jurichat-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
conversationId: '<string>',
departmentId: '<string>',
selectedUserId: '<string>',
isRandom: false,
notifyTransfer: false,
templateName: '<string>',
variables: ['<string>'],
bodyVariableNames: ['<string>'],
headerVariables: ['<string>'],
headerVariableNames: ['<string>'],
buttonVariables: [{index: 1, parameters: ['<string>'], parameterNames: ['<string>']}]
})
};
fetch('https://api.jurichat.com/conversation/start-human-support', 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://api.jurichat.com/conversation/start-human-support",
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([
'conversationId' => '<string>',
'departmentId' => '<string>',
'selectedUserId' => '<string>',
'isRandom' => false,
'notifyTransfer' => false,
'templateName' => '<string>',
'variables' => [
'<string>'
],
'bodyVariableNames' => [
'<string>'
],
'headerVariables' => [
'<string>'
],
'headerVariableNames' => [
'<string>'
],
'buttonVariables' => [
[
'index' => 1,
'parameters' => [
'<string>'
],
'parameterNames' => [
'<string>'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-jurichat-api-key: <api-key>"
],
]);
$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://api.jurichat.com/conversation/start-human-support"
payload := strings.NewReader("{\n \"conversationId\": \"<string>\",\n \"departmentId\": \"<string>\",\n \"selectedUserId\": \"<string>\",\n \"isRandom\": false,\n \"notifyTransfer\": false,\n \"templateName\": \"<string>\",\n \"variables\": [\n \"<string>\"\n ],\n \"bodyVariableNames\": [\n \"<string>\"\n ],\n \"headerVariables\": [\n \"<string>\"\n ],\n \"headerVariableNames\": [\n \"<string>\"\n ],\n \"buttonVariables\": [\n {\n \"index\": 1,\n \"parameters\": [\n \"<string>\"\n ],\n \"parameterNames\": [\n \"<string>\"\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-jurichat-api-key", "<api-key>")
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://api.jurichat.com/conversation/start-human-support")
.header("x-jurichat-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"conversationId\": \"<string>\",\n \"departmentId\": \"<string>\",\n \"selectedUserId\": \"<string>\",\n \"isRandom\": false,\n \"notifyTransfer\": false,\n \"templateName\": \"<string>\",\n \"variables\": [\n \"<string>\"\n ],\n \"bodyVariableNames\": [\n \"<string>\"\n ],\n \"headerVariables\": [\n \"<string>\"\n ],\n \"headerVariableNames\": [\n \"<string>\"\n ],\n \"buttonVariables\": [\n {\n \"index\": 1,\n \"parameters\": [\n \"<string>\"\n ],\n \"parameterNames\": [\n \"<string>\"\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jurichat.com/conversation/start-human-support")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-jurichat-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"conversationId\": \"<string>\",\n \"departmentId\": \"<string>\",\n \"selectedUserId\": \"<string>\",\n \"isRandom\": false,\n \"notifyTransfer\": false,\n \"templateName\": \"<string>\",\n \"variables\": [\n \"<string>\"\n ],\n \"bodyVariableNames\": [\n \"<string>\"\n ],\n \"headerVariables\": [\n \"<string>\"\n ],\n \"headerVariableNames\": [\n \"<string>\"\n ],\n \"buttonVariables\": [\n {\n \"index\": 1,\n \"parameters\": [\n \"<string>\"\n ],\n \"parameterNames\": [\n \"<string>\"\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>"
}{
"message": "<string>",
"statusCode": 123,
"details": "<unknown>"
}{
"message": "<string>",
"statusCode": 123,
"details": "<unknown>"
}Authorizations
Chave de API do escritório (criada no painel). Envie o valor no header x-jurichat-api-key.
Body
ID da conversa.
^[cC][^\s-]{8,}$ID do departamento responsável pela fila. Opcional.
ID do atendente específico. Opcional.
^[cC][^\s-]{8,}$Quando verdadeiro, seleciona um atendente aleatório elegível. Padrão: false.
Quando verdadeiro, envia notificação de transferência ao contato. Padrão: false.
Nome do template de mensagem WhatsApp para a notificação de transferência. Opcional.
Variáveis do corpo do template, na ordem definida pelo canal. Opcional.
Nomes das variáveis do corpo para templates com parâmetros nomeados. Opcional.
Variáveis do cabeçalho do template. Opcional.
Nomes das variáveis do cabeçalho para templates com parâmetros nomeados. Opcional.
Mídia do cabeçalho do template (imagem, vídeo, documento ou localização). Opcional.
Show child attributes
Show child attributes
Variáveis dos botões dinâmicos do template. Opcional.
Show child attributes
Show child attributes