Skip to main content
GET
/
v0
/
sourceRules
List Rules
curl --request GET \
  --url https://api.paygentic.io/v0/sourceRules \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "rule_123456",
      "conditions": [
        {
          "operator": "domain",
          "type": "customerEmail",
          "value": "@trusted.com"
        }
      ],
      "createdAt": "2024-03-01T10:00:00Z",
      "createdBy": "usr_platform",
      "description": "Automatically approve events from customers with @trusted.com email domain",
      "enabled": true,
      "evaluationCount": 150,
      "lastEvaluatedAt": "2024-03-10T14:30:00Z",
      "matchCount": 45,
      "name": "Auto-approve trusted customers",
      "order": 0,
      "sourceId": "src_x3y4z5a6b7c8d9e0",
      "updatedAt": "2024-03-01T10:00:00Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key authentication

Query Parameters

sourceId
string
required

Filter rules by source ID

Response

List of rules

data
object[]