Qovery · Capability

Qovery API — Environment Actions

Qovery API — Environment Actions. 12 operations. Lead operation: Cancel environment deployment. Self-contained Naftiko capability covering one Qovery business surface.

Run with Naftiko QoveryEnvironment Actions

What You Can Do

POST
Cancelenvironmentdeployment — Cancel environment deployment
/v1/environment/{environmentid}/canceldeployment
POST
Cleanfailedjobs — Clean failed jobs within an environment
/v1/environment/{environmentid}/cleanfailedjobs
POST
Cloneenvironment — Clone environment
/v1/environment/{environmentid}/clone
POST
Deployenvironment — Deploy environment
/v1/environment/{environmentid}/deploy
POST
Redeployenvironment — Redeploy environment
/v1/environment/{environmentid}/redeploy
POST
Deleteselectedservices — Delete services
/v1/environment/{environmentid}/service/delete
POST
Deployallservices — Deploy services
/v1/environment/{environmentid}/service/deploy
POST
Rebootservices — Reboot services
/v1/environment/{environmentid}/service/restart-service
POST
Stopselectedservices — Stop services
/v1/environment/{environmentid}/service/stop
POST
Uninstallselectedservices — Uninstall services
/v1/environment/{environmentid}/service/uninstall
POST
Stopenvironment — Stop environment
/v1/environment/{environmentid}/stop
POST
Uninstallenvironment — Uninstall environment
/v1/environment/{environmentid}/uninstall

MCP Tools

cancel-environment-deployment

Cancel environment deployment

clean-failed-jobs-within-environment

Clean failed jobs within an environment

clone-environment

Clone environment

deploy-environment

Deploy environment

redeploy-environment

Redeploy environment

delete-services

Delete services

deploy-services

Deploy services

reboot-services

Reboot services

stop-services

Stop services

uninstall-services

Uninstall services

stop-environment

Stop environment

uninstall-environment

Uninstall environment

Capability Spec

qovery-environment-actions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Qovery API — Environment Actions
  description: 'Qovery API — Environment Actions. 12 operations. Lead operation: Cancel environment deployment. Self-contained
    Naftiko capability covering one Qovery business surface.'
  tags:
  - Qovery
  - Environment Actions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    QOVERY_API_KEY: QOVERY_API_KEY
