loops
loops

Preview a loop fire

Dry run: renders the assembled instructions and trigger context for a supplied sample payload (or a synthetic schedule fire when omitted), without creating a task, run, or any other side effect.

post/api/projects/{project_id}/loops/{id}/preview/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/loops/{id}/preview/
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Path parameters

idstring required
project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Request body

trigger_type'schedule' | 'github' | 'api'
  • schedule - schedule
  • github - github
  • api - api
payloadunknown

Response

instructionsstring required
trigger_typestring required
trigger_contextstring required

Changes

No recorded changes to this operation across all 1 revision of this API.