---
title: "Fetches a list of available automation workflow conditions."
url: "https://earlyaccess.developers.bynder.com/apis/automation-workflow-api-1/versions/428d2b99-ec99-455a-8d22-c0d61a9bb810/operations/getConditions"
---

> Full API specification: https://earlyaccess.developers.bynder.com/apis/automation-workflow-api-1/versions/428d2b99-ec99-455a-8d22-c0d61a9bb810.md

# Fetches a list of available automation workflow conditions.

`GET` `/conditions`

Operation ID: `getConditions`

Fetches a list of available automation workflow conditions. Some conditions accept only specific predefined terms, which are included in the response for reference. <b>Note:</b> The `Archived` condition requires the `RelativeDate` trigger.

## Responses

- `200`
- `400`
- `401`

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: Automation Workflow API
  version: 1.0.0
servers:
  - url: https://{your-bynder-domain}/api/1/automation-workflow/
paths:
  /conditions:
    get:
      description: "

        Fetches a list of available automation workflow conditions.


        Some conditions accept only specific predefined terms, which are
        included in the response for reference.


        <b>Note:</b> The `Archived` condition requires the `RelativeDate`
        trigger.

        \        "
      operationId: getConditions
      responses:
        "200":
          content:
            application/json:
              example:
                conditions:
                  - name: AssetType
                    operators:
                      - CONTAINS
                      - DOES_NOT_CONTAIN
                    terms:
                      - asset_type: IMAGE
                      - asset_type: VIDEO
                      - asset_type: DOCUMENT
                      - asset_type: AUDIO
                      - asset_type: 3D
                  - name: MetapropertyOption
                    operators:
                      - CONTAINS
                      - DOES_NOT_CONTAIN
                      - IS_EMPTY
                      - HAS_VALUE
                      - EQUALS
                    terms:
                      - metaproperty_id: 00000000-0000-0000-0000-000000000000
                        metaproperty_option_id: 00000000-0000-0000-0000-000000000000
                  - name: Archived
                    operators:
                      - STARTS_IN
                    terms:
                      - offset_amount: 1
                        offset_unit: DAY
                      - offset_amount: 2
                        offset_unit: WEEKS
                      - offset_amount: 3
                        offset_unit: MONTHS
                max_conditions_count: 5
              schema:
                $ref: "#/components/schemas/AutomationWorkflowConditionsResponse"
          description: ""
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: ""
        "401":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorAuthorizationResponse"
          description: ""
      security:
        - {}
        - httpAuth: []
      summary: Fetches a list of available automation workflow conditions.
      tags:
        - Automation Workflow Conditions
security:
  - {}
  - httpAuth: []
components:
  schemas:
    AutomationWorkflowConditionsResponse:
      properties:
        conditions:
          items:
            $ref: "#/components/schemas/AutomationWorkflowCondition"
          type: array
        max_conditions_count:
          format: int32
          type: integer
      required:
        - max_conditions_count
      title: AutomationWorkflowConditionsResponse
      type: object
    ErrorResponse:
      properties:
        message:
          type: string
      required:
        - message
      title: ErrorResponse
      type: object
    ErrorAuthorizationResponse:
      properties:
        message:
          type: string
      required:
        - message
      title: ErrorAuthorizationResponse
      type: object
    AutomationWorkflowCondition:
      properties:
        name:
          type: string
        operators:
          items:
            type: string
          type: array
        terms:
          items:
            $ref: "#/components/schemas/Term"
          type: array
      required:
        - name
      title: AutomationWorkflowCondition
      type: object
    Term:
      oneOf:
        - $ref: "#/components/schemas/ArchiveTerm"
        - $ref: "#/components/schemas/AssetTypeTerm"
        - $ref: "#/components/schemas/MetapropertyOptionTerm"
      title: Term
    ArchiveTerm:
      properties:
        offset_amount:
          format: int32
          type: integer
        offset_unit:
          type: string
      required:
        - offset_amount
        - offset_unit
      title: ArchiveTerm
      type: object
    AssetTypeTerm:
      properties:
        asset_type:
          type: string
      required:
        - asset_type
      title: AssetTypeTerm
      type: object
    MetapropertyOptionTerm:
      properties:
        metaproperty_id:
          format: uuid
          type: string
        metaproperty_option_id:
          format: uuid
          type: string
      required:
        - metaproperty_id
      title: MetapropertyOptionTerm
      type: object
  securitySchemes:
    httpAuth:
      scheme: bearer
      type: http
```
