Skip to content

Bot mitigation API Since v0.1 ​

For the keys, see Bot mitigation policy.

For the base URL, sign-in, roles and error format, see Management API. Except sign-in, a route answers 401 without credentials and 403 when the role is too low.

Routes ​

Application bot settings ​

MethodPathMinimum roleWhat it doesMain fields
GET/v1/apps/{name}/botsviewerReturns the bot settings of an application.Returns the current values with base_version.
PUT/v1/apps/{name}/botsoperatorChanges the bot settings.Body: set (key to value; empty string resets the key), base_version (required), comment, dry_run.
GET/v1/apps/{name}/bots/lists/{list}viewerReturns one bot list of an application.Returns the current values with base_version.
PUT/v1/apps/{name}/bots/lists/{list}operatorReplaces one bot list.Body: items (the whole list; [] removes it), base_version, comment, dry_run.
PUT/v1/apps/{name}/bots/pages/{kind}operatorSets a bot challenge page.Body: set (key to value; empty string resets the key), base_version (required), comment, dry_run.
GET/v1/apps/{name}/bots/fingerprintsviewerLists client fingerprints seen.none
GET/v1/apps/{name}/bots/challenge-keysviewerReturns the challenge key status (not the keys).none
POST/v1/apps/{name}/bots/challenge-keys/rotateoperatorRotates the challenge key.none
GET/v1/apps/{name}/bots/captchaviewerReturns CAPTCHA settings (secrets are not returned).none
PUT/v1/apps/{name}/bots/captchaoperatorSets the CAPTCHA secret.Body: secret, base_version, comment.
POST/v1/apps/{name}/bots/captcha/testoperatorTests the CAPTCHA provider configuration.none
GET/v1/apps/{name}/bots/loginsviewerLists login attempts on watched endpoints.none
GET/v1/apps/{name}/bots/clientsviewerLists bot clients seen with their verdicts.none
POST/v1/apps/{name}/bots/clients/trustoperatorMarks a client as trusted.Body: client, base_version, comment, dry_run.

Catalog, agents and lists ​

MethodPathMinimum roleWhat it doesMain fields
GET/v1/bots/catalogviewerReturns the bot catalog.none
POST/v1/bots/classifyviewerClassifies a sample request against the catalog.Body: user_agent, ip, app. Response: the matched bot and range result.
GET/v1/bots/agentsviewerLists AI-agent definitions.none
POST/v1/bots/agentsoperator, all applicationsAdds an agent definition.Body: agent, base_version, comment, dry_run.
DELETE/v1/bots/agents/{name}operator, all applicationsRemoves an agent definition.none
GET/v1/bot-listsviewerLists downloadable bot lists.none
PUT/v1/bot-listsoperator, all applicationsReplaces the bot list definitions.Body: items (the whole list; [] removes it), base_version, comment, dry_run.
POST/v1/bot-lists/{name}/refreshoperator, all applicationsDownloads a bot list now.none

Example ​

sh
curl -sk -H "Authorization: Bearer waap_EXAMPLE" https://127.0.0.1:9443/v1/apps/shop/bots/clients