# Codefresh Environments V2 API

**Canonical:** https://apis.io/apis/codefresh/codefresh-environments-v2-api/  
**Provider:** Codefresh — https://apis.io/providers/codefresh/  
**Base URL:** https://g.codefresh.io/api  
**Documentation:** https://g.codefresh.io/api/

Codefresh Environments V2 API is one of 64 APIs that [Codefresh](https://apis.io/providers/codefresh/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Environments V2. The published artifact set on APIs.io includes an OpenAPI specification.

environments v2

## Operations (35)

| Method | Path | Summary |
|---|---|---|
| GET | `/gitops/filters` | Get application filter values |
| POST | `/environments-v2` | Create environment |
| GET | `/environments-v2` | List of environments |
| GET | `/environments-v2/activity/{id}` | List of envs by activity id |
| GET | `/environments-v2/{name}/kubernetes/statistic` | Get summary |
| POST | `/environments-v2/argo/metadata` | Update argocd activity metadata |
| GET | `/environments-v2/{name}` | Get enviroment |
| PUT | `/environments-v2/{name}` | Replace environment |
| DELETE | `/environments-v2/{name}` | Delete environment |
| PUT | `/environments-v2/{name}/update` | Patch environment |
| POST | `/environments-v2/{name}/reset/new` | Replace environment |
| GET | `/environments-v2/{name}/chart` | Get environment argo chart |
| PUT | `/environments-v2/{environmentName}/activity/{activityName}` | Update environments-v2 activity by name |
| POST | `/environments-v2/{name}/rollback` | Rollback argo environment |
| POST | `/gitops/argocd/{name}/rollbackToStable` | Rollback argo environment to stable version |
| GET | `/environments-v2/{name}/filters` | Get |
| POST | `/environments-v2/argo/provision` | Provision argo applications |
| POST | `/argo` | Create |
| GET | `/argo` | Get environments-v2 integrations |
| GET | `/argo/{name}` | Get environments-v2 integration by name |
| PUT | `/argo/{name}` | Update environments-v2 integration by name |
| PATCH | `/argo/{name}` | Patch environments-v2 integration by name |
| DELETE | `/argo/{name}` | Delete environments-v2 integration by name |
| GET | `/argo/resources/{integrationName}/{type}` | Get argo resources by integration name and type |
| POST | `/argo-agent/{integrationName}` | Store argo state by integration name |
| POST | `/gitops/system/events` | Send system event about gitops |
| GET | `/gitops/environment/{environmentId}/resources` | Get resources list for activity |
| POST | `/argo-agent/{integrationName}/heartbeat` | Heart beat for integration |
| POST | `/argo-runtime` | Argo runtime creation |
| DELETE | `/argo-runtime/{name}` | Argo runtime deletion |
| GET | `/argo-runtime/{name}/storeKey` | Get argo-runtime public store key |
| GET | `/argo-runtime/users` | Get the users defined on the active account |
| GET | `/argo-runtime/adminUsers` | Get the admin users defined on the active account |
| POST | `/argo-runtime/csdpSettings` | update the csdp settings (gitProvider, gitApiUrl, sharedConfigRepo) |
| POST | `/argo-runtime/markCsdpSettingsAsValidated` | marks the csdp settings (gitProvider, gitApiUrl, sharedConfigRepo) as validated… |

## Machine-readable artifacts (1)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/codefresh/refs/heads/main/openapi/codefresh-environments-v2-api-openapi.yml

## Other Codefresh APIs (12)

- [Codefresh REST API](https://apis.io/apis/codefresh/rest-api/)
- [Codefresh Accounts API](https://apis.io/apis/codefresh/codefresh-accounts-api/)
- [Codefresh Annotations API](https://apis.io/apis/codefresh/codefresh-annotations-api/)
- [Codefresh Audit API](https://apis.io/apis/codefresh/codefresh-audit-api/)
- [Codefresh Builds API](https://apis.io/apis/codefresh/codefresh-builds-api/)
- [Codefresh Clusters API](https://apis.io/apis/codefresh/codefresh-clusters-api/)
- [Codefresh Contexts API](https://apis.io/apis/codefresh/codefresh-contexts-api/)
- [Codefresh Environments API](https://apis.io/apis/codefresh/codefresh-environments-api/)
- [Codefresh Features API](https://apis.io/apis/codefresh/codefresh-features-api/)
- [Codefresh Helm API](https://apis.io/apis/codefresh/codefresh-helm-api/)
- [Codefresh Abac API](https://apis.io/apis/codefresh/codefresh-abac-api/)
- [Codefresh Account API](https://apis.io/apis/codefresh/codefresh-account-api/)

## Tags

Environments V2

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/codefresh/codefresh-environments-v2-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/codefresh/.
