---
title: "Get subject events"
method: GET
path: "/workflows/events/subject/{subjectId}"
tags: ["Workflows"]
---

# Get subject events

`GET /workflows/events/subject/{subjectId}`

## Request

- Base URL: `https://{prefix}.api.sandbox.checkout.com`
- URL: `https://{prefix}.api.sandbox.checkout.com/workflows/events/subject/{subjectId}`
- Auth: one of:
  - OAuth 2
    - Client credentials
    - Token URL: `string` scopes: `flow`, `flow:events`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/checkout/apis/checkout-com-api-reference/docs/workflows/events/subject/:subjectId/get.ts> (a function with typed inputs; its response is checked against the schema)

Get all events that relate to a specific subject

## Path parameters

- `subjectId` string, required

## Response `200`

Events retrieved successfully

- SubjectEventsResponse
  - `data` object[]
    - `id` string: The unique event identifier
    - `type` string: The event type
    - `timestamp` string, date-time: The date/time the event occurred
    - `_links` EventLinks: Links related to the event
      - `self` Link, required
        - `href` string, required: The link URL

## Other responses

- `401`: Unauthorized
- `404`: Subject not found
- `500`: Internal Error

---

[API](https://skmtc.dev/checkout/apis/checkout-com-api-reference.md) - [All operations](https://skmtc.dev/checkout/apis/checkout-com-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/checkout/apis/checkout-com-api-reference/revisions/0f1abdb1c3e9?raw)
