Akismet WordPress Plugin REST API Endpoints
These are the API endpoints registered by Akismet, all under the akismet/v1 namespace.
key
Send a GET request to retrieve the current key.
Send a POST request (with a key parameter) to change the key.
Send a DELETE request to unset the key.
Users must have the manage_options capability to interact with this endpoint.
settings
Send a GET request to retrieve the current settings values.
Send a POST request (with any of the boolean parameters akismet_strictness orakismetshowusercommentsapproved`) to change the settings values.
Users must have the manage_options capability to interact with this endpoint.
stats
Send a GET request to retrieve historical Akismet stats.
An interval parameter can be sent to control the period for which stats are returned. The options are 60-days, 6-months, and all. all is the default value.
The interval parameter can also be included in the URL by calling the endpoint akismet/v1/stats/[interval]. For example, akismet/v1/stats/6-months.
Users must have the manage_options capability to interact with this endpoint.
