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

# Count Automations



## OpenAPI

````yaml post /automations/count
openapi: 3.1.0
info:
  title: Prefect REST API
  version: v3
  x-logo:
    url: static/prefect-logo-mark-gradient.png
servers: []
security: []
paths:
  /automations/count:
    post:
      tags:
        - Automations
      summary: Count Automations
      operationId: count_automations_automations_count_post
      parameters:
        - name: x-prefect-api-version
          in: header
          required: false
          schema:
            type: string
            title: X-Prefect-Api-Version
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/Body_count_automations_automations_count_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: integer
                title: Response Count Automations Automations Count Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Body_count_automations_automations_count_post:
      properties:
        automations:
          anyOf:
            - $ref: '#/components/schemas/AutomationFilter'
            - type: 'null'
      type: object
      title: Body_count_automations_automations_count_post
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AutomationFilter:
      properties:
        operator:
          $ref: '#/components/schemas/Operator'
          description: Operator for combining filter criteria. Defaults to 'and_'.
          default: and_
        id:
          anyOf:
            - $ref: '#/components/schemas/AutomationFilterId'
            - type: 'null'
          description: Filter criteria for `Automation.id`
        name:
          anyOf:
            - $ref: '#/components/schemas/AutomationFilterName'
            - type: 'null'
          description: Filter criteria for `Automation.name`
        created:
          anyOf:
            - $ref: '#/components/schemas/AutomationFilterCreated'
            - type: 'null'
          description: Filter criteria for `Automation.created`
        tags:
          anyOf:
            - $ref: '#/components/schemas/AutomationFilterTags'
            - type: 'null'
          description: Filter criteria for `Automation.tags`
      additionalProperties: false
      type: object
      title: AutomationFilter
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    Operator:
      type: string
      enum:
        - and_
        - or_
      title: Operator
      description: Operators for combining filter criteria.
    AutomationFilterId:
      properties:
        any_:
          anyOf:
            - items:
                type: string
                format: uuid
              type: array
            - type: 'null'
          title: Any
          description: A list of automation ids to include
      additionalProperties: false
      type: object
      title: AutomationFilterId
      description: Filter by `Automation.id`.
    AutomationFilterName:
      properties:
        any_:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Any
          description: Only include automations with names that match any of these strings
      additionalProperties: false
      type: object
      title: AutomationFilterName
      description: Filter by `Automation.created`.
    AutomationFilterCreated:
      properties:
        before_:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Before
          description: Only include automations created before this datetime
      additionalProperties: false
      type: object
      title: AutomationFilterCreated
      description: Filter by `Automation.created`.
    AutomationFilterTags:
      properties:
        operator:
          $ref: '#/components/schemas/Operator'
          description: Operator for combining filter criteria. Defaults to 'and_'.
          default: and_
        all_:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: All
          description: >-
            A list of tags. Automations will be returned only if their tags are
            a superset of the list
          examples:
            - - tag-1
              - tag-2
        any_:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Any
          description: >-
            A list of tags. Automations will be returned if their tags contain
            any of the tags in the list
          examples:
            - - tag-1
              - tag-2
        is_null_:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Null
          description: If true, only include automations without tags
      additionalProperties: false
      type: object
      title: AutomationFilterTags
      description: Filter by `Automation.tags`.

````