List source rules

GET
/v1/source-rules

The account's source rules, each with the id to change or delete it by. A source rule names web sources a plagiarism check may or may not cite. mode is exclude (drop matching sources) or include (once any include rule exists, ONLY sources matching one are kept; excludes still apply on top, so exclude wins when both match). kind is domain (the root and every subdomain: example.com), hostname (one exact host: blog.example.com), url (everything beginning with the address: example.com/essays) or pattern (robots.txt-style: * matches any run of characters and a trailing $ anchors the end: *.example.com/essays/*). Values are stored lowercased without scheme or www.; a value that could match nothing (a path in a domain rule, a pattern shorter than three literal characters) is refused as invalid_source_rule. The list is the account's: the same rules the app's Settings page edits, applied to every check the account runs. A single check may add its own with sourceRules on POST /v1/checks.

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

Response Body

application/json

curl -X GET "https://example.com/v1/source-rules"
{  "rules": [    {      "id": "sr_k3j9x2m8q1w5",      "mode": "exclude",      "kind": "domain",      "value": "example.com"    }  ],  "count": 0,  "limits": {    "maxRules": 0,    "maxValueLength": 0  }}

Capabilities and price schedule GET

What the API can do and what it charges, live: the credit meter (`credits`: per started `wordsPerCredit` words a check costs `passes.base` plus the rate of each pass that is on; `styleEnabled` says whether the style pass runs at all), the document limits and accepted file types and languages, the vocabulary `options` accepts, the source-rule limits, and the per-key rate limits. No key needed; cache it for a few minutes.

Add a source rule POST

Add one rule. A rule that already exists (same mode, kind and value) is answered as 200 with the existing rule rather than duplicated; a new rule is 201. Past the limit the answer is 422 `rule_limit_reached`. A source rule names web sources a plagiarism check may or may not cite. `mode` is `exclude` (drop matching sources) or `include` (once any include rule exists, ONLY sources matching one are kept; excludes still apply on top, so exclude wins when both match). `kind` is `domain` (the root and every subdomain: `example.com`), `hostname` (one exact host: `blog.example.com`), `url` (everything beginning with the address: `example.com/essays`) or `pattern` (robots.txt-style: `*` matches any run of characters and a trailing `$` anchors the end: `*.example.com/essays/*`). Values are stored lowercased without scheme or `www.`; a value that could match nothing (a path in a domain rule, a pattern shorter than three literal characters) is refused as `invalid_source_rule`. The list is the account's: the same rules the app's Settings page edits, applied to every check the account runs. A single check may add its own with `sourceRules` on POST /v1/checks.