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

# Project triggers

> Cron and "assets added" triggers of every workflow.



## OpenAPI

````yaml /api-reference/openapi.json get /api/projects/{id}/triggers
openapi: 3.0.0
info:
  title: Open Attack Surface Management
  description: Open-source platform for cybersecurity Attack Surface Management (ASM)
  version: '1.0'
  contact: {}
servers:
  - url: https://{baseUrl}/api/v1
    variables:
      baseUrl:
        default: localhost:3000
        description: API server hostname with port (e.g. localhost:3000, api.example.com)
security: []
tags: []
externalDocs:
  description: Authentication Docs
  url: auth/docs
paths:
  /api/projects/{id}/triggers:
    get:
      tags:
        - Projects
      summary: Project triggers
      description: Cron and "assets added" triggers of every workflow.
      operationId: ProjectsController_getTriggers
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
        - name: X-Workspace-Id
          in: header
          description: Workspace ID
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/AppResponseSerialization'
                type: array
                items:
                  $ref: '#/components/schemas/ProjectWorkflowTrigger'
components:
  schemas:
    AppResponseSerialization:
      type: object
      properties: {}
    ProjectWorkflowTrigger:
      type: object
      properties:
        id:
          type: string
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
        projectWorkflowId:
          type: string
        type:
          allOf:
            - $ref: '#/components/schemas/ProjectTriggerType'
        cron:
          type: string
          nullable: true
        config:
          $ref: '#/components/schemas/AssetsAddedTriggerConfig'
        enabled:
          type: boolean
        lastFiredAt:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - createdAt
        - updatedAt
        - projectWorkflowId
        - type
        - config
        - enabled
    ProjectTriggerType:
      type: string
      enum:
        - cron
        - assets_added
    AssetsAddedTriggerConfig:
      type: object
      properties:
        windowMinutes:
          type: number
          minimum: 0
          maximum: 1440
        maxAssets:
          type: number
          minimum: 1
          maximum: 5000
        targetTypes:
          type: array
          items:
            type: string

````

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