capability:
  consumes:
  - type: http
    namespace: qovery-environment-actions
    baseUri: https://api.qovery.com
    description: Qovery API — Environment Actions business capability. Self-contained, no shared references.
    resources:
    - name: environment-environmentId-cancelDeployment
      path: /environment/{environmentId}/cancelDeployment
      operations:
      - name: cancelenvironmentdeployment
        method: POST
        description: Cancel environment deployment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: environment-environmentId-cleanFailedJobs
      path: /environment/{environmentId}/cleanFailedJobs
      operations:
      - name: cleanfailedjobs
        method: POST
        description: Clean failed jobs within an environment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: environment-environmentId-clone
      path: /environment/{environmentId}/clone
      operations:
      - name: cloneenvironment
        method: POST
        description: Clone environment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: environment-environmentId-deploy
      path: /environment/{environmentId}/deploy
      operations:
      - name: deployenvironment
        method: POST
        description: Deploy environment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: environment-environmentId-redeploy
      path: /environment/{environmentId}/redeploy
      operations:
      - name: redeployenvironment
        method: POST
        description: Redeploy environment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: environment-environmentId-service-delete
      path: /environment/{environmentId}/service/delete
      operations:
      - name: deleteselectedservices
        method: POST
        description: Delete services
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: environment-environmentId-service-deploy
      path: /environment/{environmentId}/service/deploy
      operations:
      - name: deployallservices
        method: POST
        description: Deploy services
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: environment-environmentId-service-restart-service
      path: /environment/{environmentId}/service/restart-service
      operations:
      - name: rebootservices
        method: POST
        description: Reboot services
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: environment-environmentId-service-stop
      path: /environment/{environmentId}/service/stop
      operations:
      - name: stopselectedservices
        method: POST
        description: Stop services
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: environment-environmentId-service-uninstall
      path: /environment/{environmentId}/service/uninstall
      operations:
      - name: uninstallselectedservices
        method: POST
        description: Uninstall services
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: environment-environmentId-stop
      path: /environment/{environmentId}/stop
      operations:
      - name: stopenvironment
        method: POST
        description: Stop environment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: environment-environmentId-uninstall
      path: /environment/{environmentId}/uninstall
      operations:
      - name: uninstallenvironment
        method: POST
        description: Uninstall environment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.QOVERY_API_KEY}}'
  exposes:
  - type: rest
    namespace: qovery-environment-actions-rest
    port: 8080
    description: REST adapter for Qovery API — Environment Actions. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/environment/{environmentid}/canceldeployment
      name: environment-environmentid-canceldeployment
      description: REST surface for environment-environmentId-cancelDeployment.
      operations:
      - method: POST
        name: cancelenvironmentdeployment
        description: Cancel environment deployment
        call: qovery-environment-actions.cancelenvironmentdeployment
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/environment/{environmentid}/cleanfailedjobs
      name: environment-environmentid-cleanfailedjobs
      description: REST surface for environment-environmentId-cleanFailedJobs.
      operations:
      - method: POST
        name: cleanfailedjobs
        description: Clean failed jobs within an environment
        call: qovery-environment-actions.cleanfailedjobs
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/environment/{environmentid}/clone
      name: environment-environmentid-clone
      description: REST surface for environment-environmentId-clone.
      operations:
      - method: POST
        name: cloneenvironment
        description: Clone environment
        call: qovery-environment-actions.cloneenvironment
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/environment/{environmentid}/deploy
      name: environment-environmentid-deploy
      description: REST surface for environment-environmentId-deploy.
      operations:
      - method: POST
        name: deployenvironment
        description: Deploy environment
        call: qovery-environment-actions.deployenvironment
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/environment/{environmentid}/redeploy
      name: environment-environmentid-redeploy
      description: REST surface for environment-environmentId-redeploy.
      operations:
      - method: POST
        name: redeployenvironment
        description: Redeploy environment
        call: qovery-environment-actions.redeployenvironment
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/environment/{environmentid}/service/delete
      name: environment-environmentid-service-delete
      description: REST surface for environment-environmentId-service-delete.
      operations:
      - method: POST
        name: deleteselectedservices
        description: Delete services
        call: qovery-environment-actions.deleteselectedservices
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/environment/{environmentid}/service/deploy
      name: environment-environmentid-service-deploy
      description: REST surface for environment-environmentId-service-deploy.
      operations:
      - method: POST
        name: deployallservices
        description: Deploy services
        call: qovery-environment-actions.deployallservices
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/environment/{environmentid}/service/restart-service
      name: environment-environmentid-service-restart-service
      description: REST surface for environment-environmentId-service-restart-service.
      operations:
      - method: POST
        name: rebootservices
        description: Reboot services
        call: qovery-environment-actions.rebootservices
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/environment/{environmentid}/service/stop
      name: environment-environmentid-service-stop
      description: REST surface for environment-environmentId-service-stop.
      operations:
      - method: POST
        name: stopselectedservices
        description: Stop services
        call: qovery-environment-actions.stopselectedservices
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/environment/{environmentid}/service/uninstall
      name: environment-environmentid-service-uninstall
      description: REST surface for environment-environmentId-service-uninstall.
      operations:
      - method: POST
        name: uninstallselectedservices
        description: Uninstall services
        call: qovery-environment-actions.uninstallselectedservices
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/environment/{environmentid}/stop
      name: environment-environmentid-stop
      description: REST surface for environment-environmentId-stop.
      operations:
      - method: POST
        name: stopenvironment
        description: Stop environment
        call: qovery-environment-actions.stopenvironment
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/environment/{environmentid}/uninstall
      name: environment-environmentid-uninstall
      description: REST surface for environment-environmentId-uninstall.
      operations:
      - method: POST
        name: uninstallenvironment
        description: Uninstall environment
        call: qovery-environment-actions.uninstallenvironment
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: qovery-environment-actions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Qovery API — Environment Actions. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: cancel-environment-deployment
      description: Cancel environment deployment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: qovery-environment-actions.cancelenvironmentdeployment
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: clean-failed-jobs-within-environment
      description: Clean failed jobs within an environment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: qovery-environment-actions.cleanfailedjobs
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: clone-environment
      description: Clone environment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: qovery-environment-actions.cloneenvironment
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: deploy-environment
      description: Deploy environment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: qovery-environment-actions.deployenvironment
      outputParameters:
      - type: object
        mapping: $.
    - name: redeploy-environment
      description: Redeploy environment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: qovery-environment-actions.redeployenvironment
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-services
      description: Delete services
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: qovery-environment-actions.deleteselectedservices
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: deploy-services
      description: Deploy services
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: qovery-environment-actions.deployallservices
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: reboot-services
      description: Reboot services
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: qovery-environment-actions.rebootservices
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: stop-services
      description: Stop services
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: qovery-environment-actions.stopselectedservices
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: uninstall-services
      description: Uninstall services
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: qovery-environment-actions.uninstallselectedservices
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: stop-environment
      description: Stop environment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: qovery-environment-actions.stopenvironment
      outputParameters:
      - type: object
        mapping: $.
    - name: uninstall-environment
      description: Uninstall environment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: qovery-environment-actions.uninstallenvironment
      outputParameters:
      - type: object
        mapping: $.