---
title: "Recent occurrences of an event"
method: GET
path: "/hooks/samples"
tags: ["Event subscriptions"]
---

# Recent occurrences of an event

`GET /hooks/samples`

## Request

- Base URL: `https://api.flogpt.com/api/v1`
- URL: `https://api.flogpt.com/api/v1/hooks/samples`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Returns the most recent real occurrences of an event in the same
`{ event, occurredAt, organizationId, data }` envelope a subscriber
receives, so an integration can show sample data without waiting for a
live delivery. `occurredAt` is when the event actually happened.

Each payload is built by the same code that builds the delivered
webhook, so a record read here is structurally identical to one
delivered later.

Events with no recorded history, and subscribable events that cannot
yet be reconstructed, return an empty list rather than an error.

## Query parameters

- `event` string, required
- `limit` integer

## Response `200`

Recent event envelopes

## Other responses

- `400`: The request is invalid.

---

[API](https://skmtc.dev/flogpt/apis/flogpt-organization-api.md) · [All operations](https://skmtc.dev/flogpt/apis/flogpt-organization-api/llms.txt) · [OpenAPI document](https://skmtc.dev/flogpt/apis/flogpt-organization-api/revisions/c3a6cff76797?raw)
