PostHog environments API

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

Operations 23

GET /api/projects/{project_id}/environments/ #
POST /api/projects/{project_id}/environments/ #
GET /api/projects/{project_id}/environments/{id}/ #
PUT /api/projects/{project_id}/environments/{id}/ #
PATCH /api/projects/{project_id}/environments/{id}/ #
DELETE /api/projects/{project_id}/environments/{id}/ #
GET /api/projects/{project_id}/environments/{id}/activity/ #
PATCH /api/projects/{project_id}/environments/{id}/add_product_intent/ #
PATCH /api/projects/{project_id}/environments/{id}/complete_product_onboarding/ #
GET /api/projects/{project_id}/environments/{id}/default_evaluation_contexts/ #
POST /api/projects/{project_id}/environments/{id}/default_evaluation_contexts/ #
DELETE /api/projects/{project_id}/environments/{id}/default_evaluation_contexts/ #
GET /api/projects/{project_id}/environments/{id}/default_release_conditions/ #
PUT /api/projects/{project_id}/environments/{id}/default_release_conditions/ #
PATCH /api/projects/{project_id}/environments/{id}/delete_secret_token_backup/ #
GET /api/projects/{project_id}/environments/{id}/event_ingestion_restrictions/ #
GET /api/projects/{project_id}/environments/{id}/experiments_config/ #
PATCH /api/projects/{project_id}/environments/{id}/experiments_config/ #
POST /api/projects/{project_id}/environments/{id}/generate_conversations_public_token/ #
GET /api/projects/{project_id}/environments/{id}/is_generating_demo_data/ #
PATCH /api/projects/{project_id}/environments/{id}/reset_token/ #
PATCH /api/projects/{project_id}/environments/{id}/rotate_secret_token/ #
GET /api/projects/{project_id}/environments/{id}/settings_as_of/ #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/posthog-environments-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

posthog-environments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PostHog actions Environments API
  version: 1.0.0
  description: ''
