Get a source rule

GET
/v1/source-rules/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

Create a key under Account → API. Send it as Authorization: Bearer st_live_…. Keys carry scopes: checks:write (create, cancel, delete; add, change and delete source rules), checks:read (list, get; list source rules) and usage:read (credit position).

In: header

Path Parameters

id*string

The rule id (sr_…) from the list.

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/source-rules/string"
{  "rule": {    "id": "sr_k3j9x2m8q1w5",    "mode": "exclude",    "kind": "domain",    "value": "example.com"  }}