Zum Hauptinhalt springen
GET
/
ticket
/
{ticketId}
/
history
Get a tickets history
curl --request GET \
  --url https://demo.enneo.ai/api/mind/ticket/{ticketId}/history \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "total": 11,
  "totalOpenedTickets": 2,
  "history": [
    {
      "id": 1022,
      "type": "ticket",
      "channel": "email",
      "subChannel": null,
      "status": "active",
      "subject": "Tom Mustermann",
      "url": null,
      "createdAt": 1673039966
    },
    {
      "id": 222,
      "type": "ticket",
      "channel": "phone",
      "subChannel": null,
      "status": "pending",
      "subject": "missedCall",
      "url": null,
      "createdAt": 1672953566
    },
    {
      "id": 135,
      "type": "ticket",
      "channel": "chat",
      "subChannel": "facebook",
      "status": "open",
      "subject": null,
      "url": "https://facebook.com/message/289291",
      "createdAt": 1662153566
    },
    {
      "id": null,
      "type": "delivery",
      "channel": null,
      "subChannel": null,
      "status": null,
      "subject": "deliveryStart",
      "url": "https://powercloud.de/gridMessages/41425548",
      "createdAt": 1660953600
    },
    {
      "id": null,
      "type": "gridMessage",
      "channel": null,
      "subChannel": "gridOperator",
      "status": null,
      "subject": "deliveryStartConfirmed",
      "url": "https://powercloud.de/gridMessages/41425548",
      "createdAt": 1660345921
    },
    {
      "id": null,
      "type": "gridMessage",
      "channel": null,
      "subChannel": "previousSupplier",
      "status": null,
      "subject": "handoverDateConfirmed",
      "url": "https://powercloud.de/gridMessages/41425548",
      "createdAt": 1657667521
    }
  ]
}

Autorisierungen

Authorization
string
header
erforderlich

JWT-based authentication

Pfadparameter

ticketId
integer
erforderlich

The id of the ticket

Abfrageparameter

limit
integer
Standard:100

The number of items to return

Erforderlicher Bereich: 1 <= x <= 1000
offset
integer
Standard:0

The number of items to skip

Erforderlicher Bereich: x >= 0

Antwort

Successful operation

success
boolean
Beispiel:

true

total
number
Beispiel:

11

totalOpenedTickets
number
Beispiel:

2

history
object[]
Beispiel:
[
  {
    "id": 1022,
    "type": "ticket",
    "channel": "email",
    "subChannel": null,
    "status": "active",
    "subject": "Tom Mustermann",
    "url": null,
    "createdAt": 1673039966
  },
  {
    "id": 222,
    "type": "ticket",
    "channel": "phone",
    "subChannel": null,
    "status": "pending",
    "subject": "missedCall",
    "url": null,
    "createdAt": 1672953566
  },
  {
    "id": 135,
    "type": "ticket",
    "channel": "chat",
    "subChannel": "facebook",
    "status": "open",
    "subject": null,
    "url": "https://facebook.com/message/289291",
    "createdAt": 1662153566
  },
  {
    "id": null,
    "type": "delivery",
    "channel": null,
    "subChannel": null,
    "status": null,
    "subject": "deliveryStart",
    "url": "https://powercloud.de/gridMessages/41425548",
    "createdAt": 1660953600
  },
  {
    "id": null,
    "type": "gridMessage",
    "channel": null,
    "subChannel": "gridOperator",
    "status": null,
    "subject": "deliveryStartConfirmed",
    "url": "https://powercloud.de/gridMessages/41425548",
    "createdAt": 1660345921
  },
  {
    "id": null,
    "type": "gridMessage",
    "channel": null,
    "subChannel": "previousSupplier",
    "status": null,
    "subject": "handoverDateConfirmed",
    "url": "https://powercloud.de/gridMessages/41425548",
    "createdAt": 1657667521
  }
]