loops
loops

List loops

List loops visible to the caller: personal loops they own, plus every team loop. The response also carries max_loops_per_team and total_loop_count so a client can show remaining capacity and disable creation at the cap without hardcoding the limit.

get/api/projects/{project_id}/loops/

Request

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

Path parameters

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/.

Query parameters

limitinteger

Number of results to return per page.

offsetinteger

The initial index from which to return the results.

Response

countinteger required
nextstring uri nullable
previousstring uri nullable
max_loops_per_teaminteger

Hard cap on non-deleted loops per project. Creating a loop beyond this returns a 429 with error: loop_safety_limit. Authoritative — read this rather than assuming a value.

total_loop_countinteger

Current number of non-deleted, user-facing loops in this project, counted against max_loops_per_team. At or above the cap, creation is blocked.

Example response

{
  "count": 123,
  "next": "http://api.example.org/accounts/?offset=400&limit=100",
  "previous": "http://api.example.org/accounts/?offset=200&limit=100"
}

Changes

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