Skip to main content
PostHog logo

Overview

Add PostHog to any ModuleX agent or workflow. Product analytics platform integration via the PostHog REST + ingest APIs. Pure HTTP. 78 actions — the largest single integration in the package.
Categories: Analytics & Data · Data & Analytics · Data · Development · Auth: PostHog API Key · Actions: 78

Authentication

PostHog API Key Authentication

Connect to PostHog using your personal API key, project ID, and instance URL.

Required Credentials

FieldDescriptionRequiredFormat
Personal API KeyYour PostHog personal API keyYesphx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Project IDPostHog project ID (found in project settings)Yes12345
Instance URLYour PostHog instance URL — required. MUST be ONLY the host with scheme, no trailing slash, no path. Pick the line that matches your workspace:
• US cloud: https://us.posthog.com
• EU cloud: https://eu.posthog.com
• Self-hosted: https://posthog.your-company.com
DO NOT append /api, /api/projects, or any other path — the rest of the URL is added automatically. Trailing slash also not allowed.Yeshttps://us.posthog.com

Available Actions

Parameters

project_id
integer
required
PostHog project ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)
limit
integer
Max results (Default: 100)
offset
integer
Results to skip (Default: 0)
Search query
pinned
boolean
Filter by pinned status

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
dashboard_id
integer
required
dashboard_id to retrieve
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
name
string
required
Dashboard name
base_url
string
PostHog instance URL (default: https://app.posthog.com)
description
string
Dashboard description
pinned
boolean
Pin the dashboard
tags
array
Tag list

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
dashboard_id
integer
required
Dashboard ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)
name
string
New name
description
string
New description
pinned
boolean
Pin status
tags
array
Tag list

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
dashboard_id
integer
required
dashboard_id to delete
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
experiment_id
integer
required
experiment_id to retrieve
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
name
string
required
Experiment name
feature_flag_key
string
required
Feature flag key linked to the experiment
base_url
string
PostHog instance URL (default: https://app.posthog.com)
description
string
Experiment description
experiment_type
string
‘product’ or ‘web’ (Default: product)
primary_metrics
array
Primary metric definitions
secondary_metrics
array
Secondary metric definitions
variants
array
Experiment variants
minimum_detectable_effect
number
Minimum detectable effect % (Default: 30)
filter_test_accounts
boolean
Filter out internal/test accounts (Default: true)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
experiment_id
integer
required
Experiment ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)
name
string
New name
description
string
New description
primary_metrics
array
Primary metrics
secondary_metrics
array
Secondary metrics
launch
boolean
Launch the experiment
conclude
string
‘won’ / ‘lost’ / ‘inconclusive’
archive
boolean
Archive the experiment

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
experiment_id
integer
required
experiment_id to delete
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
experiment_id
integer
required
Experiment ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)
refresh
boolean
Force refresh (Default: false)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
flag_id
integer
Feature flag ID (integer). Mutually exclusive with flag_key — provide one or the other.
flag_key
string
Feature flag key (string). Mutually exclusive with flag_id — provide one or the other.
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
key
string
required
Flag key
name
string
required
Flag name
base_url
string
PostHog instance URL (default: https://app.posthog.com)
description
string
Description
filters
object
Flag filters
active
boolean
Active (Default: true)
tags
array
Tag list

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
flag_key
string
required
Flag key to update
base_url
string
PostHog instance URL (default: https://app.posthog.com)
name
string
New name
description
string
New description
filters
object
Updated filters
active
boolean
Active state
tags
array
Tag list

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
flag_id
integer
required
flag_id to delete
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)
limit
integer
Max results (Default: 100)
offset
integer
Results to skip (Default: 0)
search
string
Search query

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
insight_id
integer
required
insight_id to retrieve
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
name
string
required
Insight name
base_url
string
PostHog instance URL (default: https://app.posthog.com)
description
string
Description
filters
object
Insight filter config
query
object
HogQL/JSON query
dashboards
array
Dashboard IDs to attach
tags
array
Tag list

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
insight_id
integer
required
Insight ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)
name
string
New name
description
string
New description
filters
object
Filter config
query
object
Query
tags
array
Tag list

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
insight_id
integer
required
insight_id to delete
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
query
object
required
Query body
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)
limit
integer
Max results (Default: 100)
offset
integer
Results to skip (Default: 0)
search
string
Search query
status
string
Filter by status

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
issue_id
string
required
issue_id to retrieve
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)
limit
integer
Max results (Default: 100)
offset
integer
Results to skip (Default: 0)
search
string
Search query

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
survey_id
string
required
survey_id to retrieve
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
name
string
required
Survey name
type
string
‘popover’ / ‘widget’ / ‘api’ (Default: popover)
base_url
string
PostHog instance URL (default: https://app.posthog.com)
description
string
Description
questions
array
Survey questions
conditions
object
Trigger conditions
linked_flag_id
integer
Linked feature flag ID
targeting_flag_filters
object
Targeting filters
appearance
object
Survey appearance config
start_date
string
Start date
end_date
string
End date

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
survey_id
string
required
Survey ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)
name
string
New name
description
string
New description
questions
array
Questions
conditions
object
Trigger conditions
archived
boolean
Archive the survey
start_date
string
Start date
end_date
string
End date

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
survey_id
string
required
survey_id to delete
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

