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

# Résultat d'une exécution

> Récupère le statut et le résultat d'une exécution d'outil spécifique.



## OpenAPI

````yaml /api-reference/openapi.fr.json get /tool-executions/{execution_id}
openapi: 3.1.0
info:
  title: UBIK Public API
  description: Publicly accessible API endpoints for UBIK.
  version: '1.0'
servers:
  - url: https://app.ubik-agent.com/api/v1
    description: Production Server
security: []
paths:
  /tool-executions/{execution_id}:
    get:
      tags:
        - Public API
        - Public API - Tool Executions
      summary: Résultat d'une exécution
      description: Récupère le statut et le résultat d'une exécution d'outil spécifique.
      operationId: get_public_tool_execution_tool_executions__execution_id__get
      parameters:
        - name: execution_id
          in: path
          required: true
          schema:
            type: string
            description: The unique identifier of the tool execution.
            title: Execution Id
          description: L'identifiant unique de l'exécution de l'outil.
        - name: X-End-User-ID
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-End-User-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicToolExecutionResult'
              example:
                id: exec_123456789
                tool_id: d1e2f3a4-b5c6-7890-1234-567890abcdef
                user_id: 123
                status: completed
                inputs:
                  stock_symbol: ACME
                outputs:
                  revenue: 1000000
                  profit: 250000
                created_at: '2025-09-28T12:00:00Z'
                started_at: '2025-09-28T12:00:01Z'
                completed_at: '2025-09-28T12:00:05Z'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    PublicToolExecutionResult:
      properties:
        id:
          type: string
          title: Id
          description: L'identifiant unique de l'instance d'exécution.
        tool_id:
          type: string
          format: uuid
          title: Tool Id
          description: L'ID de l'outil qui a été exécuté.
        user_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: User Id
          description: L'ID de l'utilisateur qui a initié l'exécution.
        status:
          type: string
          title: Status
          description: Le statut final de l'exécution.
        inputs:
          additionalProperties: true
          type: object
          title: Inputs
          description: Les entrées originales fournies à l'outil.
        outputs:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Outputs
          description: Les sorties générées par l'outil.
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
          description: Si l'exécution a échoué, ce champ contient le message d'erreur.
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Horodatage de la création de l'exécution.
        started_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Started At
          description: Horodatage du début du traitement de l'exécution.
        completed_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Completed At
          description: Horodatage de la fin (succès ou échec) de l'exécution.
      type: object
      required:
        - id
        - tool_id
        - status
        - inputs
        - created_at
      title: PublicToolExecutionResult
    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
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-KEY

````