posthog_connections

Forward a request through a PostHog connection

Replay an API request against the connected PostHog project. The server injects the connection's token; the response is passed through.

post/api/projects/{project_id}/posthog_connections/{id}/forward/

Request

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

method'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' required
  • GET - GET
  • POST - POST
  • PUT - PUT
  • PATCH - PATCH
  • DELETE - DELETE
pathstring required

Relative target API path with no host or scheme, e.g. api/projects/2/insights/.

queryobject

Query parameters to send to the target.

dataunknown

Response

statusinteger required

HTTP status the target project returned.

dataunknown required

Changes

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