loops
loops

Fire a loop externally

Authenticated POST trigger for type=api triggers. Project secret API key auth (loop:write scope), project-wide. Request body (JSON, capped at 64 KB) becomes run context. Send an Idempotency-Key header to dedupe retries.

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

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/loops/{id}/trigger/
  • 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

object required

Response

createdboolean required
reason'created' | 'deduped' | 'overlap_skipped' | 'rate_capped' | 'team_rate_capped' | 'disabled' | 'gate_blocked' | 'owner_inactive' | 'owner_changed' required
  • created - created
  • deduped - deduped
  • overlap_skipped - overlap_skipped
  • rate_capped - rate_capped
  • team_rate_capped - team_rate_capped
  • disabled - disabled
  • gate_blocked - gate_blocked
  • owner_inactive - owner_inactive
  • owner_changed - owner_changed
task_idstring uuid nullable required

Id of the created task, when created is true.

task_run_idstring uuid nullable required

Id of the created task run, when created is true.

Changes

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