Split · Capability

Split Admin API — Environments

Split Admin API — Environments. 5 operations. Lead operation: List environments. Self-contained Naftiko capability covering one Split business surface.

Run with Naftiko SplitEnvironments

What You Can Do

GET
Listenvironments — List environments
/v1/environments/ws/{workspaceid}
POST
Createenvironment — Create environment
/v1/environments/ws/{workspaceid}
GET
Getenvironment — Get environment
/v1/environments/ws/{workspaceid}/{environmentid}
PATCH
Updateenvironment — Update environment
/v1/environments/ws/{workspaceid}/{environmentid}
DELETE
Deleteenvironment — Delete environment
/v1/environments/ws/{workspaceid}/{environmentid}

MCP Tools

list-environments

List environments

read-only idempotent
create-environment

Create environment

get-environment

Get environment

read-only idempotent
update-environment

Update environment

idempotent
delete-environment

Delete environment

idempotent

Capability Spec

admin-environments.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Split Admin API — Environments
  description: 'Split Admin API — Environments. 5 operations. Lead operation: List environments. Self-contained Naftiko capability
    covering one Split business surface.'
  tags:
  - Split
  - Environments
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SPLIT_API_KEY: SPLIT_API_KEY
capability:
  consumes:
  - type: http
    namespace: admin-environments
    baseUri: https://api.split.io/internal/api/v2
    description: Split Admin API — Environments business capability. Self-contained, no shared references.
    resources:
    - name: environments-ws-workspaceId
      path: /environments/ws/{workspaceId}
      operations:
      - name: listenvironments
        method: GET
        description: List environments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createenvironment
        method: POST
        description: Create environment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: environments-ws-workspaceId-environmentId
      path: /environments/ws/{workspaceId}/{environmentId}
      operations:
      - name: getenvironment
        method: GET
        description: Get environment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateenvironment
        method: PATCH
        description: Update environment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteenvironment
        method: DELETE
        description: Delete environment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.SPLIT_API_KEY}}'
  exposes:
  - type: rest
    namespace: admin-environments-rest
    port: 8080
    description: REST adapter for Split Admin API — Environments. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/environments/ws/{workspaceid}
      name: environments-ws-workspaceid
      description: REST surface for environments-ws-workspaceId.
      operations:
      - method: GET
        name: listenvironments
        description: List environments
        call: admin-environments.listenvironments
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createenvironment
        description: Create environment
        call: admin-environments.createenvironment
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/environments/ws/{workspaceid}/{environmentid}
      name: environments-ws-workspaceid-environmentid
      description: REST surface for environments-ws-workspaceId-environmentId.
      operations:
      - method: GET
        name: getenvironment
        description: Get environment
        call: admin-environments.getenvironment
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateenvironment
        description: Update environment
        call: admin-environments.updateenvironment
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteenvironment
        description: Delete environment
        call: admin-environments.deleteenvironment
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: admin-environments-mcp
    port: 9090
    transport: http
    description: MCP adapter for Split Admin API — Environments. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-environments
      description: List environments
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: admin-environments.listenvironments
      outputParameters:
      - type: object
        mapping: $.
    - name: create-environment
      description: Create environment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: admin-environments.createenvironment
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-environment
      description: Get environment
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: admin-environments.getenvironment
      outputParameters:
      - type: object
        mapping: $.
    - name: update-environment
      description: Update environment
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: admin-environments.updateenvironment
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-environment
      description: Delete environment
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: admin-environments.deleteenvironment
      outputParameters:
      - type: object
        mapping: $.