launchdarkly Environments API

Manage environments within projects such as production, staging, and development.

Operations 12

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/v2/projects/{projectKey}/environments List environments #
POST /api/v2/projects/{projectKey}/environments Create environment #
GET /api/v2/projects/{projectKey}/environments/{environmentKey} Get environment #
PATCH /api/v2/projects/{projectKey}/environments/{environmentKey} Update environment #
DELETE /api/v2/projects/{projectKey}/environments/{environmentKey} Delete environment #
POST /api/v2/projects/{projectKey}/environments/{environmentKey}/apiKey Reset environment SDK key #
POST /api/v2/projects/{projectKey}/environments/{environmentKey}/mobileKey Reset environment mobile SDK key #
GET /projects/{projectKey}/environments List a project's environments · List environments #
Ask an LLM
“What environments exist in this project?”
“Can I page through environments when a project has many?”
Tell an agent
List environments in project {projectKey}.
Show {limit} environments of {projectKey} from offset {offset}.
POST /projects/{projectKey}/environments Create an environment in a project · Create an environment #
Ask an LLM
“How do I add a new staging environment to a project?”
“Can I turn on secure mode when creating an environment?”
Tell an agent
Create environment {name} with key {key} and color {color} in project {projectKey}.
Add a {key} environment to {projectKey} named {name}, colored {color}, with secure mode {secureMode}.
GET /projects/{projectKey}/environments/{environmentKey} Get one environment's details · Get an environment #
Ask an LLM
“How do I look up the settings of a specific environment?”
“What are the current settings of a single environment in a project?”
Tell an agent
Get environment {environmentKey} in project {projectKey}.
Show details for the {environmentKey} environment of {projectKey}.
PATCH /projects/{projectKey}/environments/{environmentKey} Update an environment's settings · Update an environment #
Ask an LLM
“How do I rename an environment or change its color?”
“Can I leave a comment explaining an environment change?”
Tell an agent
Update environment {environmentKey} in {projectKey} with patch {patch}.
Apply {patch} to the {environmentKey} environment of {projectKey} with comment {comment}.
DELETE /projects/{projectKey}/environments/{environmentKey} Delete an environment · Delete an environment #
Ask an LLM
“How do I permanently remove an environment from a project?”
“Is deleting an environment reversible?”
Tell an agent destructive · confirm first
Delete environment {environmentKey} from project {projectKey}.
Permanently remove the {environmentKey} environment in {projectKey}.

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/launchdarkly:launchdarkly-environments-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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

launchdarkly-environments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Launchdarkly Environments API
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  version: '1.0'
  description: 'Operations tagged Environments across 2 of this provider''s published API definitions: launchdarkly-openapi.json, launchdarkly-rest-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://app.launchdarkly.com
  description: ' Default'
- url: https://app.launchdarkly.us
  description: ' Federal'
- url: https://app.launchdarkly.com/api/v2
  description: LaunchDarkly Production API
tags:


# --- truncated at 32 KB (44 KB total) ---
# Full source: https://artifacts.apis.io/launchdarkly/openapi/launchdarkly-environments-api-openapi.yml