Documentation Index
Fetch the complete documentation index at: https://docs.thena.ai/llms.txt
Use this file to discover all available pages before exploring further.
MCP tool: search_tickets
Searches for tickets using Thena’s powerful search API with advanced filtering capabilities. This tool allows you to find tickets based on various criteria including title, description, status, priority, assigned agent, and other ticket properties.
Example prompt
Response fields
The response will contain aresult object with the following structure:
| Field | Type | Description |
|---|---|---|
| found | number | Total number of tickets found |
| hits | array | Array of ticket objects matching the search criteria |
| page | number | Current page number |
| facet_counts | array | Facet counts for search results |
| request_params | object | Parameters used for the search request |
| search_cutoff | boolean | Whether the search was cut off due to limits |
Ticket object fields
Each ticket in thehits array contains a document object with the following fields:
| Field | Type | Description |
|---|---|---|
| id | string | Ticket ID |
| uid | string | Ticket unique identifier |
| ticketId | string | Ticket number |
| ticketIdentifier | string | Full ticket identifier (e.g., “WED-5”) |
| title | string | Ticket title |
| description | string | Ticket description |
| aiGeneratedSummary | string | AI-generated summary |
| aiGeneratedTitle | string | AI-generated title |
| metadata | string | Ticket metadata (JSON string) |
| ticketRelationshipsAsSource | array | Ticket relationships where this ticket is the source |
| ticketRelationshipsAsTarget | array | Ticket relationships where this ticket is the target |
| organizationId | number | Organization ID |
| organizationUid | string | Organization unique identifier |
| formId | number | Form ID |
| formUid | string | Form unique identifier |
| formName | string | Form name |
| formCreatedAt | string (ISO8601) | Form creation timestamp |
| formUpdatedAt | string (ISO8601) | Form last update timestamp |
| formCreatedBy | number | Form creator ID |
| formOrder | number | Form order |
| formTeamId | number | Form team ID |
| formType | string | Form type |
| formDefault | boolean | Whether this is the default form |
| requestorEmail | string | Requestor email |
| submitterEmail | string | Submitter email |
| accountId | string | Account ID |
| accountName | string | Account name |
| lastCustomerComment | string | Last customer comment |
| lastVendorComment | string | Last vendor comment |
| teamId | number | Team ID |
| teamUid | string | Team unique identifier |
| teamIdentifier | string | Team identifier |
| teamName | string | Team name |
| teamIcon | string | Team icon |
| teamColor | string | Team color |
| teamOrganizationId | number | Team organization ID |
| teamParentTeamId | number | Team parent team ID |
| teamDescription | string | Team description |
| teamConfigurationId | number | Team configuration ID |
| teamTeamOwnerId | number | Team owner ID |
| teamIsActive | boolean | Whether the team is active |
| teamIsPrivate | boolean | Whether the team is private |
| teamCreatedAt | string (ISO8601) | Team creation timestamp |
| teamUpdatedAt | string (ISO8601) | Team last update timestamp |
| subTeamId | string | Sub-team ID |
| subTeamUid | string | Sub-team unique identifier |
| subTeamName | string | Sub-team name |
| subTeamIdentifier | string | Sub-team identifier |
| subTeamIcon | string | Sub-team icon |
| subTeamColor | string | Sub-team color |
| subTeamOrganizationId | number | Sub-team organization ID |
| subTeamParentTeamId | number | Sub-team parent team ID |
| subTeamDescription | string | Sub-team description |
| subTeamConfigurationId | number | Sub-team configuration ID |
| subTeamTeamOwnerId | number | Sub-team owner ID |
| subTeamIsActive | boolean | Whether the sub-team is active |
| subTeamIsPrivate | boolean | Whether the sub-team is private |
| subTeamCreatedAt | string (ISO8601) | Sub-team creation timestamp |
| subTeamUpdatedAt | string (ISO8601) | Sub-team last update timestamp |
| assignedAgentId | number | Assigned agent ID |
| assignedAgentEmail | string | Assigned agent email |
| assignedAgentName | string | Assigned agent name |
| assignedAgentUid | string | Assigned agent unique identifier |
| assignedAgentAvatarUrl | string | Assigned agent avatar URL |
| statusId | number | Status ID |
| statusName | string | Status name |
| statusUid | string | Status unique identifier |
| priorityId | number | Priority ID |
| priorityName | string | Priority name |
| priorityUid | string | Priority unique identifier |
| typeId | number | Type ID |
| typeName | string | Type name |
| typeUid | string | Type unique identifier |
| typeIcon | string | Type icon |
| typeColor | string | Type color |
| customerContactUid | string | Customer contact unique identifier |
| customerContactName | string | Customer contact name |
| customerContactEmail | string | Customer contact email |
| isEscalated | boolean | Whether the ticket is escalated |
| isPrivate | boolean | Whether the ticket is private |
| isDraft | boolean | Whether the ticket is a draft |
| sentimentId | number | Sentiment ID |
| sentimentUid | string | Sentiment unique identifier |
| sentimentName | string | Sentiment name |
| source | string | Ticket source |
| storyPoints | number | Story points |
| createdAt | string (ISO8601) | Ticket creation timestamp |
| updatedAt | string (ISO8601) | Ticket last update timestamp |
| slaTotalResolutionTimeComplianceState | string | SLA total resolution time compliance state |
| slaFirstTimeResponseCreatedAt | string | SLA first time response created at |
| slaFirstTimeResponseScheduledAt | string | SLA first time response scheduled at |
| slaFirstTimeResponseBreachedAt | string | SLA first time response breached at |
| slaFirstTimeResponseAchievedAt | string | SLA first time response achieved at |
| slaFirstTimeResponsePausedAt | string | SLA first time response paused at |
| slaFirstTimeResponseResumedAt | string | SLA first time response resumed at |
| slaFirstTimeResponseCancelledAt | string | SLA first time response cancelled at |
| slaFirstTimeResponseNextAttemptAt | string | SLA first time response next attempt at |
| slaFirstTimeResponseComplianceState | string | SLA first time response compliance state |
| slaNextTimeResponseCreatedAt | string | SLA next time response created at |
| slaNextTimeResponseScheduledAt | string | SLA next time response scheduled at |
| slaNextTimeResponseBreachedAt | string | SLA next time response breached at |
| slaNextTimeResponseAchievedAt | string | SLA next time response achieved at |
| slaNextTimeResponsePausedAt | string | SLA next time response paused at |
| slaNextTimeResponseCancelledAt | string | SLA next time response cancelled at |
| slaNextTimeResponseDurationToBreachMinutes | string | SLA next time response duration to breach minutes |
| slaNextTimeResponsePausedDurationMinutes | string | SLA next time response paused duration minutes |
| slaNextTimeResponseNextAttemptAt | string | SLA next time response next attempt at |
| slaNextTimeResponseComplianceState | string | SLA next time response compliance state |
| slaUpdateTimeCreatedAt | string | SLA update time created at |
| slaUpdateTimeScheduledAt | string | SLA update time scheduled at |
| slaUpdateTimeBreachedAt | string | SLA update time breached at |
| slaUpdateTimeAchievedAt | string | SLA update time achieved at |
| slaUpdateTimePausedAt | string | SLA update time paused at |
| slaUpdateTimeResumedAt | string | SLA update time resumed at |
| slaUpdateTimeCancelledAt | string | SLA update time cancelled at |
| slaUpdateTimeDurationToBreachMinutes | string | SLA update time duration to breach minutes |
| slaUpdateTimePausedDurationMinutes | string | SLA update time paused duration minutes |
| slaUpdateTimeNextAttemptAt | string | SLA update time next attempt at |
| slaUpdateComplianceState | string | SLA update compliance state |
| accountPrimaryDomain | string | Account primary domain |
| accountWebsite | string | Account website |
| accountSecondaryDomain | string | Account secondary domain |
| accountBillingAddress | string | Account billing address |
| accountShippingAddress | string | Account shipping address |
| accountAnnualRevenue | string | Account annual revenue |
| accountEmployees | string | Account employees |
| accountOwnerId | string | Account owner ID |
| accountOwnerEmail | string | Account owner email |
| accountOwnerName | string | Account owner name |
| accountOwnerUserType | string | Account owner user type |
| accountOwnerStatus | string | Account owner status |
| accountOwnerTimezone | string | Account owner timezone |
| accountIsActive | boolean | Whether the account is active |
| accountSource | string | Account source |
| accountHealth | string | Account health |
| accountIndustry | string | Account industry |
| accountClassification | string | Account classification |
| accountStatus | string | Account status |
| accountUid | string | Account unique identifier |
| accountLogo | string | Account logo |
| accountOwnerUid | string | Account owner unique identifier |
| accountHealthUid | string | Account health unique identifier |
| accountIndustryUid | string | Account industry unique identifier |
| accountClassificationUid | string | Account classification unique identifier |
| accountStatusUid | string | Account status unique identifier |
| accountHealthValue | string | Account health value |
| accountIndustryValue | string | Account industry value |
| accountClassificationValue | string | Account classification value |
| accountStatusValue | string | Account status value |
| contactEmail | string | Contact email |
| contactName | string | Contact name |
| contactAvatarUrl | string | Contact avatar URL |
| contactPhone | string | Contact phone |
| accountCustomFields | array | Account custom fields |
| ticketCustomFieldValues | array | Ticket custom field values |
| tags | object | Ticket tags |
| csatRatingValue | number | CSAT rating value |
| csatCommentText | string | CSAT comment text |
| csatCompletedAt | string | CSAT completed at |
| csatMappingStatus | string | CSAT mapping status |
| csatSamplingStatus | string | CSAT sampling status |
| csatFeedbackType | string | CSAT feedback type |
| csatSurveyConfigRatingScale | number | CSAT survey config rating scale |
| csatDeliveryDetailsRecipient | string | CSAT delivery details recipient |
| csatDeliveryDetailsLastAttemptAt | string | CSAT delivery details last attempt at |
| csatDeliveryDetailsDeliveryAttempts | number | CSAT delivery details delivery attempts |
| parentStatusUid | string | Parent status unique identifier |
| parentStatusName | string | Parent status name |