Responder al cliente en el ticket (asistente)
curl --request POST \
--url https://api.raul.ugps.io/api/v1/tickets/{ticketId}/delegated/customer-replies \
--header 'Content-Type: application/json' \
--header 'X-MCP-Intent-Id: <x-mcp-intent-id>' \
--data '
{
"content": "<string>",
"files": [
{
"file_name": "<string>",
"content_base64": "aSDinaTvuI8gbWludGxpZnk="
}
]
}
'import requests
url = "https://api.raul.ugps.io/api/v1/tickets/{ticketId}/delegated/customer-replies"
payload = {
"content": "<string>",
"files": [
{
"file_name": "<string>",
"content_base64": "aSDinaTvuI8gbWludGxpZnk="
}
]
}
headers = {
"X-MCP-Intent-Id": "<x-mcp-intent-id>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-MCP-Intent-Id': '<x-mcp-intent-id>', 'Content-Type': 'application/json'},
body: JSON.stringify({
content: '<string>',
files: [{file_name: '<string>', content_base64: 'aSDinaTvuI8gbWludGxpZnk='}]
})
};
fetch('https://api.raul.ugps.io/api/v1/tickets/{ticketId}/delegated/customer-replies', 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.raul.ugps.io/api/v1/tickets/{ticketId}/delegated/customer-replies",
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([
'content' => '<string>',
'files' => [
[
'file_name' => '<string>',
'content_base64' => 'aSDinaTvuI8gbWludGxpZnk='
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-MCP-Intent-Id: <x-mcp-intent-id>"
],
]);
$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.raul.ugps.io/api/v1/tickets/{ticketId}/delegated/customer-replies"
payload := strings.NewReader("{\n \"content\": \"<string>\",\n \"files\": [\n {\n \"file_name\": \"<string>\",\n \"content_base64\": \"aSDinaTvuI8gbWludGxpZnk=\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-MCP-Intent-Id", "<x-mcp-intent-id>")
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.raul.ugps.io/api/v1/tickets/{ticketId}/delegated/customer-replies")
.header("X-MCP-Intent-Id", "<x-mcp-intent-id>")
.header("Content-Type", "application/json")
.body("{\n \"content\": \"<string>\",\n \"files\": [\n {\n \"file_name\": \"<string>\",\n \"content_base64\": \"aSDinaTvuI8gbWludGxpZnk=\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.raul.ugps.io/api/v1/tickets/{ticketId}/delegated/customer-replies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-MCP-Intent-Id"] = '<x-mcp-intent-id>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"content\": \"<string>\",\n \"files\": [\n {\n \"file_name\": \"<string>\",\n \"content_base64\": \"aSDinaTvuI8gbWludGxpZnk=\"\n }\n ]\n}"
response = http.request(request)
puts response.read_bodyTickets
Responder al cliente en el ticket (asistente)
POST
/
api
/
v1
/
tickets
/
{ticketId}
/
delegated
/
customer-replies
Responder al cliente en el ticket (asistente)
curl --request POST \
--url https://api.raul.ugps.io/api/v1/tickets/{ticketId}/delegated/customer-replies \
--header 'Content-Type: application/json' \
--header 'X-MCP-Intent-Id: <x-mcp-intent-id>' \
--data '
{
"content": "<string>",
"files": [
{
"file_name": "<string>",
"content_base64": "aSDinaTvuI8gbWludGxpZnk="
}
]
}
'import requests
url = "https://api.raul.ugps.io/api/v1/tickets/{ticketId}/delegated/customer-replies"
payload = {
"content": "<string>",
"files": [
{
"file_name": "<string>",
"content_base64": "aSDinaTvuI8gbWludGxpZnk="
}
]
}
headers = {
"X-MCP-Intent-Id": "<x-mcp-intent-id>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-MCP-Intent-Id': '<x-mcp-intent-id>', 'Content-Type': 'application/json'},
body: JSON.stringify({
content: '<string>',
files: [{file_name: '<string>', content_base64: 'aSDinaTvuI8gbWludGxpZnk='}]
})
};
fetch('https://api.raul.ugps.io/api/v1/tickets/{ticketId}/delegated/customer-replies', 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.raul.ugps.io/api/v1/tickets/{ticketId}/delegated/customer-replies",
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([
'content' => '<string>',
'files' => [
[
'file_name' => '<string>',
'content_base64' => 'aSDinaTvuI8gbWludGxpZnk='
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-MCP-Intent-Id: <x-mcp-intent-id>"
],
]);
$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.raul.ugps.io/api/v1/tickets/{ticketId}/delegated/customer-replies"
payload := strings.NewReader("{\n \"content\": \"<string>\",\n \"files\": [\n {\n \"file_name\": \"<string>\",\n \"content_base64\": \"aSDinaTvuI8gbWludGxpZnk=\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-MCP-Intent-Id", "<x-mcp-intent-id>")
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.raul.ugps.io/api/v1/tickets/{ticketId}/delegated/customer-replies")
.header("X-MCP-Intent-Id", "<x-mcp-intent-id>")
.header("Content-Type", "application/json")
.body("{\n \"content\": \"<string>\",\n \"files\": [\n {\n \"file_name\": \"<string>\",\n \"content_base64\": \"aSDinaTvuI8gbWludGxpZnk=\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.raul.ugps.io/api/v1/tickets/{ticketId}/delegated/customer-replies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-MCP-Intent-Id"] = '<x-mcp-intent-id>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"content\": \"<string>\",\n \"files\": [\n {\n \"file_name\": \"<string>\",\n \"content_base64\": \"aSDinaTvuI8gbWludGxpZnk=\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body