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

# Run Service Command

> Reference for merged 0.6.0 source. The latest verified binary release is 0.5.5; use your Engine’s /api/openapi.json for its installed contract.



## OpenAPI

````yaml /engine/openapi.json post /api/services/{ident}/run
openapi: 3.1.0
info:
  title: nerditd
  version: 0.6.0
  description: >-
    Current source interface (0.6.0); verify your installed Engine version. This
    is not a claim that 0.6.0 is released.
servers:
  - url: http://127.0.0.1:9321
    description: Default local Engine; use your configured endpoint.
security: []
paths:
  /api/services/{ident}/run:
    post:
      tags:
        - Services
        - Services
      summary: Run Service Command
      description: >-
        Reference for merged 0.6.0 source. The latest verified binary release is
        0.5.5; use your Engine’s /api/openapi.json for its installed contract.
      operationId: run_service_command
      parameters:
        - name: ident
          in: path
          required: true
          schema:
            type: string
            title: Ident
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ServiceRunRequest'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceRunResponse'
          description: HTTP 200 response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: HTTP 422 response
components:
  schemas:
    ServiceRunRequest:
      properties:
        command:
          items:
            type: string
          type: array
          maxItems: 256
          minItems: 1
          title: Command
        env:
          anyOf:
            - additionalProperties:
                type: string
              type: object
              maxProperties: 64
            - type: 'null'
          title: Env
        timeout_s:
          type: integer
          minimum: 1
          title: Timeout S
          default: 300
        log_tail:
          type: integer
          maximum: 200
          minimum: 1
          title: Log Tail
          default: 200
      additionalProperties: false
      type: object
      required:
        - command
      title: ServiceRunRequest
    ServiceRunResponse:
      properties:
        service_name:
          type: string
          title: Service Name
        run_id:
          type: string
          title: Run Id
        exit_code:
          anyOf:
            - type: integer
            - type: 'null'
          title: Exit Code
        timed_out:
          type: boolean
          title: Timed Out
        oom_killed:
          type: boolean
          title: Oom Killed
        duration_s:
          type: number
          title: Duration S
        started_at:
          type: string
          title: Started At
        finished_at:
          type: string
          title: Finished At
        log_tail:
          items:
            type: string
          type: array
          title: Log Tail
      type: object
      required:
        - service_name
        - run_id
        - timed_out
        - oom_killed
        - duration_s
        - started_at
        - finished_at
      title: ServiceRunResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````