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

# Execute Artifact Endpoint

> Execute an artifact in a Docker container.



## OpenAPI

````yaml /api-reference/openapi.json post /api/artifacts/{agent_name}/{user_id}/{session_id}/{filename}/execute
openapi: 3.1.0
info:
  title: apowerb API
  description: REST API of the apowerb agentic framework (open-source edition).
  version: 0.1.2
  license:
    name: MIT
    url: https://github.com/apowerb/apowerb/blob/main/LICENSE
servers:
  - url: https://api.example.com
    description: Your apowerb instance
  - url: http://localhost:8000
    description: Local stack
security: []
paths:
  /api/artifacts/{agent_name}/{user_id}/{session_id}/{filename}/execute:
    post:
      tags:
        - artifacts
      summary: Execute Artifact Endpoint
      description: Execute an artifact in a Docker container.
      operationId: >-
        execute_artifact_endpoint_api_artifacts__agent_name___user_id___session_id___filename__execute_post
      parameters:
        - name: agent_name
          in: path
          required: true
          schema:
            type: string
            title: Agent Name
        - name: user_id
          in: path
          required: true
          schema:
            type: string
            title: User Id
        - name: session_id
          in: path
          required: true
          schema:
            type: string
            title: Session Id
        - name: filename
          in: path
          required: true
          schema:
            type: string
            title: Filename
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExecuteRequest'
              default:
                timeout: 30
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ExecuteRequest:
      properties:
        args:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Args
        stdin:
          anyOf:
            - type: string
            - type: 'null'
          title: Stdin
        timeout:
          anyOf:
            - type: integer
            - type: 'null'
          title: Timeout
          default: 30
      type: object
      title: ExecuteRequest
    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
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

## Related topics

- [Artifacts](/guides/artifacts.md)
- [Save Artifact](/api-reference/save-artifact.md)
- [Load Artifact](/api-reference/load-artifact.md)
- [List Artifacts](/api-reference/artifacts/list-artifacts.md)
- [Get Artifact](/api-reference/artifacts/get-artifact.md)
