provider project_secret_api_keys POST /api/projects/{project_id}/project_secret_api_keys/
@utdk/posthog /api/projects/{project_id}/project_secret_api_keys/
project_secret_api_keys_create
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

Try it

Authentication
Configure credentials for PostHog API
projectSecretApiKeysCreate
POST/api/projects/{project_id}/project_secret_api_keys/

Parameters

required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Input

required
required
required
required
required
required
required
required
required

Project-wide API scopes granted to this key. Project secret API keys do not honor object-level access controls, so a scope can access resources of that type even when per-resource RBAC would hide them from an individual user.

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.projectSecretApiKeysCreate()