---
title: "Create a Rule"
method: POST
path: "/v1/triggers"
---

# Create a Rule

`POST /v1/triggers`

Creates a new Rule.

## Headers

- `Organization-Id` string, required

## Request body

- object
  - `workflow_id` string, required — The ID of the workflow that you want to attach, the value will be `flow-xxxx`
  - `condition` string, json, required — The JSON object that triggers the workflow.

## Response `200`

Successful response

---

[API](https://skmtc.net/paymongo/apis/paymongo-api.md) · [All operations](https://skmtc.net/paymongo/apis/paymongo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/paymongo/paymongo-api/versions/c18f9a027b2c/schema)
