Skip to content

Get Tickets By User

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

Description : To fetch all tickets created by specific user in FAVEO.

  1. URL : api/v1/helpdesk/my-tickets-user

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
user_id String Required id of the user

HTTP Method : GET

Response Format : JSON

Response : Returns all the tickets created by specific user in FAVEO.In case of any errors, an error message will be returned.

URL Request Example : http://www.stablehelpdeskc.faveodemo.com/api/v1/helpdesk/my-tickets-user?api_key=9p41T2XFZ34YRZJUNQAdmM7iV0Rr1CjN&ip=null&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9wcm9kdWN0ZGVtb3VybC5jb21cL2NvbW11bml0eVwvcHVibGljXC9hcGlcL3YxXC9hdXRoZW50aWNhdGUiLCJpYXQiOjE1MzUwMTUyMTUsImV4cCI6MTUzNTAxNTQ1NSwibmJmIjoxNTM1MDE1MjE1LCJqdGkiOiI2aEZiaTI1Rml5Q0FlRXhCIiwic3ViIjoxLCJwcnYiOiI4N2UwYWYxZWY5ZmQxNTgxMmZkZWM5NzE1M2ExNGUwYjA0NzU0NmFhIn0.yNAkUAskbOVyHGqIY5gO7NOgxPYShUOt4uPoj0u4eDQ&user_id=10 JSON Response Example :

Success Response :

{
    "tickets": [
        {
            "ticket_number": "AAAA-0000-0008",
            "id": 9,
            "title": "Core ML is Apple’s Machine Learning framework. Released just a year ago,",
            "ticket_status_name": "Open"
        }
    ],
    "requester": {
        "first_name": "Core ML",
        "last_name": "",
        "user_name": "coreml@gmail.com",
        "email": "coreml@gmail.com",
        "id": 10,
        "profile_pic": "https://secure.gravatar.com/avatar/6fde1e3dc38c4cd914b907ef1435b3ee?s=80&r=g&d=identicon",
        "ban": 0,
        "active": 1,
        "is_delete": 0,
        "phone_number": "",
        "ext": "",
        "country_code": 0,
        "mobile": null,
        "company": null
    }
}



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 user id is not provided

{
    "error": {
        "user_id": [
            "The user id field is required."
        ]
    }
}

Response Description :

Parameter Description
ticket_number ticket number
id id of the ticket
title title of the ticket
ticket_status_name ticket status name
first_name first name of the user
last_name last name of the user
user_name user name of the user
email email of the user
id id of the user
profile_pic profile picture of the user
ban indicates if the user is banned or not
active indicates if the user is active or not
is_delete indicates if the user is deleted or not
phone_number phone number of the user
ext extension of the phone number of the user
country_code country code of the mobile number of the user
mobile mobile number of the user
company company name of the user

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