Comet Environments API

Environment related resources

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 5

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 /v1/private/environments List environments in the workspace · Find environments #
Ask an LLM
“What environments are set up in my Opik workspace?”
“How many environments can a workspace have?”
Tell an agent
List all environments in my workspace.
Show every environment configured.
POST /v1/private/environments Create an environment · Create environment #
Ask an LLM
“How do I add a new environment to my workspace?”
“Can I set a color and position when creating an environment?”
Tell an agent
Create an environment named {name}.
Create environment {name} described as {description} in color {color}.
POST /v1/private/environments/delete Delete several environments at once · Delete environments #
Ask an LLM
“Can I remove multiple environments in one request?”
“Is deleting environments that don't exist ignored?”
Tell an agent destructive · confirm first
Delete environments {ids}.
Remove the environments with ids {ids} in one batch.
GET /v1/private/environments/{id} Get an environment · Get environment by id #
Ask an LLM
“What are the details of one environment?”
“Can I fetch an environment by its id?”
Tell an agent
Get environment {id}.
Show me the environment with id {id}.
PATCH /v1/private/environments/{id} Update an environment · Update environment by id #
Ask an LLM
“How do I rename or recolor an existing environment?”
“Can I move an environment to a different position?”
Tell an agent
Rename environment {id} to {name}.
Set the color of environment {id} to {color}.

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/comet:comet-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

comet-environments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Opik REST Environments API
  description: The Opik REST API is currently in beta and subject to change.
  contact:
    name: Github Repository
    url: https://github.com/comet-ml/opik
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: 1.0.0
servers:
- url: http://localhost:5173/api
  description: Local server
- url: https://www.comet.com/opik/api
  description: Opik Cloud
tags:
- name: Environments
  description: Environment related resources
paths:
  /v1/private/environments:
    get:
      tags:
      - Environments
      summary: Find environments
      description: Find environments for the workspace. Capped at the workspace limit (default 20).
      operationId: findEnvironments
      responses:
        '200':
          description: Environments page
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvironmentPage_Public'
    post:
      tags:
      - Environments
      summary: Create environment
      operationId: createEnvironment
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Environment_Write'
      responses:
        '201':
          description: Created
          headers:
            Location:
              required: true
              style: simple
              schema:
                type: string
              example: ${basePath}/v1/private/environments/{environmentId}
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
  /v1/private/environments/delete:
    post:
      tags:
      - Environments
      summary: Delete environments
      description: Delete environments batch. Idempotent — missing ids are silently ignored.
      operationId: deleteEnvironmentsBatch
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchDelete'
      responses:
        '204':
          description: No Content
  /v1/private/environments/{id}:
    get:
      tags:
      - Environments
      summary: Get environment by id
      operationId: getEnvironmentById
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Environment
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Environment_Public'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage_Public'
    patch:
      tags:
      - Environments
      summary: Update environment by id
      operationId: updateEnvironment
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnvironmentUpdate'
      responses:
        '204':
          description: No Content
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
components:
  schemas:
    ErrorMessage_Public:
      type: object
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string
        details:
          type: string
    Environment_Public:
      required:
      - name
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          maxLength: 150
          minLength: 0
          pattern: ^[A-Za-z0-9_-]+$
          type: string
        description:
          maxLength: 500
          minLength: 0
          type: string
        color:
          maxLength: 20
          minLength: 0
          type: string
        position:
          type: integer
          format: int32
        created_at:
          type: string
          format: date-time
          readOnly: true
        created_by:
          type: string
          readOnly: true
        last_updated_at:
          type: string
          format: date-time
          readOnly: true
        last_updated_by:
          type: string
          readOnly: true
    EnvironmentUpdate:
      type: object
      properties:
        name:
          maxLength: 150
          minLength: 0
          pattern: ^[A-Za-z0-9_-]+$
          type: string
        description:
          maxLength: 500
          minLength: 0
          type: string
        color:
          maxLength: 20
          minLength: 0
          type: string
        position:
          type: integer
          format: int32
    EnvironmentPage_Public:
      type: object
      properties:
        page:
          type: integer
          format: int32
        size:
          type: integer
          format: int32
        total:
          type: integer
          format: int64
        content:
          type: array
          items:
            $ref: '#/components/schemas/Environment_Public'
        sortableBy:
          type: array
          items:
            type: string
    ErrorMessage:
      type: object
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string
        details:
          type: string
    BatchDelete:
      required:
      - ids
      type: object
      properties:
        ids:
          maxItems: 1000
          minItems: 1
          uniqueItems: true
          type: array
          items:
            type: string
            format: uuid
    Environment_Write:
      required:
      - name
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          maxLength: 150
          minLength: 0
          pattern: ^[A-Za-z0-9_-]+$
          type: string
        description:
          maxLength: 500
          minLength: 0
          type: string
        color:
          maxLength: 20
          minLength: 0
          type: string
        position:
          type: integer
          format: int32