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

# List triggers

> Return a paginated list of triggers. Supports filtering by `activation` and `eventType`, free-text `search`, and ordering by name, createdAt, or updatedAt.



## OpenAPI

````yaml /api-reference/workflows/triggers.yaml get /triggers
openapi: 3.1.0
info:
  title: Triggers
  version: v1
servers:
  - description: Droidrun Cloud API
    url: https://api.mobilerun.ai/v1
security:
  - bearerAuth: []
paths:
  /triggers:
    get:
      tags:
        - Triggers
      summary: List triggers
      description: >-
        Return a paginated list of triggers. Supports filtering by `activation`
        and `eventType`, free-text `search`, and ordering by name, createdAt, or
        updatedAt.
      operationId: listTriggers
      parameters:
        - in: query
          name: page
          required: false
          schema:
            default: 1
            exclusiveMinimum: 0
            type: integer
        - in: query
          name: pageSize
          required: false
          schema:
            default: 10
            exclusiveMinimum: 0
            type: integer
        - in: query
          name: activation
          required: false
          schema:
            enum:
              - event
              - schedule
              - custom
            type: string
        - in: query
          name: eventType
          required: false
          schema:
            type: string
        - in: query
          name: search
          required: false
          schema:
            maxLength: 256
            minLength: 1
            type: string
        - in: query
          name: orderBy
          required: false
          schema:
            default: createdAt
            enum:
              - name
              - createdAt
              - updatedAt
            type: string
        - in: query
          name: orderByDirection
          required: false
          schema:
            default: desc
            enum:
              - asc
              - desc
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  items:
                    items:
                      $ref: '#/components/schemas/Trigger'
                    type: array
                  pagination:
                    $ref: '#/components/schemas/Pagination'
                required:
                  - items
                  - pagination
                type: object
          description: List triggers
      x-codeSamples:
        - lang: JavaScript
          source: |-
            import Mobilerun from '@mobilerun/sdk';

            const client = new Mobilerun({
              apiKey: process.env['MOBILERUN_CLOUD_API_KEY'], // This is the default and can be omitted
            });

            const triggers = await client.workflows.triggers.list();

            console.log(triggers.items);
        - lang: Python
          source: |-
            import os
            from mobilerun_sdk import Mobilerun

            client = Mobilerun(
                api_key=os.environ.get("MOBILERUN_CLOUD_API_KEY"),  # This is the default and can be omitted
            )
            triggers = client.workflows.triggers.list()
            print(triggers.items)
components:
  schemas:
    Trigger:
      properties:
        activation:
          enum:
            - event
            - schedule
            - custom
          type: string
        conditions: {}
        createdAt:
          format: date-time
          type:
            - string
            - 'null'
        createdBy:
          format: uuid
          type:
            - string
            - 'null'
        customPayloadSchema:
          additionalProperties: {}
          type:
            - object
            - 'null'
        description:
          type:
            - string
            - 'null'
        eventType:
          type:
            - string
            - 'null'
        id:
          format: uuid
          type: string
        name:
          type: string
        nextFireTime:
          type:
            - string
            - 'null'
        ownerId:
          format: uuid
          type: string
        scheduleRule:
          $ref: '#/components/schemas/ScheduleRule'
        timezone:
          type:
            - string
            - 'null'
        updatedAt:
          format: date-time
          type:
            - string
            - 'null'
        userId:
          deprecated: true
          description: 'Deprecated: use ownerId (tenancy) / createdBy (actor).'
          format: uuid
          type: string
      required:
        - id
        - userId
        - ownerId
        - createdBy
        - name
        - description
        - activation
        - scheduleRule
        - timezone
        - eventType
        - customPayloadSchema
        - createdAt
        - updatedAt
      type: object
    Pagination:
      properties:
        hasNext:
          type: boolean
        hasPrev:
          type: boolean
        page:
          minimum: 1
          type: integer
        pageSize:
          minimum: 1
          type: integer
        pages:
          minimum: 0
          type: integer
        total:
          minimum: 0
          type: integer
      required:
        - hasNext
        - hasPrev
        - page
        - pageSize
        - pages
        - total
      type: object
    ScheduleRule:
      properties:
        dateTime:
          description: ISO 8601 datetime (for type=once)
          type: string
        expression:
          description: Cron expression (for type=cron)
          type: string
        jitter:
          description: >-
            Optional per-occurrence random window around the nominal schedule
            time
          properties:
            afterMinutes:
              default: 0
              maximum: 1440
              minimum: 0
              type: integer
            beforeMinutes:
              default: 0
              maximum: 1440
              minimum: 0
              type: integer
          type: object
        rrule:
          description: RRULE string (for type=recurring)
          type: string
        type:
          enum:
            - once
            - cron
            - recurring
          type: string
      required:
        - type
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: Opaque
      description: Bearer token via Authorization header
      scheme: bearer
      type: http

````

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