Tickets y escalaciones
List tickets and escalations
Discover durable work across the connected workspace, including legacy reviews. Filter and paginate rather than reading every conversation. Counts are work items, independent of unread and needsReply. Read get_ticket and lifecycle events before deciding an action; conversation/message evidence requires its existing scopes. Follow all pages with unchanged filters. Lists are live, not frozen snapshots. Pass includeCommerce=true to discover Commerce-backed general tickets, including purchase-only work. source=commerce and purchaseId narrow discovery; current workspace Stripe mode applies. Existing clients omit Commerce by default. Never infer purchase completion from a ticket mutation.
GET
/
tickets
List tickets and escalations
curl --request GET \
--url https://platform-api.visitoai.com/m2m/v1/tickets \
--header 'Authorization: Bearer <token>'import requests
url = "https://platform-api.visitoai.com/m2m/v1/tickets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform-api.visitoai.com/m2m/v1/tickets', 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://platform-api.visitoai.com/m2m/v1/tickets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://platform-api.visitoai.com/m2m/v1/tickets"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://platform-api.visitoai.com/m2m/v1/tickets")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform-api.visitoai.com/m2m/v1/tickets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"tickets": [
{
"ticketId": "<string>",
"tenantId": "<string>",
"type": "ticket",
"status": "pending",
"title": "<string>",
"description": "<string>",
"revision": 1,
"contextStatus": "available",
"contact": {
"displayName": "<string>",
"avatarUrl": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>",
"source": {
"kind": "manual",
"messageId": "<string>",
"eventId": "<string>",
"purchaseId": "<string>",
"stripeMode": "test",
"reason": "<string>",
"cycle": 2
},
"permittedActions": [
"update"
],
"conversationId": "<string>",
"channel": "<string>",
"business": {
"propertyId": "<string>",
"name": "<string>"
},
"assignee": {
"operatorId": "<string>",
"name": "<string>"
},
"resolvedAt": "<string>",
"escalation": {
"reasonCode": "<string>",
"returnsToAiOnResolve": true,
"ownershipActive": true,
"capturedFields": {},
"missingFields": [
"<string>"
],
"knowledgeGap": {
"contextStatus": "available",
"schemaVersion": "1.0",
"category": "<string>",
"sourceCount": 4503599627370495,
"sourceTitles": [
"<string>"
],
"importance": "<string>",
"confidence": "high",
"receiptStatus": "available",
"receipt": {
"receiptId": "<string>",
"reportedAt": "2023-11-07T05:31:56Z",
"behavior": "report_only",
"disposition": "reported"
}
}
},
"commerce": {
"contextStatus": "available",
"review": {
"tenantId": "<string>",
"purchaseId": "<string>",
"reason": "<string>",
"factsKey": "<string>",
"sourceVersion": "<string>",
"asOf": "<string>",
"title": "<string>",
"itemName": "<string>",
"currency": "<string>",
"purchaseKind": "<string>",
"paymentStatus": "<string>",
"fulfillmentStatus": "<string>",
"refundStatus": "<string>",
"stripeMode": "test",
"cycle": 1,
"revision": 1,
"required": true,
"amountMinor": 123,
"historical": true,
"providerBookingIds": [
"<string>"
],
"permittedActions": [
"fulfill"
],
"humanActions": [
"refund"
],
"source": {
"conversationId": "<string>",
"conversationKey": "<string>",
"channel": "<string>",
"propertyId": "<string>"
},
"bookingConfirmed": true,
"bookingStatus": "<string>",
"outcome": "<string>",
"sourceReconciledAt": "<string>",
"reconciliation": {
"outcome": "completed_externally",
"reference": "<string>",
"note": "<string>",
"actor": {
"id": "<string>",
"type": "operator",
"name": "<string>"
},
"at": "<string>"
},
"lastCommand": {
"id": "<string>",
"action": "fulfill",
"actor": {
"id": "<string>",
"type": "operator",
"name": "<string>"
},
"at": "<string>"
}
}
}
}
],
"counts": {
"pending": 1,
"in_progress": 1,
"resolved": 1,
"cancelled": 1
},
"hasMore": true,
"nextCursor": "<string>",
"asOf": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Autorizaciones
Parámetros de consulta
⌘I
List tickets and escalations
curl --request GET \
--url https://platform-api.visitoai.com/m2m/v1/tickets \
--header 'Authorization: Bearer <token>'import requests
url = "https://platform-api.visitoai.com/m2m/v1/tickets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform-api.visitoai.com/m2m/v1/tickets', 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://platform-api.visitoai.com/m2m/v1/tickets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://platform-api.visitoai.com/m2m/v1/tickets"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://platform-api.visitoai.com/m2m/v1/tickets")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform-api.visitoai.com/m2m/v1/tickets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"tickets": [
{
"ticketId": "<string>",
"tenantId": "<string>",
"type": "ticket",
"status": "pending",
"title": "<string>",
"description": "<string>",
"revision": 1,
"contextStatus": "available",
"contact": {
"displayName": "<string>",
"avatarUrl": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>",
"source": {
"kind": "manual",
"messageId": "<string>",
"eventId": "<string>",
"purchaseId": "<string>",
"stripeMode": "test",
"reason": "<string>",
"cycle": 2
},
"permittedActions": [
"update"
],
"conversationId": "<string>",
"channel": "<string>",
"business": {
"propertyId": "<string>",
"name": "<string>"
},
"assignee": {
"operatorId": "<string>",
"name": "<string>"
},
"resolvedAt": "<string>",
"escalation": {
"reasonCode": "<string>",
"returnsToAiOnResolve": true,
"ownershipActive": true,
"capturedFields": {},
"missingFields": [
"<string>"
],
"knowledgeGap": {
"contextStatus": "available",
"schemaVersion": "1.0",
"category": "<string>",
"sourceCount": 4503599627370495,
"sourceTitles": [
"<string>"
],
"importance": "<string>",
"confidence": "high",
"receiptStatus": "available",
"receipt": {
"receiptId": "<string>",
"reportedAt": "2023-11-07T05:31:56Z",
"behavior": "report_only",
"disposition": "reported"
}
}
},
"commerce": {
"contextStatus": "available",
"review": {
"tenantId": "<string>",
"purchaseId": "<string>",
"reason": "<string>",
"factsKey": "<string>",
"sourceVersion": "<string>",
"asOf": "<string>",
"title": "<string>",
"itemName": "<string>",
"currency": "<string>",
"purchaseKind": "<string>",
"paymentStatus": "<string>",
"fulfillmentStatus": "<string>",
"refundStatus": "<string>",
"stripeMode": "test",
"cycle": 1,
"revision": 1,
"required": true,
"amountMinor": 123,
"historical": true,
"providerBookingIds": [
"<string>"
],
"permittedActions": [
"fulfill"
],
"humanActions": [
"refund"
],
"source": {
"conversationId": "<string>",
"conversationKey": "<string>",
"channel": "<string>",
"propertyId": "<string>"
},
"bookingConfirmed": true,
"bookingStatus": "<string>",
"outcome": "<string>",
"sourceReconciledAt": "<string>",
"reconciliation": {
"outcome": "completed_externally",
"reference": "<string>",
"note": "<string>",
"actor": {
"id": "<string>",
"type": "operator",
"name": "<string>"
},
"at": "<string>"
},
"lastCommand": {
"id": "<string>",
"action": "fulfill",
"actor": {
"id": "<string>",
"type": "operator",
"name": "<string>"
},
"at": "<string>"
}
}
}
}
],
"counts": {
"pending": 1,
"in_progress": 1,
"resolved": 1,
"cancelled": 1
},
"hasMore": true,
"nextCursor": "<string>",
"asOf": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}