project_secret_api_keys

post/api/projects/{project_id}/project_secret_api_keys/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/project_secret_api_keys/
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Path parameters

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

idstring required
labelstring required
valuestring required
mask_valuestring nullable required
created_atstring date-time required
last_used_atstring date-time nullable required
last_rolled_atstring date-time nullable required
scopesstring[] 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.

Response

idstring required
labelstring required
valuestring required
mask_valuestring nullable required
created_atstring date-time required
last_used_atstring date-time nullable required
last_rolled_atstring date-time nullable required
scopesstring[] 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.

Changes

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