Get Sample Data
GET/api/workflow-triggers/:trigger_id/sample-data
Get latest sample webhook payload for this trigger.
Returns the captured sample payload, or 404 if no sample is available. Frontend polls this endpoint to check if sample has been received.
Args: trigger_id: Trigger UUID
Returns: { "sample": {...}, # The webhook payload "headers": {...}, # Request headers "received_at": "2024-01-29T12:00:00Z", "listening": false, # Whether still listening "expires_at": null # When listening expires (null if not listening) }
Raises: 404: If no sample data available
Request
Responses
- 200
- 422
Successful Response
Validation Error