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

# List scheduled actions

> Returns paginated and filtered list of scheduled actions.
Supports filters by status, action type, period, deal, contact and conversation.




## OpenAPI

````yaml /api-reference/openapi/EvoAI-CRM-Service/scheduled-actions.yaml get /api/v1/scheduled_actions
openapi: 3.0.4
info:
  title: Evolution Foundation - CRM Service - Scheduled Actions
  description: Management of contacts, conversations, inboxes, labels and macros
  version: 1.1.0
servers:
  - url: https://api.evoai.app
    description: Production server
  - url: http://localhost:3000
    description: Development server
    variables:
      port:
        default: '3000'
  - url: '{customUrl}'
    description: Custom server
    variables:
      customUrl:
        default: https://your-instance.com
        description: Enter your server URL
security: []
paths:
  /api/v1/scheduled_actions:
    get:
      summary: List scheduled actions
      description: >
        Returns paginated and filtered list of scheduled actions.

        Supports filters by status, action type, period, deal, contact and
        conversation.
      operationId: listScheduledActions
      parameters:
        - name: page
          in: query
          description: Page number
          schema:
            type: integer
            default: 1
            minimum: 1
        - name: per_page
          in: query
          description: Items per page
          schema:
            type: integer
            default: 20
            minimum: 1
            maximum: 100
        - name: status
          in: query
          description: Filter by status
          schema:
            type: string
            enum:
              - scheduled
              - executing
              - completed
              - failed
              - cancelled
        - name: action_type
          in: query
          description: Filter by action type
          schema:
            type: string
            enum:
              - send_message
              - send_email
              - execute_webhook
              - trigger_journey
              - create_task
              - update_deal_stage
              - add_deal_note
              - send_whatsapp
              - send_sms
        - name: deal_id
          in: query
          description: Filter by deal ID
          schema:
            type: integer
        - name: contact_id
          in: query
          description: Filter by contact ID
          schema:
            type: string
            format: uuid
        - name: conversation_id
          in: query
          description: Filter by conversation ID
          schema:
            type: string
            format: uuid
        - name: scheduled_from
          in: query
          description: Start date of scheduling (ISO 8601)
          schema:
            type: string
            format: date-time
        - name: scheduled_to
          in: query
          description: End date of scheduling (ISO 8601)
          schema:
            type: string
            format: date-time
        - name: sort
          in: query
          description: Sorting (recent = most recent, default = by scheduled time)
          schema:
            type: string
            enum:
              - recent
              - scheduled_time
            default: scheduled_time
      responses:
        '200':
          description: List of scheduled actions returned successfully
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - data
                  - meta
                  - message
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ScheduledAction'
                  meta:
                    type: object
                    properties:
                      timestamp:
                        type: string
                        format: date-time
                        description: Response timestamp
                        example: '2024-01-15T10:30:00Z'
                      pagination:
                        type: object
                        properties:
                          page:
                            type: integer
                            example: 1
                          pageSize:
                            type: integer
                            example: 20
                          total:
                            type: integer
                            example: 42
                          totalPages:
                            type: integer
                            example: 3
                          hasNextPage:
                            type: boolean
                            example: true
                          hasPreviousPage:
                            type: boolean
                            example: false
                  message:
                    type: string
                    example: Scheduled actions retrieved successfully
              examples:
                success:
                  value:
                    success: true
                    data: []
                    meta:
                      timestamp: '2024-01-15T10:30:00Z'
                      pagination:
                        page: 1
                        pageSize: 20
                        total: 42
                        totalPages: 3
                        hasNextPage: true
                        hasPreviousPage: false
                    message: Scheduled actions retrieved successfully
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: BAD_REQUEST
                  message: Invalid request parameters
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: /api/v1/scheduled_actions
                  method: GET
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: UNAUTHORIZED
                  message: Invalid or missing authentication token
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: /api/v1/scheduled_actions
                  method: GET
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: FORBIDDEN
                  message: You do not have permission to access scheduled actions
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: /api/v1/scheduled_actions
                  method: GET
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: NOT_FOUND
                  message: Resource not found
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: /api/v1/scheduled_actions
                  method: GET
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: INTERNAL_SERVER_ERROR
                  message: An unexpected error occurred
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: /api/v1/scheduled_actions
                  method: GET
      security:
        - userApiKey: []
