---
updatedAt: 2026-09-09T03:53:23.000Z
agentTools:
  projectIndex: https://docs.vouchery.io/llms.txt
---

# Get all triggers for the project

Get all triggers.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "contact": {
      "email": "hello@vouchery.io"
    },
    "description": "Vouchery API",
    "license": {
      "name": "Commercial",
      "url": "https://www.vouchery.io"
    },
    "title": "Vouchery",
    "version": "dev-vouchery-go"
  },
  "paths": {
    "/api/v2.1/triggers": {
      "get": {
        "description": "Get all triggers.",
        "operationId": "getApiV21Triggers",
        "parameters": [
          {
            "description": "Filter results by related campaign ID",
            "in": "query",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Result page (indexed from 1), default 1",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Results per page, default 5",
            "in": "query",
            "name": "per_page",
            "required": false,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Array with objects",
            "headers": {
              "Page-Count": {
                "description": "Page count",
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "Total-Count": {
                "description": "Total object count",
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/responseTriggersListElement"
                  },
                  "type": "array"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/responseError_Example_Unauthorized"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/responseError_Example_Forbidden"
                }
              }
            }
          }
        },
        "security": [
          {
            "app_auth": [
              "admin",
              "reader"
            ]
          }
        ],
        "summary": "Get all triggers for the project",
        "tags": [
          "Triggers and events"
        ]
      }
    }
  },
  "tags": [
    {
      "description": "",
      "externalDocs": {
        "description": "",
        "url": "https://docs.vouchery.io"
      },
      "name": "Triggers and events"
    }
  ],
  "servers": [
    {
      "url": "https://admin.sandbox.vouchery.app"
    }
  ],
  "components": {
    "securitySchemes": {
      "app_auth": {
        "in": "header",
        "name": "Authorization",
        "type": "apiKey"
      }
    },
    "schemas": {
      "responseError_Example_Forbidden": {
        "properties": {
          "code": {
            "example": "forbidden",
            "type": "string"
          },
          "error": {
            "example": "true",
            "type": "boolean"
          },
          "message": {
            "example": "You are not permitted to access this resource",
            "type": "string"
          },
          "type": {
            "example": "Error",
            "type": "string"
          }
        },
        "required": [
          "message",
          "type",
          "code",
          "error"
        ],
        "type": "object"
      },
      "responseError_Example_Unauthorized": {
        "properties": {
          "code": {
            "example": "not_authorized",
            "type": "string"
          },
          "error": {
            "example": "true",
            "type": "boolean"
          },
          "message": {
            "example": "Not authorized",
            "type": "string"
          },
          "type": {
            "example": "Error",
            "type": "string"
          }
        },
        "required": [
          "code",
          "error",
          "message",
          "type"
        ],
        "type": "object"
      },
      "responseTriggersListElement": {
        "properties": {
          "active": {
            "type": "boolean"
          },
          "data": {
            "items": {
              "format": "int32",
              "type": "integer"
            },
            "type": "object"
          },
          "id": {
            "format": "int64",
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "rewards": {
            "items": {
              "$ref": "#/components/schemas/responseTriggersListElement_Reward"
            },
            "type": "array"
          },
          "trigger_type": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "data",
          "trigger_type",
          "name",
          "active",
          "rewards"
        ],
        "type": "object"
      },
      "responseTriggersListElement_Reward": {
        "properties": {
          "created_at": {
            "example": "2021-03-30T20:13:35.339398+01:00",
            "format": "date-time",
            "type": "string"
          },
          "data": {
            "description": "Reward configuration in JSON",
            "items": {
              "format": "int32",
              "type": "integer"
            },
            "type": "object"
          },
          "description": {
            "description": "Nullable. String or null.",
            "type": "string"
          },
          "id": {
            "format": "int64",
            "type": "integer"
          },
          "reward_type": {
            "type": "string"
          },
          "title": {
            "description": "Nullable. String or null.",
            "type": "string"
          },
          "updated_at": {
            "example": "2021-03-30T20:13:35.339398+01:00",
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "reward_type",
          "updated_at",
          "id",
          "created_at",
          "data"
        ],
        "type": "object"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```