---
updatedAt: 2026-04-21T04:46:34.000Z
agentTools:
  projectIndex: https://developer.alloy.com/public/llms.txt
---

# Get an event by token

Retrieves a previously submitted event by its event request token, including the original request body.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Alloy API",
    "version": "1.0.0",
    "description": "hey hey hey, it's the Alloy API!"
  },
  "servers": [
    {
      "url": "https://sandbox.alloy.co/v1",
      "description": "Sandbox endpoint"
    }
  ],
  "security": [
    {
      "oauth2": []
    },
    {
      "basic": []
    }
  ],
  "tags": [
    {
      "name": "Events",
      "description": "Events are how we receive ongoing data, including entities (persons, businesses), logins, bank accounts, and transactions."
    }
  ],
  "paths": {
    "/events/{event_request_token}": {
      "get": {
        "tags": [
          "Events"
        ],
        "summary": "Get an event by token",
        "description": "Retrieves a previously submitted event by its event request token, including the original request body.",
        "parameters": [
          {
            "in": "path",
            "name": "event_request_token",
            "schema": {
              "type": "string",
              "example": "EV-xi7Etep0gW7gZiuWsqXG"
            },
            "required": true,
            "description": "The event request token returned when the event was created."
          }
        ],
        "responses": {
          "200": {
            "x-summary": "OK",
            "description": "Event found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "$ref": "#/components/schemas/GetEventResponse"
                }
              }
            }
          },
          "404": {
            "x-summary": "NOT FOUND",
            "description": "Event not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "EV-xi7Etep0gW7gZiuWsqXG not found"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "basic": {
        "type": "http",
        "description": "HTTP basic authorization using a workflow token and secret",
        "scheme": "basic"
      },
      "oauth2": {
        "type": "oauth2",
        "description": "Oauth2 using a workflow token and secret to generate a bearer token",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "/oauth/bearer",
            "scopes": {}
          }
        }
      }
    },
    "schemas": {
      "GetEventResponse": {
        "properties": {
          "event_request_token": {
            "type": "string",
            "example": "EV-xi7Etep0gW7gZiuWsqXG"
          },
          "event_type": {
            "type": "string",
            "description": "The type of event that was submitted.",
            "example": "person_created"
          },
          "events_api_type_id": {
            "type": "integer",
            "description": "Internal numeric identifier for the event type."
          },
          "event_status_id": {
            "type": "integer",
            "nullable": true,
            "description": "Internal identifier for the event status, if one was assigned."
          },
          "event_lifecycle_id": {
            "type": "string",
            "nullable": true,
            "maxLength": 128,
            "description": "Lifecycle identifier for grouping related events."
          },
          "external_event_id": {
            "type": "string",
            "nullable": true,
            "description": "External event identifier provided in the original request."
          },
          "event_request_status_type_id": {
            "type": "integer",
            "nullable": true,
            "description": "Status type of the event request (e.g. processed, error)."
          },
          "event_request_source": {
            "type": "string",
            "nullable": true,
            "description": "Source of the event request (e.g. API, batch ingestion)."
          },
          "ingestion_batch_token": {
            "type": "string",
            "nullable": true,
            "description": "Token of the ingestion batch, if the event was submitted via batch."
          },
          "upserted_events_type_id": {
            "type": "integer",
            "nullable": true,
            "description": "For upserted events, indicates whether the upsert resolved to a create or update."
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when the event request was recorded."
          },
          "body": {
            "type": "object",
            "description": "The original request body that was submitted with the event."
          }
        },
        "example": {
          "event_request_token": "EV-xi7Etep0gW7gZiuWsqXG",
          "event_type": "person_created",
          "events_api_type_id": 1,
          "event_status_id": null,
          "event_lifecycle_id": null,
          "external_event_id": "audit-event-123",
          "event_request_status_type_id": 1,
          "event_request_source": null,
          "ingestion_batch_token": null,
          "upserted_events_type_id": null,
          "timestamp": "2024-12-06T17:04:25.579Z",
          "body": {
            "event_type": "person_created",
            "data": {
              "external_entity_id": "087ac67e-17ab-4529-8d1a-a8b2214d305f",
              "name_first": "John",
              "name_last": "Smith",
              "timestamp": "2024-12-06T17:04:25.579Z"
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false
  }
}
```