REST DocumentationTicketsGET List a ticket's comments

List a ticket’s comments

Returns a paginated list of the comments of the given ticket and of its subtasks, oldest first. Field changes, attachments and entries without text are not comments and are left out.

Availability: Full version only — a Clock instance answers 404 for this endpoint.

Request

GET /api/v1/tickets/{id}/comments
curl --request GET \
     --url 'https://www.zep-online.de/zepinstanz/next/api/v1/tickets/{id}/comments' \
     --header 'Accept: application/json' \
     --header 'Authorization: Bearer {token}'

Path parameters

  • Name
    id
    Type
    integer
    Description

    The ticket ID

Query parameters

  • Name
    limit
    Type
    integer, nullable
    Description

    The number of records per page, 1 to 200. Defaults to 15.

  • Name
    page
    Type
    integer, nullable
    Description

    The page of results to return, counting from 1.

Response

{
  "data": [
    {
      "id": 1,
      "date": "2024-07-20T00:00:00.000000Z",
      "employee_username": "john.doe",
      "customer_contact_id": "42",
      "subtask_id": 1,
      "text": "Please call the customer back.",
      "internal": true
    }
  ],
  "links": {
    "first": "string",
    "last": "string",
    "prev": "string",
    "next": "string"
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 1,
    "links": [
      {
        "url": "string",
        "label": "string",
        "active": true
      }
    ],
    "path": "string",
    "per_page": 1,
    "to": 1,
    "total": 1
  }
}

Response fields

  • Name
    id
    Type
    integer
    Description

    The comment’s unique identifier.

  • Name
    date
    Type
    string (date-time)
    Description

    When the comment was written.

  • Name
    employee_username
    Type
    string, nullable
    Description

    The username of the employee who wrote the comment, null for a customer’s comment.

  • Name
    customer_contact_id
    Type
    string, nullable
    Description

    The id of the customer contact who wrote the comment, null for an employee’s comment.

  • Name
    subtask_id
    Type
    integer, nullable
    Description

    The id of the subtask the comment belongs to, null when it belongs to the ticket itself.

  • Name
    text
    Type
    string
    Description

    The comment as plain text, without HTML.

  • Name
    internal
    Type
    boolean
    Description

    Whether the comment is internal.

Generated from the OpenAPI specification — edit the source code, not this page.