Skip to content

Ticket Threads

Sayar Samanta edited this page Aug 28, 2018 · 2 revisions

Description : To fetch all threads of a ticket by ticket id

  1. URL : api/v1/helpdesk/ticket-thread

Parameters :

Name Data Type Required/Optional Description
token String Required token generated for a user
api_key String Optional An alphanumeric code that can be used to authenticate your API calls
id Integer Required Id of the ticket

HTTP Method : GET

Response Format : JSON

Response : Returns thread details of the ticket.

http://www.stablehelpdeskc.faveodemo.com/api/v1/helpdesk/ticket-thread?api_key=9p41T2XFZ34YRZJUNQAdmM7iV0Rr1CjN&ip=null&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9wcm9kdWN0ZGVtb3VybC5jb21cL2NvbW11bml0eVwvcHVibGljXC9hcGlcL3YxXC9hdXRoZW50aWNhdGUiLCJpYXQiOjE1MzUwMTM0NjYsImV4cCI6MTUzNTAxMzcwNiwibmJmIjoxNTM1MDEzNDY2LCJqdGkiOiJ5WGxlNElTQkFaNllmNGRwIiwic3ViIjoxLCJwcnYiOiI4N2UwYWYxZWY5ZmQxNTgxMmZkZWM5NzE1M2ExNGUwYjA0NzU0NmFhIn0.L1qRdoW8XVHMsIonrXwu7oRURlIuXKvD9_FA95HQxhc&id=106

JSON Response Example :

Success Response :

[
    {
        "id": 256,
        "ticket_id": 106,
        "user_id": 44,
        "poster": "client",
        "source": null,
        "title": "Testing ticket with new SLA",
        "body": "Testing ticket with new created SLA",
        "is_internal": 0,
        "format": "",
        "ip_address": "",
        "created_at": "2018-08-22 06:55:37",
        "updated_at": "2018-08-22 06:55:37",
        "first_name": "steve",
        "last_name": "jobs",
        "user_name": "steve@gmail.com",
        "email": "steve@gmail.com",
        "profile_pic": "https://secure.gravatar.com/avatar/97b691cbe6a457fe1de58da61d411e0a?s=80&r=g&d=identicon"
    }
]

Some Common Error :

Error Response : If the token is expired

{
“error":"Token has expired"
}

If the token is not provided

 {
  "error": "token_not_provided"
}

If the ticket id is not provided

{
    "error": {
        "id": [
            "The id field is required."
        ]
    }
}
Parameter Description
id id of the thread
ticket_id id of the ticket
user_id id of the user
poster poster indicates department
source source of the thread
title title of the ticket
body body of the thread
is_internal indicates internal note or not
format format of the thread
ip_address ip address of the system
created_at thread creation date
updated_at indicates the thread updated date
first_name first name of the replier
last_name last name of the replier
user_name user name of the replier
email email of the replier
profile_pic profile picture of the replier

Installation and Upgrade Guide

Administrator's Guide

Agent's Guide

Email Integration

Release & Upgrade Notes

Known Issues

Contribute & Feedback

Knowledge Base

Third Party Integration

Plugins

API

Clone this wiki locally