Socialboards
  • Developer hub
  • APIs
    • Ticket API
      • Getting Started
        • Guidelines and data privacy
      • Authorization
        • Access tokens
      • Categories
      • Custom Fields
      • Action Log
      • Notes
      • Replies
      • Tags
      • Tickets
      • Teammates
      • User Groups
      • Widgets
      • Webhooks
        • Getting Started
        • Create Endpoint
        • Configure the Webhooks
        • Testing your webhooks
      • Reference
        • Endpoints
          • Get Access Token v2
          • Get Full Community Category List
          • Get Subcategories by Parent Id
          • Get Category By Id
          • Get Full Community Custom Field List
          • Add Custom Field
          • Get Custom Field
          • Get All Teammates
          • Get All User Groups for Community
          • Update Custom Field
          • Delete Custom Field
          • Create Ticket
          • List Tickets
          • List Ticket Ids By Field Ids
          • Get Ticket by Id
          • Update Ticket Custom Field Value
          • Update Ticket Assignee
          • Get Ticket Log
          • Update Ticket Status
          • Update Ticket Category (Obsolete)
          • Update Ticket Category
          • Create Reply
          • List Replies
          • Add Note To Ticket
          • Update Note
          • Delete Note
          • List tags
          • Replace Ticket Tags
          • Replace Reply Tags
          • Get Widget Schedule List
        • API Request Result
        • Webhook Payload
        • Objects
          • Base Attachment
          • Category
          • Custom Field
          • Custom Field Id with Value
          • Custom Field Possible Value
          • Custom Field Value
          • Custom Times Widget Schedule
          • Note
          • Reply
          • Reply/Note Creator
          • Reply Properties
          • Schedule Time
          • Tag
          • Teammate
          • Ticket
          • Ticket Action Included Items
          • Ticket Creator
          • Ticket Id with Field Value
          • Ticket Log
          • Ticket Properties
          • User
          • User Group
          • Widget Schedule
        • Events
          • Ticket Creation
          • Ticket Status Change
          • Ticket Tags Change
          • Ticket Category Change
          • Reply Creation
          • Reply Update
          • Reply Deletion
          • Note Creation
          • Note Update
          • Note Deletion
        • Enumerations
          • Custom Field Types and Values Formats
          • Sentiment
          • Ticket Action Type
          • Ticket List Order By
          • Ticket Source
          • Ticket Status
          • User Role
          • Detailed Ticket Source
      • Glossary
    • External Chat API
      • Conversations Overview
      • Configure the Webhooks
      • Glossary
      • Reference
        • Endpoints
          • Create conversation
          • Add messages to conversation
          • Get conversation by id
          • List conversation messages
          • Get conversation queue information
          • Get takeover state
          • Change takeover state
          • Update conversation feedback
          • Update conversation latest url
          • Close conversation
        • Objects
          • Bot
          • Conversation
          • Conversation feedback
          • Conversation message
          • Conversation takeover
          • Conversation queue position
          • User
          • User Value
        • Events
          • Conversation created
          • Conversation Message Added
          • Conversation Takeover State Changed
          • Conversation Status Changed
        • Enumerations
          • Bot type
          • Order by
          • User status
          • Conversation Status
    • FAQ API
      • Glossary
      • Categories
      • FAQ Instances
      • Tags
      • Topics
      • Reference
        • Endpoints
          • List FAQ Instances
          • List Tags
          • List Categories
          • List Topics
          • Get Specific Topic
          • Add Vote to Topic
          • Increase View Count for Topic
          • Search Topics by Params
        • Objects
          • Attachment
          • Category
          • Instance
          • Tag
          • Topic
          • Topic Search Result
        • Enumerations
          • Localization Language
          • Template Type
          • Topic Downvote Reason
          • Topics Sort Options
    • Support Widget
      • Installation
      • Configuration options
      • Full script example
      • Javascript changelog
      • Widget schedule API
    • Reporting & Statistics
      • Data warehouse (DWH)
        • Entity relationship diagram (ERD)
        • Most used views and values
      • Reports and dashboards
  • Security
    • Introduction to Security
    • Data centers & network security
    • Product security features
    • Application security
    • Data Processing
    • Sub-Processors
      • 2023-04 Intility AS
        • Addendum 2023-4
  • Updates
    • Changelog
Powered by GitBook
On this page

Was this helpful?

  1. APIs
  2. Ticket API
  3. Reference
  4. Endpoints

List Tickets

PreviousCreate TicketNextList Ticket Ids By Field Ids

Last updated 6 months ago

Was this helpful?

All API requests should contain .

Request

POST /tickets/list

Query Parameters.

This endpoint doesn't require query parameters.

Request Body

{
    "categoryId": 33527,
    "customFields": [
        {
            "key": 18464,
            "value": "Option 2"
        }
    ],
    "from": "2020-01-01T00:00:00+00:00",
    "orderBy": "last_thread_activity_desc",
    "skip": 0,
    "source": "web",
    "status": "open",
    "take": 100,
    "to": "2020-03-02T00:00:00+00:00",
    "ticketIds": [
        4484636,
        4484618,
        4478963
    ]
}

