How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

PostHog environments API

The environments API from PostHog — 15 operation(s) for environments.

PostHog environments API is one of 139 APIs that PostHog publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

Tagged areas include Environments. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a getting-started guide, authentication docs, and an AsyncAPI specification.

This API exposes 23 operations across 15 paths, and defines 18 schemas. It is described by OpenAPI 3.2.0, at version 1.0.0.

Requests are made against a single base URL, https://app.posthog.com/api.

23 operations 15 paths 18 schemas 2 DELETE9 GET7 PATCH3 POST2 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.0.0
Base URL
https://app.posthog.com/api
Authentication
HTTP Bearer
Resource Areas
1

Authentication & Security 1

PostHog environments API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (PersonalAPIKeyAuth).

Paths & Operations 23

Across 15 paths, the API surfaces 23 operations — 2 DELETE, 9 GET, 7 PATCH, 3 POST, 2 PUT. Each is listed below with its method, path, parameters, and response codes.

environments 23
GET
/api/projects/{project_id}/environments/deprecated
Deprecated: use /api/environments/{id}/ instead.
environments_list 3 params → 200
POST
/api/projects/{project_id}/environments/deprecated
Deprecated: use /api/environments/{id}/ instead.
environments_create 1 param body → 201
GET
/api/projects/{project_id}/environments/{id}/deprecated
Deprecated: use /api/environments/{id}/ instead.
environments_retrieve 2 params → 200
PUT
/api/projects/{project_id}/environments/{id}/deprecated
Deprecated: use /api/environments/{id}/ instead.
environments_update 2 params body → 200
PATCH
/api/projects/{project_id}/environments/{id}/deprecated
Deprecated: use /api/environments/{id}/ instead.
environments_partial_update 2 params body → 200
DELETE
/api/projects/{project_id}/environments/{id}/deprecated
Deprecated: use /api/environments/{id}/ instead.
environments_destroy 2 params → 204
GET
/api/projects/{project_id}/environments/{id}/activity/
Deprecated: use /api/environments/{id}/ instead.
environments_activity_retrieve 2 params → 200
PATCH
/api/projects/{project_id}/environments/{id}/add_product_intent/
Deprecated: use /api/environments/{id}/ instead.
environments_add_product_intent_partial_update 2 params body → 200
PATCH
/api/projects/{project_id}/environments/{id}/complete_product_onboarding/
Deprecated: use /api/environments/{id}/ instead.
environments_complete_product_onboarding_partial_update 2 params body → 200
GET
/api/projects/{project_id}/environments/{id}/default_evaluation_contexts/
Manage default evaluation contexts for a team.
environments_default_evaluation_contexts_retrieve 2 params → 200
POST
/api/projects/{project_id}/environments/{id}/default_evaluation_contexts/
Manage default evaluation contexts for a team.
environments_default_evaluation_contexts_create 2 params body → 200
DELETE
/api/projects/{project_id}/environments/{id}/default_evaluation_contexts/
Manage default evaluation contexts for a team.
environments_default_evaluation_contexts_destroy 2 params → 204
GET
/api/projects/{project_id}/environments/{id}/default_release_conditions/
Manage default release conditions for new feature flags in this team.
environments_default_release_conditions_retrieve 2 params → 200
PUT
/api/projects/{project_id}/environments/{id}/default_release_conditions/
Manage default release conditions for new feature flags in this team.
environments_default_release_conditions_update 2 params body → 200
PATCH
/api/projects/{project_id}/environments/{id}/delete_secret_token_backup/
Deprecated: use /api/environments/{id}/ instead.
environments_delete_secret_token_backup_partial_update 2 params body → 200
GET
/api/projects/{project_id}/environments/{id}/event_ingestion_restrictions/
Deprecated: use /api/environments/{id}/ instead.
environments_event_ingestion_restrictions_retrieve 2 params → 200
GET
/api/projects/{project_id}/environments/{id}/experiments_config/
Manage experiment configuration for this environment.
environments_experiments_config_retrieve 2 params → 200
PATCH
/api/projects/{project_id}/environments/{id}/experiments_config/
Manage experiment configuration for this environment.
environments_experiments_config_partial_update 2 params body → 200
POST
/api/projects/{project_id}/environments/{id}/generate_conversations_public_token/
Deprecated: use /api/environments/{id}/ instead.
environments_generate_conversations_public_token_create 2 params body → 200
GET
/api/projects/{project_id}/environments/{id}/is_generating_demo_data/
Deprecated: use /api/environments/{id}/ instead.
environments_is_generating_demo_data_retrieve 2 params → 200
PATCH
/api/projects/{project_id}/environments/{id}/reset_token/
Deprecated: use /api/environments/{id}/ instead.
environments_reset_token_partial_update 2 params body → 200
PATCH
/api/projects/{project_id}/environments/{id}/rotate_secret_token/
Deprecated: use /api/environments/{id}/ instead.
environments_rotate_secret_token_partial_update 2 params body → 200
GET
/api/projects/{project_id}/environments/{id}/settings_as_of/
Return the team settings as of the provided timestamp. Query params: - at: ISO8601 datetime (required) - scope: optional, one or multiple keys to filter the returned settings
environments_settings_as_of_retrieve 2 params → 200

