---
updatedAt: 2026-04-20T19:43:50.000Z
agentTools:
  projectIndex: https://developers.gorgias.com/llms.txt
---

# Retrieve an event

# OpenAPI definition

```json
{
  "security": [
    {
      "basicAuth": []
    }
  ],
  "info": {
    "description": "The Gorgias REST API. Please go to https://developers.gorgias.com for more details.",
    "title": "Gorgias REST API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://{domain}.gorgias.com",
      "variables": {
        "domain": {
          "default": "your-domain"
        }
      }
    }
  ],
  "x-readme": {
    "proxy-enabled": false
  },
  "paths": {
    "/api/events/{id}": {
      "get": {
        "summary": "Retrieve an event",
        "operationId": "get-event",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "integer"
            },
            "required": true,
            "description": "The ID of the event to retrieve."
          }
        ],
        "responses": {
          "200": {
            "description": "The requested event.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Event"
                },
                "examples": {
                  "responses": {
                    "value": {
                      "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/"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Events"
        ]
      }
    }
  },
  "tags": [
    {
      "name": "Events"
    }
  ],
  "openapi": "3.1.0",
  "components": {
    "schemas": {
      "Event": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "ID of the event.",
            "example": 1234
          },
          "context": {
            "type": [
              "string",
              "null"
            ],
            "description": "An uuid4 used to group a sequence of related events together, meaning that an event triggered another event and so on.",
            "format": "uuid",
            "example": "dd4ff312-69df-494a-be96-1a58b3d8b8e0"
          },
          "created_datetime": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "description": "When the event was created.",
            "example": "2019-11-16T15:59:41.966927"
          },
          "data": {
            "type": "object",
            "description": "Data associated with the event (key-value data).",
            "example": null
          },
          "object_id": {
            "type": "integer",
            "description": "The ID of the Gorgias object associated with the event.",
            "example": 123
          },
          "object_type": {
            "type": "string",
            "enum": [
              "Account",
              "AccountSetting",
              "Customer",
              "CustomField",
              "CustomFieldCondition",
              "CustomUserAvailabilityStatus",
              "CustomerExternalData",
              "Integration",
              "Macro",
              "Order",
              "Role",
              "Rule",
              "SatisfactionSurvey",
              "Shopper",
              "ShopperAddress",
              "Subscription",
              "Tag",
              "Team",
              "TicketMessage",
              "Ticket",
              "User",
              "UserSetting",
              "View",
              "Widget"
            ],
            "description": "The type of the existing Gorgias object associated with the event.",
            "example": "Ticket"
          },
          "type": {
            "type": "string",
            "description": "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`, `account-renamed`, `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`, `integration-created`, `integration-deleted`, `integration-updated`, `integration-deactivated`, `integration-reactivation-started`, `integration-reactivated`, `integration-data-item-created`, `integration-data-item-deleted`, `macro-created`, `macro-deleted`, `macro-updated`, `macro-applied`, `macro-archived`, `macro-unarchived`, `rule-created`, `rule-priority-updated`, `rule-deleted`, `rule-executed`, `rule-updated`, `rule-deactivated`, `rule-reactivated`, `rules-pipeline-executed`, `subscription-created`, `subscription-updated`, `subscription-self-serve-changed`, `tag-created`, `tag-deleted`, `tag-merged`, `tag-updated`, `tag-renamed`, `team-created`, `team-deleted`, `team-updated`, `team-member-created`, `team-member-deleted`, `ticket-assigned`, `ticket-closed`, `ticket-created`, `ticket-customer-updated`, `ticket-deleted`, `ticket-excluded-from-auto-merge`, `ticket-excluded-from-csat`, `ticket-marked-spam`, `ticket-merged`, `ticket-read-status-updated`, `ticket-reopened`, `ticket-satisfaction-survey-skipped`, `ticket-self-unsnoozed`, `ticket-sla-policy-assigned`, `ticket-snoozed`, `ticket-split`, `ticket-subject-updated`, `ticket-tags-added`, `ticket-tags-removed`, `ticket-team-assigned`, `ticket-team-unassigned`, `ticket-trashed`, `ticket-typing-activity-shopper-started`, `ticket-unassigned`, `ticket-unmarked-spam`, `ticket-untrashed`, `ticket-updated`, `ticket-viewed`, `ticket-handed-over`, `ticket-message-created`, `ticket-message-deleted`, `ticket-message-failed`, `ticket-message-summary-created`, `ticket-message-updated`, `customer-created`, `customer-updated`, `customer-merged`, `customer-deleted`, `custom-field-created`, `custom-field-updated`, `custom-field-condition-created`, `custom-field-condition-updated`, `custom-field-condition-enabled`, `custom-field-condition-disabled`, `custom-field-condition-deleted`, `custom-fields-ticket-values-updated`, `self-service-configurations-updated`, `self-service-configurations-update-started`, `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-2fa-changed`, `user-status-changed`, `user-availability-updated`, `user-setting-created`, `user-setting-updated`, `custom-availability-status-created`, `custom-availability-status-updated`, `custom-availability-status-deleted`, `view-deactivated`, `view-created`, `view-deleted`, `view-updated`, `view-section-created`, `view-section-updated`, `view-section-deleted`, `widget-created`, `widget-deleted`, `widget-updated`, `satisfaction-survey-sent`, `satisfaction-survey-updated`, `satisfaction-survey-responded`.",
            "example": "ticket-closed"
          },
          "user_id": {
            "type": "integer",
            "description": "ID of the user who triggered the event. If empty, the event has been triggered automatically (E.g: by a rule).",
            "example": 123
          },
          "uri": {
            "type": "string",
            "readOnly": true,
            "description": "URI of the event."
          }
        },
        "description": "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."
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic",
        "description": "The username will be the email address of your Gorgias account and the password will be your API key."
      }
    }
  }
}
```