Body of request should contain the following model serialized to JSON.

Field
Type
Required
Comments

categoryId

nullabe integer

no

Unique Id of category ticket should belong to. If value is null uncategorized tickets will be selected

customFields

no

List of models containing custom field ids and values. If array contains several custom fields, tickets must have all of them to be selected in result

from

string

no

Min creation time of tickets shown in results. string containing DateTime with offset, in the following format: "2020-02-27T12:28:02.6019432+01:00"

orderBy

string

no

skip

integer

no

Amount of tickets should be skipped from the result

source

string

no

status

string

no

take

int

no

Max ammount of tickets shown in results. Max value is 50. default: 25

ticketIds

array of integers

no

ids of tickets to select from results. It can be used to fetch tickets by id(s)

to

string

no

Max creation time of tickets shown in results. string containing DateTime with offset, in the following format: "2020-02-27T12:28:02.6019432+01:00"

{
    "data": [
        {
            "id": 4484636,
            "title": "New car price list.",
            "message": "Hello I want to buy a new car, how can I get a price list?",
            "htmlMessage": "Hello I want to buy a new car, how can I get a price list?",
            "attachments": [],
            "author": {
                "id": "7c0a344a-c369-4e27-9840-88257a56e835",
                "name": "Bill Smith",
                "image": null,
                "email": "bill_smith@gmail.com",
                "status": "client",
                "isBot": false
            },
            "category": {
                "id": 15597,
                "name": "Customers"
            },
            "creationTime": "2019-12-18T18:00:03.6368531+00:00",
            "customFields": [],
            "lastThreadElementCreationTime": "2019-12-18T18:00:03.6368531+00:00",
            "lockedBy": null,
            "originalLink": null,
            "properties": {
                "isAnonymized": false,
                "isMuted": false,
                "hasAttachments": true,
                "hasDraft": false,
                "isAssignedToBot": false,
                "isDeleted": false,
                "isExpired": true,
                "isHidden": false,
                "isLocked": false,
                "isSpam": false,
                "isSensitive": false
            },
            "replyCount": 0,
            "sentiment": "question",
            "source": "web",
            "detailedSource": "web_website",
            "sourceName": null,
            "status": "open",
            "tags": [
                "urgent"
            ]
        },
        {
            "id": 4484618,
            "title": "New car price list.",
            "message": "Hello I want to buy a new car, how can I get a price list?",
            "htmlMessage": "Hello I want to buy a new car, how can I get a price list?",
            "attachments": [],
            "author": {
                "id": "7c0a344a-c369-4e27-9840-88257a56e835",
                "name": "Bill Smith",
                "image": null,
                "email": "bill_smith@gmail.com",
                "status": "client",
                "isBot": false
            },
            "category": {
                "id": 15597,
                "name": "Customers"
            },
            "creationTime": "2019-12-18T17:55:52.6381081+00:00",
            "customFields": [],
            "lastThreadElementCreationTime": "2019-12-18T17:55:52.6381081+00:00",
            "lockedBy": null,
            "originalLink": null,
            "properties": {
                "isAnonymized": false,
                "isMuted": false,
                "hasAttachments": true,
                "hasDraft": false,
                "isAssignedToBot": false,
                "isDeleted": false,
                "isExpired": true,
                "isHidden": false,
                "isLocked": false,
                "isSpam": false,
                "isSensitive": false
            },
            "replyCount": 0,
            "sentiment": "question",
            "source": "web",
            "detailedSource": "web_website",
            "sourceName": null,
            "status": "open",
            "tags": []
        },
        {
            "id": 4478963,
            "title": "Cat is ill",
            "message": "I want to take my cat to a vet",
            "htmlMessage": "I want to take my cat to a vet",
            "attachments": [],
            "author": {
                "id": "35692164-bfaa-4c49-a23c-ecfa618f7d20",
                "name": "Robert Baker",
                "image": null,
                "email": "robert78baker@gmail.com",
                "status": "client",
                "isBot": false
            },
            "category": {
                "id": 15721,
                "name": "Other cases"
            },
            "creationTime": "2019-12-17T07:03:48.318717+00:00",
            "customFields": [],
            "lastThreadElementCreationTime": "2019-12-17T07:21:21.5003556+00:00",
            "lockedBy": null,
            "originalLink": null,
            "properties": {
                "isAnonymized": false,
                "isMuted": false,
                "hasAttachments": false,
                "hasDraft": false,
                "isAssignedToBot": false,
                "isDeleted": false,
                "isExpired": true,
                "isHidden": false,
                "isLocked": false,
                "isSpam": false,
                "isSensitive": false
            },
            "replyCount": 3,
            "sentiment": "question",
            "source": "web",
            "detailedSource": "web_website",
            "sourceName": null,
            "status": "open",
            "tags": []
        }
    ],
    "errorCode": -1,
    "errorText": null
}

array of models

Order of tickets in the list. Can be one of enumeration values

Source of tickets. Can be one of enumeration values

Ticket status. Can be one of enumeration values

Data field will contain an array of models.

authorization headers
Ticket
Custom Field Id and Value
TicketListOrderBy
TicketSource
TicketStatus