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

# Obtener detalle de una operación

> Devuelve el detalle público de una operación existente en la organización autorizada.



## OpenAPI

````yaml /api-reference/openapi-v1.json get /v1/organizations/{organization_id}/operations/{operation_id}
openapi: 3.0.3
info:
  title: API Publica Portal
  version: 1.0.0
  description: Api publica REST para portal
servers:
  - url: https://api.staging.flxwvdexternal.com
    description: Staging API server
security:
  - bearerAuth: []
tags: []
paths:
  /v1/organizations/{organization_id}/operations/{operation_id}:
    get:
      tags:
        - Operaciones
      summary: Obtener detalle de una operación
      description: >-
        Devuelve el detalle público de una operación existente en la
        organización autorizada.
      operationId: get_operation_by_id
      parameters:
        - name: organization_id
          in: path
          required: true
          schema:
            type: string
            pattern: ^[0-9a-f]{24}$
            minLength: 24
            maxLength: 24
          description: Identificador de la organización.
          example: 507f1f77bcf86cd799439011
        - name: operation_id
          in: path
          required: true
          schema:
            type: string
            pattern: ^[0-9a-f]{24}$
            minLength: 24
            maxLength: 24
          description: Identificador de la operación.
          example: 64f0c2a1b2d3e4f506070811
      responses:
        '200':
          description: Operación recuperada correctamente.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetOperationByIdResponseV1'
              examples:
                operation_detail:
                  summary: Detalle de operación
                  value:
                    id: 64f0c2a1b2d3e4f506070811
                    organization_id: 507f1f77bcf86cd799439011
                    name: remote_assistance
                    description: Operación de asistencia remota
                    status: finished
                    created_at: '2026-03-10T09:11:45Z'
                    started_at: '2026-03-10T09:12:00Z'
                    ended_at: '2026-03-10T09:15:17Z'
                    microservice_id: 64f0c2a1b2d3e4f506070833
                    flow_id: 64f0c2a1b2d3e4f506070844
                    remote_support:
                      start_date: '2026-03-10T09:12:00Z'
                      end_date: '2026-03-10T09:15:17Z'
                      type: unattended
        '400':
          description: Parámetros de ruta no válidos.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalid_identifier:
                  summary: Identificador con formato inválido
                  value:
                    error:
                      message: El identificador de operación no es válido
                      code: bad_request
                      details: >-
                        operation_id debe tener 24 caracteres hexadecimales en
                        minúscula.
        '401':
          description: No autorizado o sin acceso a la organización.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                unauthorized:
                  summary: Fallo de autorización
                  value:
                    error:
                      message: No autorizado
                      code: unauthorized
        '404':
          description: Operación no encontrada en la organización autorizada.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                not_found:
                  summary: Operación inexistente
                  value:
                    error:
                      message: Operación no encontrada
                      code: not_found
        '500':
          description: Error interno del servidor.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                unexpected_error:
                  summary: Error inesperado
                  value:
                    error:
                      message: Error interno del servidor
                      code: internal_error
components:
  schemas:
    GetOperationByIdResponseV1:
      type: object
      properties:
        id:
          type: string
          pattern: ^[0-9a-f]{24}$
          minLength: 24
          maxLength: 24
          description: Identificador de la ejecución de operación.
        name:
          type: string
          description: Nombre de la operación.
        organization_id:
          type: string
          pattern: ^[0-9a-f]{24}$
          minLength: 24
          maxLength: 24
          description: Identificador de la organización propietaria de la operación.
        description:
          type: string
          description: >-
            Descripción de la operación. Se devuelve cadena vacía cuando no
            existe en origen.
        status:
          type: string
          enum:
            - finished
            - unknown
            - error
            - pending
            - in-progress
            - timeout
            - cancelled
            - scheduled
          description: Estado actual de la operación.
        created_at:
          type: string
          format: date-time
          description: Marca temporal de creación.
        started_at:
          type: string
          format: date-time
          nullable: true
          description: Marca temporal de inicio.
        ended_at:
          type: string
          format: date-time
          nullable: true
          description: Marca temporal de finalización.
        microservice_id:
          type: string
          nullable: true
          pattern: ^[0-9a-f]{24}$
          minLength: 24
          maxLength: 24
          description: Identificador del microservicio relacionado, cuando exista.
        flow_id:
          type: string
          nullable: true
          pattern: ^[0-9a-f]{24}$
          minLength: 24
          maxLength: 24
          description: Identificador del flujo relacionado, cuando exista.
        remote_support:
          $ref: '#/components/schemas/GetOperationByIdRemoteSupportV1'
      required:
        - id
        - organization_id
        - name
        - description
        - status
        - created_at
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            code:
              type: string
            details:
              type: string
          required:
            - message
            - code
      required:
        - error
    GetOperationByIdRemoteSupportV1:
      type: object
      nullable: true
      properties:
        start_date:
          type: string
          format: date-time
          nullable: true
          description: Fecha de inicio del soporte remoto.
        end_date:
          type: string
          format: date-time
          nullable: true
          description: Fecha de fin del soporte remoto.
        type:
          type: string
          nullable: true
          description: Tipo de sesión de soporte remoto.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````