> ## 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.

# List organization operations

> Returns a paginated list of operations from the authorized organization.



## OpenAPI

````yaml /en/api-reference/openapi.en-v1.json get /v1/organizations/{organization_id}/operations
openapi: 3.0.3
info:
  title: Public Portal API
  version: 1.0.0
  description: Public REST API for portal
servers:
  - url: https://api.staging.flxwvdexternal.com
    description: Staging API server.
security:
  - bearerAuth: []
tags: []
paths:
  /v1/organizations/{organization_id}/operations:
    get:
      tags:
        - Operations
      summary: List organization operations
      description: Returns a paginated list of operations from the authorized organization.
      operationId: get_operations
      parameters:
        - name: organization id
          in: path
          required: true
          schema:
            type: string
            pattern: ^[0-9a-f]{24}$
            minLength: 24
            maxLength: 24
          description: Organization identifier.
          example: 507f1f77bcf86cd799439011
        - name: page
          in: query
          required: false
          schema:
            type: integer
            default: 1
            minimum: 1
          description: Page number.
        - name: per_page
          in: query
          required: false
          schema:
            type: integer
            default: 100
            maximum: 100
            minimum: 1
          description: Number of items per page.
        - name: fields
          in: query
          required: false
          schema:
            type: string
            maxLength: 2048
          description: Response fields separated by commas for each element.
          example: id,organization_id,name,description,status,created_at
        - name: filters
          in: query
          required: false
          schema:
            type: string
            maxLength: 5120
          description: JSON expression of filters on filterable resource fields.
          examples:
            simple:
              summary: Filter by name
              value: '{"field":"name","op":"contains","value":"remote"}'
            complex-and:
              summary: Filter by status and description
              value: >-
                {"and":[{"field":"status","op":"eq","value":"finished"},{"field":"description","op":"contains","value":"remote"}]}
            complex-or-and:
              summary: Combine OR and AND conditions
              value: >-
                {"and":[{"or":[{"field":"microservice_id","op":"eq","value":"64f0c2a1b2d3e4f506070833"},{"field":"flow_id","op":"eq","value":"64f0c2a1b2d3e4f506070844"}]},{"field":"status","op":"eq","value":"pending"}]}
        - name: sort
          in: query
          required: false
          schema:
            type: string
            pattern: ^([a-z_]+):(asc|desc)$
          description: >-
            Sorting expression in the format <field>:asc|desc. In aggregate
            mode, only accepts `group_by` fields or aggregated aliases (`count`,
            `<function>_<field>`).
          example: created_at:desc
        - name: aggregate
          in: query
          required: false
          schema:
            type: string
            maxLength: 1024
          description: >-
            JSON expression for aggregation. Structure:
            {"group_by":["field"],"aggregates":[{"field":"*","function":"count"}]}.
            Cannot be combined with `fields`.
          examples:
            group-by-status-count:
              summary: Group by status and count
              value: >-
                {"group_by":["status"],"aggregates":[{"field":"*","function":"count"}]}
            group-by-organization-count:
              summary: Group by organization and count
              value: >-
                {"group_by":["organization_id"],"aggregates":[{"field":"*","function":"count"}]}
      responses:
        '200':
          description: Operations successfully retrieved.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetOperationsResponseV1'
              examples:
                paginated_result:
                  summary: Paginated list with results
                  value:
                    has_next: true
                    data:
                      - id: 64f0c2a1b2d3e4f506070811
                        organization_id: 507f1f77bcf86cd799439022
                        name: remote_assistance
                        description: Remote assistance operation
                        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
                aggregated_by_status:
                  summary: Aggregated result by status
                  value:
                    has_next: false
                    data:
                      - status: finished
                        count: 12
                      - status: pending
                        count: 5
        '400':
          description: Invalid request parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalid_filters:
                  summary: Invalid filters format
                  value:
                    error:
                      message: Invalid filter format
                      code: bad_request
                      details: The filters parameter must be a valid JSON string.
        '401':
          description: Not authorized or without access to the organization.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                unauthorized:
                  summary: Authorization failure
                  value:
                    error:
                      message: Unauthorized
                      code: unauthorized
        '404':
          description: Resource not found within the authorized organization.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                not_found:
                  summary: Non-existent resource
                  value:
                    error:
                      message: Resource not found
                      code: not_found
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                unexpected_error:
                  summary: Unexpected error
                  value:
                    error:
                      message: Internal Server Error
                      code: internal_error
components:
  schemas:
    GetOperationsResponseV1:
      type: object
      properties:
        has_next:
          type: boolean
          description: Indicates if there's a next page.
        data:
          type: array
          items:
            $ref: '#/components/schemas/GetOperationItemV1'
      required:
        - has_next
        - data
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            code:
              type: string
            details:
              type: string
          required:
            - message
            - code
      required:
        - error
    GetOperationItemV1:
      type: object
      properties:
        id:
          type: string
          pattern: ^[0-9a-f]{24}$
          minLength: 24
          maxLength: 24
          description: Operation execution identifier.
        name:
          type: string
          description: Operation name.
        description:
          type: string
          description: >-
            Operation description. An empty string is returned when it doesn't
            exist at source.
        organization_id:
          type: string
          pattern: ^[0-9a-f]{24}$
          minLength: 24
          maxLength: 24
          description: Identifier of the organization owning the operation.
        status:
          type: string
          enum:
            - finished
            - unknown
            - error
            - pending
            - in-progress
            - timeout
            - cancelled
            - scheduled
          description: Current operation status.
        created_at:
          type: string
          format: date-time
          description: Creation timestamp.
        started_at:
          type: string
          format: date-time
          nullable: true
          description: Start timestamp.
        ended_at:
          type: string
          format: date-time
          nullable: true
          description: Completion timestamp.
        microservice_id:
          type: string
          nullable: true
          pattern: ^[0-9a-f]{24}$
          minLength: 24
          maxLength: 24
          description: Related microservice identifier, when it exists.
        flow_id:
          type: string
          nullable: true
          pattern: ^[0-9a-f]{24}$
          minLength: 24
          maxLength: 24
          description: Related flow identifier, when it exists.
        remote_support:
          $ref: '#/components/schemas/GetOperationRemoteSupportV1'
      required:
        - id
        - organization id
        - name
        - description
        - status
        - created_at
    GetOperationRemoteSupportV1:
      type: object
      nullable: true
      properties:
        start_date:
          type: string
          format: date-time
          nullable: true
          description: Remote support start date.
        end_date:
          type: string
          format: date-time
          nullable: true
          description: Remote support end date.
        type:
          type: string
          nullable: true
          description: Type of remote support session.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````