The Event object

Events are our way of letting you know when something interesting happens in your account. For example, when a ticket is created we create a ticket-created event; When a user is updated we create a user-updated event.

Event properties

int32

ID of the event.

uuid

An uuid4 used to group a sequence of related events together, meaning that an event triggered another event and so on.

ISO 8601 datetime

When the event was created.

object

Data associated with the event (key-value data).

int32

The ID of the Gorgias object associated with the event.

string

The type of the existing Gorgias object associated with the event.

string

Type of the event. Event types are used to discriminate between events. List of event types: account-created, account-deactivated, account-setting-created, account-setting-updated, account-updated, action-executed, facebook-comment-created, facebook-comment-deleted, facebook-comment-edited, facebook-comment-hidden, facebook-comment-unhidden, facebook-comment-liked, facebook-comment-unliked, facebook-message-created, facebook-message-deleted, facebook-message-edited, facebook-post-created, facebook-post-deleted, facebook-post-edited, facebook-review-deleted, incoming-phone-call, outgoing-phone-call, completed-phone-call, call-recording, missed-phone-call, voicemail-recording, phone-call-answered, phone-call-conversation-started, phone-call-forwarded-to-external-number, phone-call-forwarded-to-gorgias-number, phone-call-forwarded, message-played, phone-call-transferred-to-agent, phone-call-transfer-to-agent-failed, phone-call-transfer-to-agent-missed, integration-created, integration-deleted, integration-updated, integration-deactivated, integration-reactivated, integration-used, integration-data-item-created, integration-data-item-deleted, instagram-direct-message-created, macro-created, macro-deleted, macro-updated, macro-applied, macro-params-updated, rule-created, rule-priority-updated, rule-deleted, rule-executed, rule-updated, rule-deactivated, rule-reactivated, subscription-created, subscription-updated, tag-created, tag-deleted, tag-merged, tag-updated, tag-renamed, team-created, team-deleted, team-updated, ticket-assigned, ticket-chat-updated, ticket-closed, ticket-created, ticket-customer-updated, ticket-deleted, ticket-marked-spam, ticket-merged, ticket-read-status-updated, ticket-reopened, ticket-snoozed, ticket-self-unsnoozed, ticket-subject-updated, ticket-tags-added, ticket-tags-removed, ticket-team-assigned, ticket-team-unassigned, ticket-trashed, ticket-unassigned, ticket-unmarked-spam, ticket-untrashed, ticket-updated, ticket-viewed, ticket-event-created, ticket-message-action-failed, ticket-message-chat-created, ticket-message-created, ticket-message-deleted, ticket-message-failed, ticket-message-summary-created, ticket-message-updated, ticket-message-analyzed, customer-created, customer-updated, customer-merged, customer-deleted, self-service-configurations-updated, self-service-configurations-update-started, self-service-portal-event-created, self-service-portal-event-updated, user-created, user-invited, user-updated, user-mentioned, user-deleted, user-logged-in, user-logged-out, user-impersonated, user-password-changed, user-password-reset, user-location-updated, user-status-changed, user-typing-status-updated, user-setting-created, user-setting-updated, views-count-updated, views-deactivated, view-created, view-deleted, view-updated, view-deactivated, view-section-created, view-section-updated, view-section-deleted, widget-created, widget-deleted, widget-updated, satisfaction-survey-sent, satisfaction-survey-updated, satisfaction-survey-responded, ticket-stat-updated, ticket-stat-created, ticket-sale-created, ticket-sale-updated, ticket-sale-deleted.

int32

ID of the user who triggered the event. If empty, the event has been triggered automatically (E.g: by a rule).

string

URI of the event.

Event example object

{
  "id": 1234,
  "context": "dd4ff312-69df-494a-be96-1a58b3d8b8e0",
  "created_datetime": "2019-11-16T15:59:41.966927",
  "data": null,
  "object_id": 123,
  "object_type": "Ticket",
  "type": "ticket-closed",
  "user_id": 123,
  "uri": "/api/events/1234/"
}