provider accounts GET
/api/projects/{project_id}/accounts/ @utdk/posthog
/api/projects/{project_id}/accounts/ 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
- 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…
- project_id path required
- Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
- string
- 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
Code snippet
Updates live as you fill in the form above.
TypeScript
import posthog from '@utdk/posthog';
await posthog.accountsList()