organization_id
string
Organization ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)
limit
integer
Max results (Default: 100)
offset
integer
Results to skip (Default: 0)
search
string
Search query

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)
limit
integer
Max results (Default: 100)
offset
integer
Results to skip (Default: 0)
search
string
Search query
event_names
array
Filter by event names
type
string
Filter by property type

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_api_key
string
required
PostHog project API key
distinct_id
string
required
Distinct user ID
event
string
required
Event name
properties
object
Event properties
timestamp
string
ISO 8601 timestamp
ingest_url
string
PostHog ingest URL (default: https://us.i.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_api_key
string
required
PostHog project API key
events
array
required
List of event objects
historical_migration
boolean
Flag historical imports (Default: false)
ingest_url
string
PostHog ingest URL (default: https://us.i.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_api_key
string
required
PostHog project API key
distinct_id
string
required
Distinct user ID
properties
object
required
Properties to set
ingest_url
string
PostHog ingest URL (default: https://us.i.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_api_key
string
required
PostHog project API key
distinct_id
string
required
Canonical distinct ID
alias
string
required
Alias distinct ID to merge in
ingest_url
string
PostHog ingest URL (default: https://us.i.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_api_key
string
required
PostHog project API key
distinct_id
string
required
Distinct user ID
groups
object
Group memberships
person_properties
object
Person properties
group_properties
object
Group properties
ingest_url
string
PostHog ingest URL (default: https://us.i.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_api_key
string
required
PostHog project API key
group_type
string
required
Group type (e.g. ‘company’)
group_key
string
required
Group key (the unique ID)
properties
object
required
Properties to set on the group
ingest_url
string
PostHog ingest URL (default: https://us.i.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)
limit
integer
Max results (Default: 100)
offset
integer
Results to skip (Default: 0)
search
string
Search query
distinct_id
string
Filter by distinct ID
email
string
Filter by email

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
person_id
string
required
person_id to retrieve
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
person_id
integer
required
Person ID
properties
object
required
Properties to set
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
person_id
integer
required
Person ID
delete_events
boolean
Also delete events (GDPR) (Default: false)
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
person_ids
array
required
Person IDs to delete
delete_events
boolean
Also delete events (Default: false)
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
group_type_index
integer
required
Group type index (0-4)
base_url
string
PostHog instance URL (default: https://app.posthog.com)
search
string
Search query

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
group_type_index
integer
required
Group type index
group_key
string
required
Group key
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
cohort_id
integer
required
cohort_id to retrieve
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
name
string
required
Cohort name
base_url
string
PostHog instance URL (default: https://app.posthog.com)
description
string
Description
is_static
boolean
Static cohort (Default: false)
filters
object
Filter config
groups
array
Group filters

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
cohort_id
integer
required
Cohort ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)
name
string
New name
description
string
New description
filters
object
Filters
groups
array
Groups

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
cohort_id
integer
required
cohort_id to delete
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
cohort_id
integer
required
Cohort ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)
limit
integer
Max results (Default: 100)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)
limit
integer
Max results (Default: 100)
offset
integer
Results to skip (Default: 0)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
recording_id
string
required
recording_id to retrieve
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
recording_id
string
required
recording_id to delete
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)
limit
integer
Max results (Default: 100)
offset
integer
Results to skip (Default: 0)
search
string
Search query

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
action_id
integer
required
action_id to retrieve
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
name
string
required
Action name
base_url
string
PostHog instance URL (default: https://app.posthog.com)
description
string
Description
steps
array
Action steps (conditions)
tags
array
Tag list

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
action_id
integer
required
Action ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)
name
string
New name
description
string
New description
steps
array
Steps
tags
array
Tag list

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
action_id
integer
required
Action ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
name
string
required
Action name to find + delete
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)
limit
integer
Max results (Default: 100)
offset
integer
Results to skip (Default: 0)
search
string
Search query

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
annotation_id
integer
required
annotation_id to retrieve
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
content
string
required
Annotation text
date_marker
string
required
Date marker (ISO 8601)
base_url
string
PostHog instance URL (default: https://app.posthog.com)
dashboard_item
integer
Linked insight (dashboard item)
scope
string
‘dashboard_item’ / ‘project’ / ‘organization’ (Default: organization)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
annotation_id
integer
required
Annotation ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)
content
string
New content
date_marker
string
New date marker
scope
string
New scope

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
annotation_id
integer
required
annotation_id to delete
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)
limit
integer
Max results (Default: 100)
offset
integer
Results to skip (Default: 0)
insight_id
integer
Filter by insight ID

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
alert_id
string
required
alert_id to retrieve
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
insight_id
integer
required
Insight ID
name
string
required
Alert name
base_url
string
PostHog instance URL (default: https://app.posthog.com)
threshold
object
Threshold config
subscribed_users
array
User IDs to notify
enabled
boolean
Enabled (Default: true)
notification_targets
object
Notification target config

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
alert_id
string
required
Alert ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)
name
string
New name
threshold
object
Threshold config
subscribed_users
array
User IDs
enabled
boolean
Enabled state
notification_targets
object
Notification targets

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
alert_id
string
required
alert_id to delete
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)
limit
integer
Max results (Default: 100)
offset
integer
Results to skip (Default: 0)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
feature_id
string
required
feature_id to retrieve
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
name
string
required
Feature name
base_url
string
PostHog instance URL (default: https://app.posthog.com)
description
string
Description
stage
string
draft / beta / general-availability / archived (Default: beta)
documentation_url
string
Documentation URL
feature_flag_id
integer
Linked feature flag ID

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
feature_id
string
required
Feature ID
base_url
string
PostHog instance URL (default: https://app.posthog.com)
name
string
New name
description
string
New description
stage
string
Updated stage
documentation_url
string
Updated documentation URL

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
feature_id
string
required
feature_id to delete
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Parameters

project_id
integer
required
PostHog project ID
name
string
required
Feature name to find + delete
base_url
string
PostHog instance URL (default: https://app.posthog.com)

Response

{
  "additionalProperties": false,
  "properties": {
    "success": {
      "title": "Success",
      "type": "boolean"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Error"
    },
    "result": {
      "default": null,
      "title": "Result"
    }
  },
  "required": [
    "success"
  ],
  "title": "PostHogResult",
  "type": "object"
}

Amplitude

Databricks

Exa Search