ResourcesTickets

Search ticket messages

Search a ticket's messages with filters, search terms, includes, and sort instructions in a JSON request body.

Search a ticket's messages with filters, search terms, includes, and sort instructions in a JSON request body.

POST
/v1/tickets/{ticket}/messages/search

Authorization

bearerAuth
AuthorizationBearer <token>

Provide your SellApp API key as a bearer token.

In: header

Path Parameters

ticket*integer

The ticket path parameter.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://sell.app/api/v1/tickets/0/messages/search" \  -H "Content-Type: application/json" \  -d '{    "filters": [      {        "field": "id",        "operator": "=",        "value": 1      }    ],    "sort": [      {        "field": "created_at",        "direction": "desc"      }    ]  }'
{
  "data": [
    {
      "id": 1,
      "author": "CUSTOMER",
      "sender": "e@x.com",
      "content": "Hi. I want to buy sell app. do you accept doge?",
      "created_at": "2022-12-12T12:12:12.000000Z",
      "updated_at": "2022-12-12T12:12:12.000000Z",
      "ticket_id": 1
    }
  ],
  "links": {},
  "meta": {}
}