Schemas 18

The contract defines 18 schemas that model the data the API accepts and returns. The most detailed are PatchedTeam (85 properties), Team (85 properties), TeamBasic (12 properties), TeamMarketingAnalyticsConfig (7 properties). Each schema is shown below with its type and property counts.

NullEnum
SessionRecordingRetentionPeriodEnum
string
30d - 30 Days 90d - 90 Days 1y - 1 Year 5y - 5 Years
TeamBasic
object
Serializer for Team model with minimal attributes to speeed up loading and transfer times. Also used for nested serializers.
12 properties 12 required
Team
object
85 properties 20 required
WeekStartDayEnum
integer
0 - Sunday 1 - Monday
EffectiveMembershipLevelEnum
integer
CookielessServerHashModeEnum
integer
0 - Disabled 1 - Stateless 2 - Stateful
PaginatedTeamBasicList
object
4 properties 2 required
TeamCustomerAnalyticsConfig
object
5 properties
TeamRevenueAnalyticsConfig
object
4 properties
PatchedTeam
object
85 properties
TeamMarketingAnalyticsConfig
object
7 properties
TimezoneEnum
string
Africa/Abidjan - Africa/Abidjan Africa/Accra - Africa/Accra Africa/AddisAbaba - Africa/AddisAbaba Africa/Algiers - Africa/Algiers Africa/Asmara - Africa/Asmara…
AttributionModeEnum
string
firsttouch - First Touch lasttouch - Last Touch linear - Linear timedecay - Time Decay positionbased - Position Based
BaseCurrencyEnum
string
AED - AED AFN - AFN ALL - ALL AMD - AMD ANG - ANG AOA - AOA ARS - ARS AUD - AUD AWG - AWG AZN - AZN BAM - BAM BBD - BBD BDT - BDT BGN - BGN BHD - BHD BIF - BIF…
BlankEnum
BusinessModelEnum
string
b2b - B2B b2c - B2C other - Other
AvailableSetupTaskIdsEnum
string
ingestfirstevent - ingestfirstevent setupreverseproxy - setupreverseproxy createfirstinsight - createfirstinsight createfirstdashboard - createfirstdashboard t…

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

posthog-environments-api-openapi.yml Raw ↑

Other APIs PostHog publishes across the network.

PostHog Capture API
PostHog Query API
PostHog Persons API
PostHog Feature Flags API
PostHog Experiments API
PostHog Insights API
PostHog Cohorts API
PostHog Annotations API
PostHog actions API
PostHog activity_log API
PostHog activity_logs API
PostHog advanced_activity_logs API
Where this information came from

This is an independent, third-party profile of PostHog environments API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.