> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enneo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get local execution command



## OpenAPI

````yaml https://dev.enneo.dev/api/mind/docs/open-api post /executor/localExecutionCommand
openapi: 3.0.0
info:
  version: '1'
  title: enneo.MIND API
  description: This describes the API of enneo Mind, the main ticketing backend
  contact:
    name: enneo GmbH
    email: richard@enneo.ai
  license:
    name: Proprietary software
    url: https://enneo.ai
servers:
  - url: https://demo.enneo.ai/api/mind
    description: Production server, demo client
  - url: https://main.enneo.dev/api/mind
    description: Development main branch
  - url: http://localhost:8005/api/mind
    description: Local development server
security:
  - bearerAuth:
      - api
  - cookieAuth:
      - api
paths:
  /executor/localExecutionCommand:
    post:
      tags:
        - Executor Sandbox
      summary: Get local execution command
      operationId: getLocalExecutionCommand
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  description: The id of the executor
                  example: 123
                code:
                  type: string
                  description: The name of the executor
                  example: |
                    <?php

                     echo '{"success": true}';
                type:
                  type: string
                  description: The type of the executor
                  example: sourceCode
                language:
                  type: string
                  example: php82
                packages:
                  type: string
                  example: ''
                parameters:
                  type: object
                  properties:
                    key1:
                      type: string
                      example: val1ö"\n*!
                    key2:
                      type: string
                      example: val'ue
      responses:
        '200':
          description: Successful execution
          content:
            application/json:
              schema:
                type: object
                properties:
                  unix:
                    type: string
                    example: >-
                      curl -s
                      http://host.docker.internal:8000/api/codeExecutor/sdk/php82.php
                      -o sdk.php && echo '{}' |
                      ENNEO_API_URL=http://host.docker.internal:8000
                      ENNEO_SESSION_TOKEN=***TOKEN_EXAMPLE***
                      ENNEO_USER_AUTH_HEADER=Authorization: Bearer
                      ***TOKEN_EXAMPLE*** SDK=sdk.php php -dxdebug.mode=debug
                      -dxdebug.client_port=9003 -dxdebug.client_host=127.0.0.1
                      -dxdebug.start_with_request=yes mycode.php
                  windows:
                    type: string
                    example: >-
                      Invoke-WebRequest -Uri
                      http://host.docker.internal:8000/api/codeExecutor/sdk/php82.php
                      -OutFile sdk.php ; $env:ENNEO_API_URL =
                      "http://host.docker.internal:8000";
                      $env:ENNEO_SESSION_TOKEN=***TOKEN_EXAMPLE***
                      $env:ENNEO_USER_AUTH_HEADER = "Authorization: Bearer
                      ***TOKEN_EXAMPLE***"; $env:SDK = "sdk.php"; ; php
                      -dxdebug.mode=debug -dxdebug.client_port=9003
                      -dxdebug.client_host=127.0.0.1
                      -dxdebug.start_with_request=yes mycode.php
        '403':
          description: Unauthorized
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      description: Data format of Enneo error messages
      properties:
        error:
          type: string
          example: Contract 121 could not be processed
          description: Readable error message that should be shown to the user
        details:
          type: string
          example: >-
            Uncatched null point exception in testFunction() in
            /app/src/file:212
          description: Not easily readable error message that is for the developer
        txId:
          type: string
          example: c916167c94
          description: >-
            Internal transaction id. Useful for debugging. Corresponds to the
            OpenTelemetry trace ID.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT-based authentication
      x-scopes:
        api: Full access to the API
    cookieAuth:
      type: apiKey
      in: cookie
      name: connect.sid
      description: Cookie-based authentication
      x-scopes:
        api: Full access to the API

````