servers:
- url: https://app.posthog.com/api
  description: Base URL declared by the provider in apis.yml (roadmap#122).
tags:
- name: environments
paths:
  /api/projects/{project_id}/environments/:
    get:
      operationId: environments_list
      description: 'Deprecated: use /api/environments/{id}/ instead.'
      parameters:
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: offset
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - environments
      security:
      - PersonalAPIKeyAuth:
        - project:read
      deprecated: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedTeamBasicList'
          description: ''
      x-explicit-tags: []
    post:
      operationId: environments_create
      description: 'Deprecated: use /api/environments/{id}/ instead.'
      parameters:
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - environments
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Team'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Team'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Team'
      security:
      - PersonalAPIKeyAuth:
        - project:write
      deprecated: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Team'
          description: ''
      x-explicit-tags: []
  /api/projects/{project_id}/environments/{id}/:
    get:
      operationId: environments_retrieve
      description: 'Deprecated: use /api/environments/{id}/ instead.'
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this environment (aka team).
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - environments
      security:
      - PersonalAPIKeyAuth:
        - project:read
      deprecated: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Team'
          description: ''
      x-explicit-tags: []
    put:
      operationId: environments_update
      description: 'Deprecated: use /api/environments/{id}/ instead.'
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this environment (aka team).
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - environments
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Team'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Team'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Team'
      security:
      - PersonalAPIKeyAuth:
        - project:write
      deprecated: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Team'
          description: ''
      x-explicit-tags: []
    patch:
      operationId: environments_partial_update
      description: 'Deprecated: use /api/environments/{id}/ instead.'
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this environment (aka team).
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - environments
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedTeam'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedTeam'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedTeam'
      security:
      - PersonalAPIKeyAuth:
        - project:write
      deprecated: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Team'
          description: ''
      x-explicit-tags: []
    delete:
      operationId: environments_destroy
      description: 'Deprecated: use /api/environments/{id}/ instead.'
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this environment (aka team).
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - environments
      security:
      - PersonalAPIKeyAuth:
        - project:write
      deprecated: true
      responses:
        '204':
          description: No response body
      x-explicit-tags: []
  /api/projects/{project_id}/environments/{id}/activity/:
    get:
      operationId: environments_activity_retrieve
      description: 'Deprecated: use /api/environments/{id}/ instead.'
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this environment (aka team).
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - environments
      responses:
        '200':
          description: No response body
      x-explicit-tags: []
  /api/projects/{project_id}/environments/{id}/add_product_intent/:
    patch:
      operationId: environments_add_product_intent_partial_update
      description: 'Deprecated: use /api/environments/{id}/ instead.'
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this environment (aka team).
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - environments
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedTeam'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedTeam'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedTeam'
      security:
      - PersonalAPIKeyAuth:
        - project:read
      responses:
        '200':
          description: No response body
      x-explicit-tags: []
  /api/projects/{project_id}/environments/{id}/complete_product_onboarding/:
    patch:
      operationId: environments_complete_product_onboarding_partial_update
      description: 'Deprecated: use /api/environments/{id}/ instead.'
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this environment (aka team).
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - environments
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedTeam'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedTeam'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedTeam'
      security:
      - PersonalAPIKeyAuth:
        - project:read
      responses:
        '200':
          description: No response body
      x-explicit-tags: []
  /api/projects/{project_id}/environments/{id}/default_evaluation_contexts/:
    get:
      operationId: environments_default_evaluation_contexts_retrieve
      description: Manage default evaluation contexts for a team.
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this environment (aka team).
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - environments
      responses:
        '200':
          description: No response body
      x-explicit-tags: []
    post:
      operationId: environments_default_evaluation_contexts_create
      description: Manage default evaluation contexts for a team.
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this environment (aka team).
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - environments
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Team'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Team'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Team'
      responses:
        '200':
          description: No response body
      x-explicit-tags: []
    delete:
      operationId: environments_default_evaluation_contexts_destroy
      description: Manage default evaluation contexts for a team.
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this environment (aka team).
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - environments
      responses:
        '204':
          description: No response body
      x-explicit-tags: []
  /api/projects/{project_id}/environments/{id}/default_release_conditions/:
    get:
      operationId: environments_default_release_conditions_retrieve
      description: Manage default release conditions for new feature flags in this team.
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this environment (aka team).
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - environments
      responses:
        '200':
          description: No response body
      x-explicit-tags: []
    put:
      operationId: environments_default_release_conditions_update
      description: Manage default release conditions for new feature flags in this team.
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this environment (aka team).
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - environments
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Team'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Team'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Team'
      responses:
        '200':
          description: No response body
      x-explicit-tags: []
  /api/projects/{project_id}/environments/{id}/delete_secret_token_backup/:
    patch:
      operationId: environments_delete_secret_token_backup_partial_update
      description: 'Deprecated: use /api/environments/{id}/ instead.'
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this environment (aka team).
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - environments
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedTeam'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedTeam'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedTeam'
      responses:
        '200':
          description: No response body
      x-explicit-tags: []
  /api/projects/{project_id}/environments/{id}/event_ingestion_restrictions/:
    get:
      operationId: environments_event_ingestion_restrictions_retrieve
      description: 'Deprecated: use /api/environments/{id}/ instead.'
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this environment (aka team).
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - environments
      security:
      - PersonalAPIKeyAuth:
        - project:read
      responses:
        '200':
          description: No response body
      x-explicit-tags: []
  /api/projects/{project_id}/environments/{id}/experiments_config/:
    get:
      operationId: environments_experiments_config_retrieve
      description: Manage experiment configuration for this environment.
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this environment (aka team).
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - environments
      responses:
        '200':
          description: No response body
      x-explicit-tags: []
    patch:
      operationId: environments_experiments_config_partial_update
      description: Manage experiment configuration for this environment.
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this environment (aka team).
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - environments
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedTeam'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedTeam'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedTeam'
      responses:
        '200':
          description: No response body
      x-explicit-tags: []
  /api/projects/{project_id}/environments/{id}/generate_conversations_public_token/:
    post:
      operationId: environments_generate_conversations_public_token_create
      description: 'Deprecated: use /api/environments/{id}/ instead.'
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this environment (aka team).
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - environments
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Team'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Team'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Team'
      responses:
        '200':
          description: No response body
      x-explicit-tags: []
  /api/projects/{project_id}/environments/{id}/is_generating_demo_data/:
    get:
      operationId: environments_is_generating_demo_data_retrieve
      description: 'Deprecated: use /api/environments/{id}/ instead.'
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this environment (aka team).
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - environments
      responses:
        '200':
          description: No response body
      x-explicit-tags: []
  /api/projects/{project_id}/environments/{id}/reset_token/:
    patch:
      operationId: environments_reset_token_partial_update
      description: 'Deprecated: use /api/environments/{id}/ instead.'
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this environment (aka team).
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - environments
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedTeam'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedTeam'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedTeam'
      responses:
        '200':
          description: No response body
      x-explicit-tags: []
  /api/projects/{project_id}/environments/{id}/rotate_secret_token/:
    patch:
      operationId: environments_rotate_secret_token_partial_update
      description: 'Deprecated: use /api/environments/{id}/ instead.'
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this environment (aka team).
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - environments
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedTeam'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedTeam'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedTeam'
      responses:
        '200':
          description: No response body
      x-explicit-tags: []
  /api/projects/{project_id}/environments/{id}/settings_as_of/:
    get:
      operationId: environments_settings_as_of_retrieve
      description: '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'
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this environment (aka team).
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - environments
      responses:
        '200':
          description: No response body
      x-explicit-tags: []
components:
  schemas:
    NullEnum:
      enum:
      - null
    SessionRecordingRetentionPeriodEnum:
      enum:
      - 30d
      - 90d
      - 1y
      - 5y
      type: string
      description: '* `30d` - 30 Days

        * `90d` - 90 Days

        * `1y` - 1 Year

        * `5y` - 5 Years'
    TeamBasic:
      type: object
      description: 'Serializer for `Team` model with minimal attributes to speeed up loading and transfer times.

        Also used for nested serializers.'
      properties:
        id:
          type: integer
          readOnly: true
        uuid:
          type: string
          format: uuid
          readOnly: true
        organization:
          type: string
          format: uuid
          readOnly: true
        project_id:
          type: integer
          maximum: 9223372036854775807
          minimum: -9223372036854775808
          format: int64
          readOnly: true
        api_token:
          type: string
          readOnly: true
        name:
          type: string
          readOnly: true
        completed_snippet_onboarding:
          type: boolean
          readOnly: true
        has_completed_onboarding_for:
          readOnly: true
        ingested_event:
          type: boolean
          readOnly: true
        is_demo:
          type: boolean
          readOnly: true
        timezone:
          allOf:
          - $ref: '#/components/schemas/TimezoneEnum'
          readOnly: true
        access_control:
          type: boolean
          readOnly: true
      required:
      - access_control
      - api_token
      - completed_snippet_onboarding
      - has_completed_onboarding_for
      - id
      - ingested_event
      - is_demo
      - name
      - organization
      - project_id
      - timezone
      - uuid
    Team:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        uuid:
          type: string
          format: uuid
          readOnly: true
        name:
          type: string
          maxLength: 200
          minLength: 1
        access_control:
          type: boolean
        organization:
          type: string
          format: uuid
          readOnly: true
        project_id:
          type: integer
          maximum: 9223372036854775807
          minimum: -9223372036854775808
          format: int64
          readOnly: true
        api_token:
          type: string
          readOnly: true
        secret_api_token:
          type:
          - string
          - 'null'
          readOnly: true
        secret_api_token_backup:
          type:
          - string
          - 'null'
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        ingested_event:
          type: boolean
          readOnly: true
        default_modifiers:
          type: object
          additionalProperties: true
          readOnly: true
        person_on_events_querying_enabled:
          type: boolean
          readOnly: true
        user_access_level:
          type:
          - string
          - 'null'
          readOnly: true
          description: The effective access level the user has for this object
        app_urls:
          type: array
          items:
            type:
            - string
            - 'null'
            maxLength: 200
        anonymize_ips:
          type: boolean
        completed_snippet_onboarding:
          type: boolean
        test_account_filters: {}
        test_account_filters_default_checked:
          type:
          - boolean
          - 'null'
        path_cleaning_filters: {}
        is_demo:
          type: boolean
        timezone:
          $ref: '#/components/schemas/TimezoneEnum'
        data_attributes: {}
        person_display_name_properties:
          type:
          - array
          - 'null'
          items:
            type: string
            maxLength: 400
        correlation_config: {}
        autocapture_opt_out:
          type:
          - boolean
          - 'null'
        autocapture_exceptions_opt_in:
          type:
          - boolean
          - 'null'
        autocapture_web_vitals_opt_in:
          type:
          - boolean
          - 'null'
        autocapture_web_vitals_allowed_metrics: {}
        autocapture_exceptions_errors_to_ignore: {}
        capture_console_log_opt_in:
          type:
          - boolean
          - 'null'
        logs_settings: {}
        capture_performance_opt_in:
          type:
          - boolean
          - 'null'
        session_recording_opt_in:
          type: boolean
        session_recording_sample_rate:
          type:
          - string
          - 'null'
          format: decimal
          pattern: ^-?\d{0,1}(?:\.\d{0,2})?$
        session_recording_minimum_duration_milliseconds:
          type:
          - integer
          - 'null'
          maximum: 30000
          minimum: 0
        session_recording_linked_flag: {}
        session_recording_network_payload_capture_config: {}
        session_recording_masking_config: {}
        session_recording_url_trigger_config:
          type:
          - array
          - 'null'
          items: {}
        session_recording_url_blocklist_config:
          type:
          - array
          - 'null'
          items: {}
        session_recording_event_trigger_config:
          type:
          - array
          - 'null'
          items:
            type:
            - string
            - 'null'
        session_recording_trigger_match_type_config:
          type:
          - string
          - 'null'
          maxLength: 24
        session_recording_trigger_groups:
          description: V2 trigger groups configuration for session recording. If present, takes precedence over legacy trigger fields.
        session_recording_retention_period:
          $ref: '#/components/schemas/SessionRecordingRetentionPeriodEnum'
        session_replay_config: {}
        survey_config: {}
        week_start_day:
          oneOf:
          - $ref: '#/components/schemas/WeekStartDayEnum'
          - $ref: '#/components/schemas/NullEnum'
        primary_dashboard:
          type:
          - integer
          - 'null'
        live_events_columns:
          type:
          - array
          - 'null'
          items:
            type: string
        recording_domains:
          type:
          - array
          - 'null'
          items:
            type:
            - string
            - 'null'
            maxLength: 200
        cookieless_server_hash_mode:
          oneOf:
          - $ref: '#/components/schemas/CookielessServerHashModeEnum'
          - $ref: '#/components/schemas/NullEnum'
        human_friendly_comparison_periods:
          type:
          - boolean
          - 'null'
        inject_web_apps:
          type:
          - boolean
          - 'null'
        extra_settings: {}
        modifiers: {}
        has_completed_onboarding_for: {}
        surveys_opt_in:
          type:
          - boolean
          - 'null'
        heatmaps_opt_in:
          type:
          - boolean
          - 'null'
        flags_persistence_default:
          type:
          - boolean
          - 'null'
        feature_flag_confirmation_enabled:
          type:
          - boolean
          - 'null'
        feature_flag_confirmation_message:
          type:
          - string
          - 'null'
        default_evaluation_contexts_enabled:
          type:
          - boolean
          - 'null'
          description: Whether to automatically apply default evaluation contexts to new feature flags
        require_evaluation_contexts:
          type:
          - boolean
          - 'null'
          description: Whether to require at least one evaluation context tag when creating new feature flags
        capture_dead_clicks:
          type:
          - boolean
          - 'null'
        default_data_theme:
          type:
          - integer
          - 'null'
          maximum: 2147483647
          minimum: -2147483648
        revenue_analytics_config:
          $ref: '#/components/schemas/TeamRevenueAnalyticsConfig'
        marketing_analytics_config:
          $ref: '#/components/schemas/TeamMarketingAnalyticsConfig'
        customer_analytics_config:
          $ref: '#/components/schemas/TeamCustomerAnalyticsConfig'
        onboarding_tasks: {}
        base_currency:
          allOf:
          - $ref: '#/components/schemas/BaseCurrencyEnum'
          default: USD
        web_analytics_pre_aggregated_tables_enabled:
          type:
          - boolean
          - 'null'
        receive_org_level_activity_logs:
          type:
          - boolean
          - 'null'
        business_model:
          description: 'Whether this project serves B2B or B2C customers, used to optimize the UI layout.


            * `b2b` - B2B

            * `b2c` - B2C

            * `other` - Other'
          oneOf:
          - $ref: '#/components/schemas/BusinessModelEnum'
          - $ref: '#/components/schemas/BlankEnum'
          - $ref: '#/components/schemas/NullEnum'
        conversations_enabled:
          type:
          - boolean
          - 'null'
        conversations_settings: {}
        proactive_tasks_enabled:
          type:
          - boolean
          - 'null'
        effective_membership_level:
          allOf:
          - $ref: '#/components/schemas/EffectiveMembershipLevelEnum'
          readOnly: true
        has_group_types:
          type: boolean
          readOnly: true
        group_types:
          type: array
          items:
            type: object
            additionalProperties: true
          readOnly: true
        live_events_token:
          type:
          - string
          - 'null'
          readOnly: true
        product_intents:
          type: array
          items:
            type: object
            additionalProperties: true
          readOnly: true
        managed_viewsets:
          type: object
          additionalProperties:
            type: boolean
          readOnly: true
        available_setup_task_ids:
          type: array
          items:
            $ref: '#/components/schemas/AvailableSetupTaskIdsEnum'
          readOnly: true
      required:
      - api_token
      - available_setup_task_ids
      - created_at
      - default_modifiers
      - effective_membership_level
      - group_types
      - has_group_types
      - id
      - ingested_event
      - live_events_token
      - managed_viewsets
      - organization
      - person_on_events_querying_enabled
      - product_intents
      - project_id
      - secret_api_token
      - secret_api_token_backup
      - updated_at
      - user_access_level
      - uuid
    WeekStartDayEnum:
      enum:
      - 0
      - 1
      type: integer
      description: '* `0` - Sunday

        * `1` - Monday'
    EffectiveMembershipLevelEnum:
      enum:
      - 1
      - 8
      - 15
      type: integer
    CookielessServerHashModeEnum:
      enum:
      - 0
      - 1
      - 2
      type: integer
      description: '* `0` - Disabled

        * `1` - Stateless

        * `2` - Stateful'
    PaginatedTeamBasicList:
      type: object
      required:
      - count
      - results
      properties:
        count:
          type: integer
          example: 123
        next:
          type:
          - string
          - 'null'
          format: uri
          example: http://api.example.org/accounts/?offset=400&limit=100
        previous:
          type:
          - string
          - 'null'
          format: uri
          example: http://api.example.org/accounts/?offset=200&limit=100
        results:
          type: array
          items:
            $ref: '#/components/schemas/TeamBasic'
    TeamCustomerAnalyticsConfig:
      type: object
      properties:
        activity_event: {}
        signup_pageview_event: {}
        signup_event: {}
        subscription_event: {}
        payment_event: {}
    TeamRevenueAnalyticsConfig:
      type: object
      properties:
        base_currency:
          $ref: '#/components/schemas/BaseCurrencyEnum'
        events: {}
        goals: {}
        filter_test_accounts:
          type: boolean
    PatchedTeam:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        uuid:
          type: string
          format: uuid
          readOnly: true
        name:
          type: string
          maxLength: 200
          minLength: 1
        access_control:
          type: boolean
        organization:
          type: string
          format: uuid
          readOnly: true
        project_id:
          type: integer
          maximum: 9223372036854775807
          minimum: -9223372036854775808
          format: int64
          readOnly: true
        api_token:
          type: string
          readOnly: true
        secret_api_token:
          type:
          - string
          - 'null'
          readOnly: true
        secret_api_token_backup:
          type:
          - string
          - 'null'
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        ingested_event:
          type: boolean
          readOnly: true
        default_modifiers:
          type: object
          additionalProperties: true
          readOnly: true
        person_on_events_querying_enabled:
          type: boolean
          readOnly: true
        user_access_level:
          type:


# --- truncated at 32 KB (93 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/posthog/refs/heads/main/openapi/posthog-environments-api-openapi.yml