provider accounts GET /api/environments/{environment_id}/accounts/
@utdk/posthog /api/environments/{environment_id}/accounts/
environments_accounts_list
account_executive query
Filter by account executive. Use 'unassigned' or an integer user id.
string
account_owner query
Filter by account owner. Use 'unassigned' or an integer user id.
string
all_roles_unassigned query
When true, returns only accounts where CSM, account executive, and account owner are all unset.
boolean
csm query
Filter by CSM. Use 'unassigned' for accounts with no CSM, or an integer user id.
string
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string
limit query
Number of results to return per page.
integer
offset query
The initial index from which to return the results.
integer
ordering query
Sort order. Defaults to '-created_at'.
enum: -created_at, -name, -updated_at, created_at…
search query
Case-insensitive substring search across account name and external ID.
string
tags query
JSON-encoded array of tag names to filter by, e.g. `["enterprise","priority"]`. Returns accounts that have any of the listed tags. Malformed values (not a JSON-encoded list of strings) return a 400.
string

Try it

Authentication
Configure credentials for PostHog API
environmentsAccountsList
GET/api/environments/{environment_id}/accounts/

Parameters

required

Deprecated. Use /api/projects/{project_id}/ instead.

Filter by account executive. Use 'unassigned' or an integer user id.

Filter by account owner. Use 'unassigned' or an integer user id.

When true, returns only accounts where CSM, account executive, and account owner are all unset.

Filter by CSM. Use 'unassigned' for accounts with no CSM, or an integer user id.

Number of results to return per page.

The initial index from which to return the results.

Sort order. Defaults to '-created_at'.

Case-insensitive substring search across account name and external ID.

JSON-encoded array of tag names to filter by, e.g. `["enterprise","priority"]`. Returns accounts that have any of the listed tags. Malformed values (not a JSON-encoded list of strings) return a 400.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.environmentsAccountsList()