components:
  schemas:
    ScheduledAction:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Unique scheduled action ID
          example: 550e8400-e29b-41d4-a716-446655440000
        account_id:
          type: string
          format: uuid
          description: Account ID
          example: 123e4567-e89b-12d3-a456-426614174000
        deal_id:
          type: string
          format: uuid
          nullable: true
          description: Linked deal ID (pipeline item)
          example: 550e8400-e29b-41d4-a716-446655440000
        contact_id:
          type: string
          format: uuid
          nullable: true
          description: Linked contact ID
          example: 987e6543-e21b-12d3-a456-426614174111
        conversation_id:
          type: string
          format: uuid
          nullable: true
          description: Linked conversation ID
          example: 111e2222-e33b-44d5-a666-777888999000
        action_type:
          type: string
          description: Action type to be executed
          enum:
            - send_message
            - send_email
            - execute_webhook
            - trigger_journey
            - create_task
            - update_deal_stage
            - add_deal_note
            - send_whatsapp
            - send_sms
          example: send_whatsapp
        status:
          type: string
          description: Action status
          enum:
            - scheduled
            - executing
            - completed
            - failed
            - cancelled
          example: scheduled
        scheduled_for:
          type: string
          format: date-time
          description: Scheduled date/time for execution
          example: '2025-01-15T14:30:00Z'
        executed_at:
          type: string
          format: date-time
          nullable: true
          description: Actual execution date/time
          example: null
        payload:
          type: object
          description: Action data (varies by action_type)
          additionalProperties: true
          example:
            message: Hello! How can I help?
            phone: '+5574999999999'
        template_id:
          type: string
          format: uuid
          nullable: true
          description: Message template ID (if applicable)
          example: null
        created_by:
          type: string
          format: uuid
          description: Creator user ID
          example: 444e5555-e66b-77d8-a999-000111222333
        retry_count:
          type: integer
          description: Number of execution attempts
          example: 0
        max_retries:
          type: integer
          description: Maximum allowed attempts
          example: 3
        error_message:
          type: string
          nullable: true
          description: Error message from last execution (if failed)
          example: null
        journey_session_id:
          type: string
          nullable: true
          description: Journey session ID (if linked)
          example: null
        recurrence_type:
          type: string
          nullable: true
          description: Recurrence type
          enum:
            - once
            - daily
            - weekly
            - monthly
          example: once
        recurrence_config:
          type: object
          nullable: true
          description: Recurrence settings
          additionalProperties: true
          example: null
        time_until_execution:
          type: integer
          description: Time in seconds until execution
          example: 86400
        formatted_time_until:
          type: string
          description: Formatted time until execution
          example: 1d
        overdue:
          type: boolean
          description: Whether the action is overdue
          example: false
        can_retry:
          type: boolean
          description: Whether the action can be retried
          example: false
        creator:
          type: object
          nullable: true
          description: Creator user data
          properties:
            id:
              type: string
              format: uuid
            name:
              type: string
            email:
              type: string
              format: email
          example:
            id: 444e5555-e66b-77d8-a999-000111222333
            name: John Doe
            email: john@example.com
        created_at:
          type: string
          format: date-time
          example: '2025-01-13T10:00:00Z'
        updated_at:
          type: string
          format: date-time
          example: '2025-01-13T10:00:00Z'
    ErrorResponse:
      type: object
      required:
        - success
        - error
        - meta
      properties:
        success:
          type: boolean
          example: false
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              example: VALIDATION_ERROR
            message:
              type: string
              example: Validation failed
            details:
              type: object
              additionalProperties: true
              nullable: true
        meta:
          type: object
          required:
            - timestamp
            - path
            - method
          properties:
            timestamp:
              type: string
              format: date-time
              example: '2024-01-15T10:30:00Z'
            path:
              type: string
              example: /public/api/v1/inboxes/{inbox_identifier}/contacts
            method:
              type: string
              example: POST
  securitySchemes:
    userApiKey:
      type: apiKey
      in: header
      name: api_access_token

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.