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

# List team automations



## OpenAPI

````yaml /openapi/v1.json get /teams/{teamSlug}/automations
openapi: 3.1.0
info:
  title: Felan API
  description: >-
    Team-scoped access to Felan sessions, integrations, environments,
    environment variables, automations, and inbound events.
  version: 1.0.0
  contact:
    name: Felan Support
    url: https://felan.ai
servers:
  - url: https://app.felan.ai/api/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Teams
  - name: Integrations
  - name: Environments
  - name: Environment Variables
  - name: Automations
  - name: Sessions
  - name: Events
  - name: OpenAPI
paths:
  /teams/{teamSlug}/automations:
    get:
      tags:
        - Automations
      summary: List team automations
      operationId: listTeamAutomations
      parameters:
        - $ref: '#/components/parameters/TeamSlug'
      responses:
        '200':
          description: Team automations
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Automation'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    TeamSlug:
      name: teamSlug
      in: path
      required: true
      description: Felan team slug shown in dashboard URLs and Team Settings
      schema:
        type: string
        minLength: 1
  schemas:
    Automation:
      type: object
      required:
        - id
        - team_id
        - automation_type
        - status
        - name
        - prompt
        - timezone
        - total_runs
        - repo_filters
        - created_at
        - updated_at
        - triggers
      properties:
        id:
          type: string
          format: uuid
        automation_id:
          type:
            - string
            - 'null'
          format: uuid
        team_id:
          type: string
          format: uuid
        automation_type:
          type: string
          enum:
            - schedule
            - event
        status:
          type: string
          enum:
            - active
            - paused
            - disabled
        name:
          type: string
        prompt:
          type: string
        environment_id:
          type:
            - string
            - 'null'
          format: uuid
        cron_expression:
          type:
            - string
            - 'null'
        timezone:
          type: string
        next_run_at:
          type:
            - string
            - 'null'
          format: date-time
        last_run_at:
          type:
            - string
            - 'null'
          format: date-time
        total_runs:
          type: integer
        event_provider:
          type:
            - string
            - 'null'
        event_type:
          type:
            - string
            - 'null'
        event_type_id:
          type:
            - string
            - 'null'
          format: uuid
        event_filter:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/EventFilter'
        repo_filters:
          type: object
          additionalProperties: true
        lease_until:
          type:
            - string
            - 'null'
          format: date-time
        lease_owner:
          type:
            - string
            - 'null'
        last_error:
          type:
            - string
            - 'null'
        last_error_at:
          type:
            - string
            - 'null'
          format: date-time
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        triggers:
          type: array
          items:
            $ref: '#/components/schemas/AutomationTrigger'
    EventFilter:
      type: object
      required:
        - jsonPath
        - operator
      properties:
        jsonPath:
          type: string
          example: $.data.ref
        operator:
          type: string
          enum:
            - equals
            - contains
            - regex
            - exists
        value:
          type:
            - string
            - number
            - boolean
    AutomationTrigger:
      oneOf:
        - $ref: '#/components/schemas/ScheduleTrigger'
        - $ref: '#/components/schemas/EventTrigger'
      discriminator:
        propertyName: kind
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              examples:
                - VALIDATION_ERROR
                - UNAUTHORIZED
                - NOT_FOUND
                - EXECUTION_DENIED
                - CONFLICT
                - RATE_LIMITED
                - SESSION_START_FAILED
                - SESSION_PUBLISH_FAILED
                - MESSAGE_PUBLISH_FAILED
                - INTERNAL_ERROR
            message:
              type: string
    ScheduleTrigger:
      type: object
      required:
        - id
        - kind
        - status
        - cron_expression
        - timezone
        - total_runs
      properties:
        id:
          type: string
          format: uuid
        automation_id:
          type:
            - string
            - 'null'
          format: uuid
        kind:
          type: string
          const: schedule
        status:
          type: string
          enum:
            - active
            - paused
            - disabled
        cron_expression:
          type: string
        timezone:
          type: string
        next_run_at:
          type:
            - string
            - 'null'
          format: date-time
        last_run_at:
          type:
            - string
            - 'null'
          format: date-time
        total_runs:
          type: integer
        lease_until:
          type:
            - string
            - 'null'
          format: date-time
        lease_owner:
          type:
            - string
            - 'null'
    EventTrigger:
      type: object
      required:
        - id
        - kind
        - status
        - total_runs
      properties:
        id:
          type: string
          format: uuid
        automation_id:
          type:
            - string
            - 'null'
          format: uuid
        kind:
          type: string
          const: event
        status:
          type: string
          enum:
            - active
            - paused
            - disabled
        event_provider:
          type:
            - string
            - 'null'
        event_type:
          type:
            - string
            - 'null'
        event_type_id:
          type:
            - string
            - 'null'
          format: uuid
        event_filter:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/EventFilter'
        last_run_at:
          type:
            - string
            - 'null'
          format: date-time
        total_runs:
          type: integer
  responses:
    Unauthorized:
      description: Missing or invalid team API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource missing or outside the authenticated team
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Team API key rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalError:
      description: The server could not complete the request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Team API key. Current keys retain the bzy_team_ compatibility prefix.

````