ListLinkedConversationsOutput
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Conversation"
}
}
}
}
ListMessagesOutput
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Message"
}
}
}
}
ListPresenceOutput
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UserPresence"
}
},
"meta": {
"$ref": "#/components/schemas/PaginationLinks"
}
}
}
ListQueuesOutput
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Queue1"
}
}
}
}
ListTagsOutput
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Tag"
}
}
}
}
ListTeamMembersOutput
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/TeamMember"
}
}
}
}
ListTeamsOutput
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Team1"
}
}
}
}
ListWebhookSubscriptionsEndpointOutput
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/WebhookSubscription"
}
}
}
}
LongAggregateValue
{
"type": "object",
"required": [
"value",
"measure"
],
"properties": {
"value": {
"type": "integer",
"format": "int64"
},
"measure": {
"type": "string",
"description": "values: [Count]"
}
}
}
LongField
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "integer",
"format": "int64"
}
}
}
Map_ConversationChannel_Int
{
"type": "object",
"description": "values: [WhatsApp, Voicemail, WidgetChat, FacebookMessenger, Twitter, Email, ContactForm, Callback, PstnPhone, Sms, Messenger]",
"additionalProperties": {
"type": "integer",
"format": "int32"
}
}
Map_ConversationChannel_Set_String
{
"type": "object",
"description": "values: [WhatsApp, Voicemail, WidgetChat, FacebookMessenger, Twitter, Email, ContactForm, Callback, PstnPhone, Sms, Messenger]",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
}
}
Map_QueueThreshold_Int
{
"type": "object",
"description": "values: [SlaTimeLimit, AvailableAgents, LongestWait, SlaPercentage, WaitingConversations]",
"additionalProperties": {
"type": "integer",
"format": "int32"
}
}
Map_String
{
"type": "object",
"additionalProperties": {
"type": "string"
}
}
Map_UUID_Option_AttributeValue
{
"type": "object",
"additionalProperties": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
],
"description": "AttributeValue values: String[] if the type of the custom attribute is Select or String if the type of the custom attribute is Text"
}
}
Map_Vector_String
{
"type": "object",
"description": "Snippet of text where a match was found. Matched text will be wrapped in \\<em\\> tags.",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
}
}
Message
{
"type": "object",
"required": [
"id",
"authorId",
"createdAt",
"attributes"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"authorId": {
"type": "string",
"format": "uuid"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"attributes": {
"$ref": "#/components/schemas/Attributes"
},
"externalId": {
"type": "string"
}
}
}
MessageAddedAttribute
{
"type": "object",
"required": [
"messageId"
],
"properties": {
"avatarUrl": {
"type": "string"
},
"messageId": {
"type": "string"
},
"fromEndpoint": {
"type": "string"
}
}
}
MessageAddedByAgentActivityType
{
"type": "object"
}
MessageAddedByCustomerActivityType
{
"type": "object"
}
MessageAnonymizationType
{
"type": "object"
}
MessengerConversation
{
"type": "object",
"required": [
"id",
"requesterId",
"channel",
"createdAt"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"link": {
"$ref": "#/components/schemas/ConversationLink"
},
"queue": {
"$ref": "#/components/schemas/Queue"
},
"state": {
"type": "string",
"description": "values: [AwaitingPending, Closed, Open, Pending]"
},
"channel": {
"type": "string",
"description": "values: [WhatsApp, Voicemail, WidgetChat, FacebookMessenger, Twitter, Email, ContactForm, Callback, PstnPhone, Sms, Messenger]"
},
"language": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"direction": {
"type": "string",
"description": "values: [Inbound, Internal, Outbound]"
},
"assignment": {
"$ref": "#/components/schemas/Assignment"
},
"requesterId": {
"type": "string",
"format": "uuid"
},
"stateUpdatedAt": {
"type": "string",
"format": "date-time"
},
"customAttributes": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CustomAttribute"
}
}
}
}
MetricData
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"aggregates": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AggregateValue"
}
}
}
}
MetricMetadata
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The metric ID"
},
"filters": {
"type": "array",
"items": {
"$ref": "#/components/schemas/FilterMetadata"
},
"description": "List of available filters that can be used when fetching metric data"
},
"description": {
"type": "string",
"description": "Relevant information about the metric"
},
"aggregations": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AggregateMetadata"
},
"description": "List of available aggregations that can be used when fetching metric data"
},
"relatedRecordIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of record IDs used to compose the metric"
}
}
}
MetricRecord
{
"type": "object",
"required": [
"primaryTimestampField"
],
"properties": {
"value": {
"$ref": "#/components/schemas/FieldType"
},
"fields": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Field"
}
},
"primaryTimestampField": {
"$ref": "#/components/schemas/TimestampField"
}
}
}
MetricRecordMetadata
{
"type": "object",
"required": [
"id",
"description"
],
"properties": {
"id": {
"type": "string",
"description": "The record ID"
},
"filters": {
"type": "array",
"items": {
"$ref": "#/components/schemas/FilterMetadata"
},
"description": "List of available filters that can be used when fetching record data"
},
"description": {
"type": "string",
"description": "Relevant information about the record"
},
"fieldsMetadata": {
"type": "array",
"items": {
"$ref": "#/components/schemas/FieldMetadata"
},
"description": "Information about the individual record fields"
},
"relatedMetricIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of metric IDs that make use of this record"
}
}
}
NoAuth
{
"type": "object"
}
NoRecentDelivery
{
"type": "object"
}
NotFound
{
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
}
}
}
NotFound1
{
"type": "object",
"required": [
"id",
"message"
],
"properties": {
"id": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
NoteAddedActivityType
{
"type": "object"
}
NoteAddedAttribute
{
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
},
"avatarUrl": {
"type": "string"
}
}
}
Outbound
{
"type": "object",
"required": [
"content",
"agentId"
],
"properties": {
"cc": {
"type": "array",
"items": {
"type": "string",
"format": "uuid"
}
},
"bcc": {
"type": "array",
"items": {
"type": "string",
"format": "uuid"
}
},
"agentId": {
"type": "string",
"format": "uuid"
},
"content": {
"$ref": "#/components/schemas/Content"
},
"externalId": {
"type": "string"
},
"attachments": {
"type": "array",
"items": {
"$ref": "#/components/schemas/File"
}
},
"integrationEmail": {
"type": "string"
}
}
}
PaginationLinks
{
"type": "object",
"properties": {
"next": {
"type": "string",
"description": "url"
},
"previous": {
"type": "string",
"description": "url"
}
}
}
PatchAgentInput
{
"type": "object",
"properties": {
"lastName": {
"type": "string",
"description": "The agent's last name"
},
"avatarUrl": {
"type": "string",
"description": "The url from which to load the agent's avatar"
},
"firstName": {
"type": "string",
"description": "The agent's first name"
},
"displayName": {
"type": "string",
"description": "The agent's display name"
},
"middleNames": {
"type": "array",
"items": {
"type": "string"
},
"description": "The agent's middle names"
},
"phoneNumber": {
"type": "string",
"description": "The agent's primary phone number"
},
"additionalEmails": {
"type": "array",
"items": {
"type": "string"
},
"description": "Additional email addresses for the agent"
},
"additionalPhoneNumbers": {
"type": "array",
"items": {
"type": "string"
},
"description": "Additional phone numbers for the agent"
}
}
}
PatchConversationCustomAttributesOutput
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CustomAttribute"
}
}
}
}
PatchEndUserCustomAttributesOutput
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CustomAttribute"
}
}
}
}
PatchEndUserInput
{
"type": "object",
"properties": {
"email": {
"type": "string"
},
"lastName": {
"type": "string"
},
"avatarUrl": {
"type": "string"
},
"firstName": {
"type": "string"
},
"externalId": {
"type": "string"
},
"displayName": {
"type": "string"
},
"middleNames": {
"type": "array",
"items": {
"type": "string"
}
},
"phoneNumber": {
"type": "string"
},
"additionalEmails": {
"type": "array",
"items": {
"type": "string"
}
},
"additionalPhoneNumbers": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
PatchEndUserOutput
{
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"$ref": "#/components/schemas/EndUser"
}
}
}
PatchWebhookSubscriptionInput
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL of the server that the webhook request should be sent to"
},
"name": {
"type": "string",
"description": "The Webhook Subscription name"
},
"events": {
"type": "array",
"items": {
"type": "string",
"description": "values: [ConversationPending, AgentUnbannedEnduser, ConversationMessageAdded, ConversationTagAdded, AgentBannedIp, ConversationAssigned, ConversationPendingExpired, ConversationTransferred, ConversationEnqueued, ConversationCreated, ConversationUnassigned, ConversationOpen, ConversationAbandoned, ConversationClosed, ConversationNoteAdded, AgentBannedEnduser, ConversationEndUserReplaced, AgentUnbannedIp, ConversationTagRemoved, ConversationRated]"
},
"description": "The set of events this Webhook Subscription subscribes to. Allowed values: [ConversationPending, AgentUnbannedEnduser, ConversationMessageAdded, ConversationTagAdded, AgentBannedIp, ConversationAssigned, ConversationPendingExpired, ConversationTransferred, ConversationEnqueued, ConversationCreated, ConversationUnassigned, ConversationOpen, ConversationAbandoned, ConversationClosed, ConversationNoteAdded, AgentBannedEnduser, ConversationEndUserReplaced, AgentUnbannedIp, ConversationTagRemoved, ConversationRated]"
},
"enabled": {
"type": "boolean",
"description": "Defines whether this Webhook Subscription is enabled or disabled"
},
"authorization": {
"$ref": "#/components/schemas/WebhookAuthorization"
}
}
}
PatchWebhookSubscriptionOutput
{
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"$ref": "#/components/schemas/WebhookSubscription"
}
}
}
PeriodFilter
{
"oneOf": [
{
"$ref": "#/components/schemas/Interval"
},
{
"$ref": "#/components/schemas/Preset"
}
]
}
PhoneAttributes
{
"type": "object",
"required": [
"from",
"to"
],
"properties": {
"to": {
"type": "string"
},
"from": {
"type": "string"
},
"duration": {
"type": "integer",
"format": "int32"
},
"direction": {
"type": "string",
"description": "values: [Inbound, Internal, Outbound]"
}
}
}
Preset
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "string",
"description": "values: [PreviousQuarter, ThisWeek, PreviousWeek, Yesterday, Today, ThisMonth, PreviousMonth, ThisQuarter, ThisYear]"
}
}
}
PrimitiveField
{
"oneOf": [
{
"$ref": "#/components/schemas/BooleanField"
},
{
"$ref": "#/components/schemas/DoubleField"
},
{
"$ref": "#/components/schemas/InstantField"
},
{
"$ref": "#/components/schemas/IntField"
},
{
"$ref": "#/components/schemas/LongField"
},
{
"$ref": "#/components/schemas/StringField"
},
{
"$ref": "#/components/schemas/UUIDField"
}
]
}
PstnPhoneConversation
{
"type": "object",
"required": [
"id",
"requesterId",
"channel",
"createdAt"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"link": {
"$ref": "#/components/schemas/ConversationLink"
},
"queue": {
"$ref": "#/components/schemas/Queue"
},
"state": {
"type": "string",
"description": "values: [AwaitingPending, Closed, Open, Pending]"
},
"channel": {
"type": "string",
"description": "values: [WhatsApp, Voicemail, WidgetChat, FacebookMessenger, Twitter, Email, ContactForm, Callback, PstnPhone, Sms, Messenger]"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"direction": {
"type": "string",
"description": "values: [Inbound, Internal, Outbound]"
},
"assignment": {
"$ref": "#/components/schemas/Assignment"
},
"requesterId": {
"type": "string",
"format": "uuid"
},
"stateUpdatedAt": {
"type": "string",
"format": "date-time"
},
"customAttributes": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CustomAttribute"
}
}
}
}
Queue
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"queuedAt": {
"type": "string",
"format": "date-time"
}
}
}
Queue1
{
"type": "object",
"required": [
"id",
"name",
"isDefault",
"organizationId",
"queueThresholds",
"slaCalculationMethod",
"doNotOfferTimeouts",
"isDoNotOfferEnabled"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"usages": {
"$ref": "#/components/schemas/QueueUsages"
},
"priority": {
"type": "integer",
"format": "int32"
},
"isDefault": {
"type": "boolean"
},
"offerTimeout": {
"type": "integer",
"format": "int32"
},
"wrapupTimeout": {
"type": "integer",
"format": "int32"
},
"memberListType": {
"type": "string",
"description": "values: [Default, SkillBased]"
},
"organizationId": {
"type": "string"
},
"queueThresholds": {
"$ref": "#/components/schemas/Map_QueueThreshold_Int"
},
"offeringAlgorithm": {
"type": "string",
"description": "values: [AgentPriorityOneAtATimeRandom, AllAtOnce, AgentPriorityLongestIdle, AgentPriorityAllAtOnce, LongestIdle, OneAtATimeRandom]"
},
"doNotOfferTimeouts": {
"$ref": "#/components/schemas/Map_ConversationChannel_Int"
},
"isDoNotOfferEnabled": {
"type": "boolean"
},
"slaCalculationMethod": {
"type": "string",
"description": "values: [AbandonedIgnored]"
},
"preferredAgentTimeouts": {
"$ref": "#/components/schemas/Map_ConversationChannel_Int"
},
"isPreferredAgentEnabled": {
"type": "boolean"
},
"offerAbandonedConversations": {
"type": "boolean"
},
"personalAgentOfflineTimeout": {
"type": "integer",
"format": "int32"
},
"preferredAgentOfflineTimeout": {
"type": "integer",
"format": "int32"
}
}
}
QueueMember
{
"type": "object",
"required": [
"agentId"
],
"properties": {
"agentId": {
"type": "string"
},
"priority": {
"type": "integer",
"format": "int32"
}
}
}
QueueMembersOutput
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/QueueMember"
}
}
}
}