TicketsApi

All URIs are relative to https://freshdesk.com/api/v2

MethodHTTP requestDescription
addNotePOST /tickets/{id}/notesAdd a note in a Ticket
createTicketPOST /ticketscreate a ticket
createTicketUsingOutboundEmailPOST /tickets/outbound_emailCreate a ticket using outbound email
deleteAttachmentDELETE /attachments/{id}Delete an Attachment
deleteTicketDELETE /tickets/{id}Delete a ticket
getTicketGET /tickets/{id}Get a ticket
listTicketSatisfactionRatingsGET /tickets/{id}/satisfaction_ratingsList all satisfaction ratings of a Ticket
listTicketTimeEntriesGET /tickets/{id}/time_entriesList all time entries of a Ticket
listTicketsGET /ticketsList all tickets
replyTicketPOST /tickets/{id}/replyReply to a Ticket
restoreTicketPUT /tickets/{id}/restoreRestore Ticket
searchTicketGET /search/ticketsSearch Tickets
updateTicketPUT /tickets/{id}Update a ticket

addNote

Add a note in a Ticket

Method syntax: Notes addNote(id, notes)

Parameters

NameTypeDescriptionNotes
idNumber
notesNotes

Return type

Notes

Authorization

basicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

createTicket

create a ticket

Method syntax: PostTicketResponse createTicket(ticket)

Parameters

NameTypeDescriptionNotes
ticketPostTicketTicket entity

Return type

PostTicketResponse

Authorization

basicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

createTicketUsingOutboundEmail

Create a ticket using outbound email

Method syntax: GetTicket createTicketUsingOutboundEmail(requester)

Parameters

NameTypeDescriptionNotes
requesterOutBoundEmailRequest

Return type

GetTicket

Authorization

basicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

deleteAttachment

Delete an Attachment

Method syntax: deleteAttachment(id)

Parameters

NameTypeDescriptionNotes
idNumber

Return type

null (empty response body)

Authorization

basicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

deleteTicket

Delete a ticket

Method syntax: deleteTicket(id)

Parameters

NameTypeDescriptionNotes
idNumber

Return type

null (empty response body)

Authorization

basicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getTicket

Get a ticket

Method syntax: GetTicket getTicket(id, opts)

Parameters

NameTypeDescriptionNotes
idNumber
includeStringComma-separated values[optional]

Return type

GetTicket

Authorization

basicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

listTicketSatisfactionRatings

List all satisfaction ratings of a Ticket

Method syntax: [SatisfactionRating] listTicketSatisfactionRatings(id)

Parameters

NameTypeDescriptionNotes
idNumber

Return type

[SatisfactionRating]

Authorization

basicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

listTicketTimeEntries

List all time entries of a Ticket

Method syntax: [TicketEntry] listTicketTimeEntries(id, opts)

Parameters

NameTypeDescriptionNotes
idNumber
pageNumber[optional]

Return type

[TicketEntry]

Authorization

basicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

listTickets

List all tickets

Method syntax: [GetAllTicketResponse] listTickets(opts)

Parameters

NameTypeDescriptionNotes
filterString[optional]
includeStringComma-separated values[optional]
companyIdNumber[optional]
requesterIdNumber[optional]
emailString[optional]
updatedSinceDate[optional]
orderByString[optional]
orderTypeString[optional]

Return type

[GetAllTicketResponse]

Authorization

basicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

replyTicket

Reply to a Ticket

Method syntax: TicketsReply replyTicket(id, ticketReply)

Parameters

NameTypeDescriptionNotes
idNumber
ticketReplyTicketsReply

Return type

TicketsReply

Authorization

basicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

restoreTicket

Restore Ticket

Method syntax: restoreTicket(id)

Parameters

NameTypeDescriptionNotes
idNumberDisplay ID of ticket

Return type

null (empty response body)

Authorization

basicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

searchTicket

Search Tickets

Method syntax: TicketSearchResult searchTicket(query)

Parameters

NameTypeDescriptionNotes
queryStringQuery Hash used for the search

Return type

TicketSearchResult

Authorization

basicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

updateTicket

Update a ticket

Method syntax: PutTicketResponse updateTicket(id, ticket)

Parameters

NameTypeDescriptionNotes
idNumber
ticketPutTicketRequest

Return type

PutTicketResponse

Authorization

basicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json
Last Updated: