Skip to main content

Action Endpoints

Actions

Endpoints for creating, retrieving, and managing ticket actions (notes, emails, time entries, and status changes), as well as canned text (saved reply templates).


Actions

GET /Actions

Summary: List of Actions

Description: Returns multiple Actions. Requires authentication.

Query Parameters:

NameTypeDescription
ticket_idintegerThe ID of the Ticket to get actions for.
actoutcomestringFilter on the name of the action outcome.
actoutcomenumintegerFilter on the system field ID of the outcome.
agentonlybooleanOnly get actions done by Agents.
conversationonlybooleanOnly get actions relating to the Agent to End User conversation.
countintegerNumber of actions to return in the response.
startdatestringActions occurring after this date.
enddatestringActions occurring before this date.
datesearchstringDate search parameter.
excludebillingbooleanExclude actions associated with billing (e.g. Send Invoice by Email).
excludehiddenfrominternalitbooleanExclude actions marked as hidden from Agents with Client Group set.
excludeprivatebooleanOnly get public actions.
excludesysbooleanExclude system actions.
importantonlybooleanOnly get important actions.
importanttopbooleanOrder response with important actions first.
includeagentdetailsbooleanInclude agent details in the response.
includeattachmentsbooleanInclude attachment details in the response.
includehtmlemailbooleanInclude the action email HTML in the response.
includehtmlnotebooleanInclude the action note HTML in the response.
includetranslationsbooleanInclude the translation count in the response.
includetwitterfieldsbooleanInclude Twitter fields in the response.
includefacebookfieldsbooleanInclude Facebook fields in the response.
includenonactionattachmentsbooleanInclude non-action attachments.
intraticketonlybooleanGet actions that are part of the intra-ticket conversation.
ischildnotesbooleanOnly get actions from child tickets.
isrelatednotesbooleanOnly get actions from related tickets.
slaonlybooleanOnly get SLA hold and release actions.
supplieronlybooleanOnly get actions relating to Suppliers.
timeentriesonlybooleanOnly get time entry actions.

Response 200: Actions_View

PropertyTypeDescription
ticket_idintegerThe ticket these actions belong to.
page_nointegerCurrent page number.
page_sizeintegerNumber of records per page.
record_countintegerTotal number of records.
actionsarray of Actions_ListSummarized action records.
actionsdetailsarray of ActionsFull action detail records.

POST /Actions

Summary: Create or update Actions

Description: Accepts an array of Actions objects to create or update.

Request Body: Array of Actions objects (see schema below).

Response 201: Single Actions object representing the created action.


GET /Actions/{id}

Summary: Get one Action

Description: Returns a single Action instance by its ID. Requires authentication.

Path Parameters:

NameTypeRequiredDescription
idintegerYesThe ID of the Action to retrieve.

Query Parameters:

NameTypeDescription
ticket_idintegerThe ID of the Ticket to get the action for.
agentonlybooleanOnly get actions done by Agents.
emailonlybooleanOnly get email actions.
includedetailsbooleanInclude extra objects in the response.
includeemailbooleanInclude the plain text and HTML email body in the response.
mostrecentbooleanGet the most recent action on the ticket instead of this ID.
nonsystembooleanOnly get non-system actions.
penultimatebooleanOnly get actions that are not the most recent.

Response 200: Actions object.


DELETE /Actions/{id}

Summary: Delete an Action

Path Parameters:

NameTypeRequiredDescription
idintegerYesThe ID of the Action to delete.

Response 200: OK


POST /Actions/reaction

Summary: Add a reaction to an action

Request Body: ActionReaction object

ActionReaction Schema:

PropertyTypeDescription
ticket_idintegerThe ticket the action belongs to.
action_numberintegerThe action number to react to.
agent_idintegerThe agent adding the reaction.
timestampstring (date-time)When the reaction was added.
typestringThe reaction type (e.g. emoji identifier).

Response 200: OK


POST /Actions/Review

Summary: Mark actions as reviewed

Request Body: Array of Actions objects to mark as reviewed.

Response 200: OK


Actions Schema

The Actions schema is the core object used for creating and reading ticket actions. Key fields are grouped below by category.

Core Fields:

PropertyTypeDescription
idintegerAction ID.
ticket_idintegerThe associated ticket's ID.
outcomestringThe action outcome name.
outcome_idintegerThe action outcome ID.
action_systemidintegerSystem-defined action type ID.
datetimestring (date-time)When the action occurred.
last_updatedstring (date-time)When the action was last updated.
actiondatecreatedstring (date-time)When the action record was created.
notestringThe plain-text note body.
note_htmlstringThe HTML note body (returned when includehtmlnote=true).
importantbooleanWhether the action is marked as important.
hiddenfromuserbooleanWhether the action is hidden from the end user.
private_notestringA private note visible only to agents.

Who Performed the Action:

PropertyTypeDescription
who_typeinteger0 = Agent, 1 = End User, etc.
who_agentidintegerID of the agent who performed the action.
who_initialsstringDisplay initials of the actor.
who_colourstringAvatar colour for the actor.
who_imgpathstringAvatar image path for the actor.
who_onlinestatusintegerOnline status of the actor.
actionby_agent_idintegerAgent ID who performed the action (may differ from who_agentid).
actionby_user_idintegerUser ID who performed the action.
on_behalf_ofintegerUser ID the action was performed on behalf of.
on_behalf_of_namestringDisplay name for on-behalf-of user.

Email Fields:

PropertyTypeDescription
emailfromstringFrom email address.
emailtostringTo email address.
emailtonewstringParsed/new to address.
emailccstringCC email address.
emailccnewstringParsed/new CC address.
emailsubjectstringEmail subject line.
emailbodystringPlain text email body.
emailbody_htmlstringHTML email body.
emaildirectionstringDirection of email (inbound/outbound).
email_message_idstringThe email Message-ID header value.
sendemailbooleanWhether to send an email for this action.
email_statusintegerEmail delivery status code.
emailimportancestringEmail importance header value.
dateemailedstring (date-time)When the email was sent.
replytoaddressstringReply-to email address.
from_mailbox_idintegerMailbox ID the action came from.

Time & Billing Fields:

PropertyTypeDescription
timetakennumberTime taken in hours.
timetakendaysnumberTime taken in days.
timetakenadjustednumberAdjusted time taken.
nonbilltimenumberNon-billable time in hours.
traveltimenumberTravel time in hours.
mileagenumberMileage recorded.
actisbillablebooleanWhether this action is billable.
chargerateintegerCharge rate ID for this action.
action_contract_idintegerContract ID associated with this action.
action_contract_refstringContract reference string.
actionchargehoursnumberCharged hours.
actionchargeamountnumberCharged amount.
actionnonchargehoursnumberNon-charged hours.
actionnonchargeamountnumberNon-charged amount.
actionprepayhoursnumberPrepay hours used.
actionprepayamountnumberPrepay amount used.
actioninvoicenumberstringInvoice number this action billed to.
invoice_idintegerInvoice record ID.