# Trigger sample

> Live sample records from the workflow's configured poll trigger, so you can see the exact input shape before writing code.

Source: https://docs.generalinput.com/api/workflows/trigger-sample



<Endpoint method="GET" path="/v1/workflows/:id/trigger-sample" />

<Access scope="workflows:manage" />

The cloud resolves the trigger's credential and inputs and fetches a few real records from the source. Wire the trigger with [update config](/api/workflows/update-config) and publish first.

## Response [#response]

```json
{
  "result": "{\"message\":\"3 samples\",\"samples\":[{\"title\":\"New email\",\"payload\":{…}}]}"
}
```

`result` is a string: JSON with `message` and `samples` on success, or a plain guidance message when the poll trigger is not configured or the source has no data yet. Parse it when it starts with a brace.
