Skip to navigation Skip to main content

Trick-or-Treat Sale 30% off every Pro plan with code

Ends Oct 31 Pick your treatShop

Trick-or-Treat Sale 30% off every Pro plan with code

Ends Oct 31 Pick your treatShop
  • WordPress
    Products
    Smart Cycle DiscountsDiscount automation › TrustLensCustomer trust intel › Cycle AI AIPlain-English campaigns ›
    New pluginComing soon
    Resources & toolsDocs, pricing, support ›
    Smart Cycle Discounts

    Smart Cycle Discounts

    Automate WooCommerce discount campaigns — schedule, target, and measure.

    62%
    Free Pro $59 5 discount types Recurring
    Jump into the page
    How it works Capabilities Promo codes Pricing
    Docs
    Getting started Discount types Scheduling
    Explore Smart Cycle Discounts → Changelog
    TrustLens

    TrustLens

    Customer trust intelligence — score buyers, spot abuse, protect revenue.

    Trust 86
    Free Pro $79 6 segments Abuse detection
    Jump into the page
    How it works Detection Outcomes Pricing
    Docs
    Trust scoring Detection modules Card-testing defense
    Explore TrustLens → Verify a report Changelog

    Cycle AI inside Smart Cycle Discounts

    Describe a sale in plain English — Cycle AI builds the whole campaign.

    “20% off hoodies this weekend”
    Included in Pro Natural language Catalog-aware
    See it work

    Type a sentence, get a ready-to-launch discount campaign that already understands your products, prices, and schedule.

    Live demo How it works
    Meet Cycle AI →

    A new plugin Coming soon

    Something is loading in the lab. Join the list to get the reveal first.

    Notify me on launch →

    Resources & tools

    Everything around the plugins — docs, free tools, and help.

    Learn
    Documentation Pricing & bundle Support
    Free tools
    Discount Calculator Sale Calendar
    Stay current
    SCD changelog TrustLens changelog
    Compare all plans →
    Secure checkout WordPress.org 14-day refund View pricing →
  • Affiliate
    Program
    OverviewHow the program works How it works4 steps from apply to earn Commission details30% · 60-day cookie · recurring
    Get started
    Apply nowOpen Takes ~2 minutes Earnings calculatorEstimate your monthly income FAQPayouts, cookies, renewals
    Resources
    Brand kitLogos, banners, copy, social PlaybookTactics that actually convert FTC disclosureHow to disclose properly Affiliate termsFull program agreement Contact teamOpen the contact form
    Earn 30% recurring on every saleFree to join · 60-day cookie · monthly PayPal payouts Apply now
  • Blog
  • DOCS
    Docs & resources

    Guides, references, and answers for every Webstepper plugin.

    Smart Cycle DiscountsAutomated WooCommerce discount campaigns
    Getting started› Discount types› Cycle AI›
    TrustLensCustomer trust & fraud intelligence
    Trust scoring› Detection modules› Card-testing defense›
    Docs home Guides FAQ Pricing Support
    WordPress tools that solve real problems
  • Contact Us
  • About
    Company

    Our Story

    Founded 2020

    Built by store owners, for store owners. We make WordPress tools that solve real problems.

    Learn more
    Built from experienceTools we use ourselves
    Time is preciousSimple, intuitive UX
    Real supportTalk to the founders
    Legal & contact
    Contact us Privacy policy Terms of service Refund policy
    14-day money-backNo questions asked
Popular requests
  • smart cycle discounts
  • trustlens
  • chargeback protection
GET STARTED

Glossary

1
  • TrustLens Glossary

Detection Modules

10
  • Store Trust Network
  • Card Testing Defense
  • Chargeback Tracking
  • Shipping Anomalies
  • Linked Accounts Detection
  • Category Aware Risk
  • Coupon Abuse Detection
  • Order Pattern Analysis
  • Return Abuse Detection
  • Modules Overview

Card Testing Defense

9
  • Attack History
  • Allowlists
  • Geo Diversity
  • Auto Escalation
  • Fingerprinting
  • VIP Bypass
  • Panic Button
  • Velocity Thresholds
  • Overview

Chargeback Monitor

7
  • Ratio Email Alerts
  • Dispute Evidence Report
  • Chargeback Monitor
  • Manual Dispute Entry
  • Stripe WooPayments Ingestion
  • Card Network Thresholds
  • Chargeback Ratio Alert

Customer Management

7
  • Admin Notes
  • Checkout Enforcement
  • Order Trust Column
  • Bulk Actions
  • Blocking and Allowlisting
  • Customer Detail Profile
  • Customer List

Automation

7
  • Async Dispatch Retries
  • Webhooks and HMAC
  • Rule Inspector
  • Actions Reference
  • Conditions Reference
  • Triggers Reference
  • Automation Overview

Trust Scoring

5
  • Account Age Loyalty Bonus
  • Signals Explained
  • Six Customer Segments
  • The 0–100 Score
  • How Trust Scoring Works
View Categories
  • Home
  • Docs
  • Trustlens
  • Setting Configuration
  • API and Webhooks

API and Webhooks

4 min read

0:00 / 6:05
  • View as Markdown Open this page as plain Markdown (opens in a new tab)
  • Open in ChatGPT Ask questions about this page (opens in a new tab)
  • Open in Claude Ask questions about this page (opens in a new tab)
  • Open in Google AI Studio Ask questions about this page (Google account required) (opens in a new tab)

The Integrations settings tab configures TrustLens’s REST API access and outgoing webhook delivery. The REST API exposes customer scores, events, and segment data for integration with external systems. Outgoing webhooks let TrustLens push events to your CRM, helpdesk, or custom internal tools. This page covers settings on the tab; for the full API surface, see the developer documentation.

Location: TrustLens → Settings → Integrations → REST API (and Integrations → Webhooks).


REST API Access #

Availability #

The REST API is always available, in Free and Pro; there is no on/off switch. Every endpoint requires authentication, so nothing is exposed until you give a client credentials.

Authentication Methods #

TrustLens accepts two authentication mechanisms:

  1. WordPress user authentication. Any authenticated user with the manage_woocommerce capability. Commonly implemented via WordPress application passwords in HTTP Basic Auth.
  2. TrustLens API Key. A static key sent in the X-TrustLens-API-Key header. The key is stored as a SHA-256 hash in the trustlens_api_key option and compared with timing-safe hash_equals().

Generate the key with Generate API Key on the REST API section, and replace it with Regenerate (the old key stops working). Copy the key when it’s generated — afterwards the page only confirms that a key is set. The section also shows the base URL for all requests.


Rate Limiting #

The plugin does not enforce application-level rate limits on REST API requests. If you need rate limiting for your deployment, apply it at the web server (nginx, Apache), reverse proxy (Cloudflare, CDN), or WAF layer.

This is a deliberate design choice — rate limiting at the application layer is duplicative with infrastructure-level controls that most production WordPress deployments already have, and it adds latency to every request.


Endpoints Available #

The 8 REST endpoints (all under /wp-json/trustlens/v1/):

Endpoint Method Description
/customers GET List customers (query: segment, blocked, per_page, page, orderby, order)
/customers/lookup GET Look up a customer by raw email
/customers/{hash} GET Get full customer record
/customers/{hash} POST/PUT/PATCH Update block and allowlist state (is_blocked, is_allowlisted)
/customers/{hash}/events GET List events from the customer timeline
/customers/{hash}/recalculate POST Trigger immediate score recalculation
/stats GET Store-wide aggregate statistics
/stats/segments GET Segment distribution counts

All endpoints require authentication. There are no separate /block, /allowlist, or /disputes endpoints — block and allowlist state are set via PATCH on the customer record, and dispute data is exposed via the customer record’s stat columns and events. Admin notes and tags can’t be changed through the API.

See REST API Reference for full request/response schemas.


Outgoing Webhook Settings (Pro) #

Enable Webhooks #

Default: Off

Master switch for the webhooks configured on this tab. Automation rules with a Send Webhook action are separate and don’t depend on it.

Webhook Endpoints #

Add as many endpoints as you need with Add Webhook Endpoint. Each has:

  • Endpoint URL — events are delivered here as a JSON POST request
  • Signing secret (optional) — if set, every payload is signed with HMAC-SHA256 in the X-TrustLens-Signature header; leave blank to skip signing
  • Endpoint is active — on/off per endpoint

The endpoints table shows each URL (with a lock icon when it’s signed), its events, and Test and Delete buttons.

Delivery #

Settings webhooks are sent once, without waiting for the response (non-blocking, 15-second timeout) and without retries. Each request carries X-TrustLens-Event, X-TrustLens-Delivery, X-TrustLens-Webhook-ID, and X-TrustLens-Timestamp headers; the signature covers the timestamp and the body.

Automation Send Webhook actions work differently: they are always signed (with an auto-generated per-install secret), wait up to 10 seconds for a 2xx response, and retry 3 times with 60/120/240 second backoff. See Async Dispatch & Retries for the full retry model.


Webhook Event Subscription (Pro) #

Under Events to Send, choose which events the Settings webhooks deliver. The subscribable events are:

  • score_updated — a customer’s trust score was recalculated
  • customer_blocked — a customer was blocked
  • customer_unblocked — a block was removed
  • customer_allowlisted — a customer was allowlisted
  • customer_allowlist_removed — an allowlist entry was removed
  • checkout_blocked — a checkout was blocked by enforcement
  • high_risk_order — an order was placed by a high-risk customer
  • automation_triggered — a Pro automation rule fired

The defaults are score_updated, customer_blocked, checkout_blocked, and high_risk_order. The selection applies to all endpoints.


Custom Headers #

There is no setting for custom HTTP headers. If a receiver needs its own authentication token, put it in the endpoint URL (for example as a query parameter your receiver checks) or verify the HMAC signature instead.


Testing #

Test Webhook #

The Test button on an endpoint sends a synthetic test event to that endpoint (signed if it has a secret) and reports whether it answered successfully. Useful for verifying the receiver is reachable, the secret is correct, and the payload format is what you expect.

Testing the API #

The REST API section shows the available endpoints, an example request, and an example response. There is no in-page request tool; use curl or an API client with your key to verify authentication before pointing a real integration at it.


API Logs #

TrustLens doesn’t log REST API requests. Use your web server’s access log if you need a record of API traffic.


Webhook Logs #

The Recent Webhook Deliveries table lists recent Settings webhook sends — event, endpoint, and time — and keeps the most recent 1,000. Because delivery doesn’t wait for a response, the log records that a delivery was sent, not whether the receiver accepted it. Automation webhook results appear in the automation log. See Webhooks and HMAC for the receiver-side implementation.


Security Considerations #

  • API access is admin-level. The API key grants full access to every TrustLens endpoint, and there are no scoped keys. Don’t expose it to untrusted parties; regenerate it if it leaks.
  • Use HTTPS webhook URLs. Webhook bodies contain customer data — email addresses, scores, and order details — and the signing secret is only as safe as the channel.
  • Signing secrets are stored in the database as entered. Treat database access and backups accordingly; only the API key is stored hashed.
  • Rate limits belong at your infrastructure layer. TrustLens doesn’t rate-limit API requests.

Common Integration Patterns #

  • Read customer score from CRM: CRM pulls /customers/{hash} when displaying a customer record
  • Sync customer state to data warehouse: Subscribe to score_updated webhooks; insert into warehouse table
  • Help desk integration: Helpdesk app calls /customers/lookup with the customer’s email when an agent opens a ticket
  • Custom fraud rule engine: External service consumes TrustLens webhooks, applies its own logic, then PATCHes /customers/{hash} with is_blocked: true if needed
Updated on October 18, 2026

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Data and PrivacyReports Settings
Table of Contents
  • REST API Access
    • Availability
    • Authentication Methods
  • Rate Limiting
  • Endpoints Available
  • Outgoing Webhook Settings (Pro)
    • Enable Webhooks
    • Webhook Endpoints
    • Delivery
  • Webhook Event Subscription (Pro)
  • Custom Headers
  • Testing
    • Test Webhook
    • Testing the API
  • API Logs
  • Webhook Logs
  • Security Considerations
  • Common Integration Patterns
Newsletter

Insights that grow your business

Join thousands of WooCommerce store owners who get actionable tips, plugin updates, and industry news every week — plus 10% off either of our plugins as a welcome.

We respect your privacy. Unsubscribe at any time.

10% off welcome gift — A code for either plugin, on us
Weekly updates — Fresh content every Tuesday
Exclusive content — Tips you won't find on our blog
Early access — Be first to know about new plugins
Webstepper
Weekly WooCommerce Tips
Just now
This week: 5 proven strategies to boost your average order value using smart discount campaigns...
10% off inside
Webstepper

Tools for store owners who'd rather grow than grind.

Simple, powerful plugins that help WooCommerce store owners sell more — without the learning curve.

Products

  • Smart Cycle Discounts
  • TrustLens
  • Discount Calculator
  • Sale Calendar

Company

  • About Us
  • Blog
  • Contact
  • Affiliates
  • Log In

Resources

  • Help Center
  • Guides
  • Verify a report
  • Affiliate Program
  • Become a Partner

Questions? We actually answer.

Real humans, real help. No bots, no runaround. Usually within a few hours.

Get in touch
Operated by Setmood LLC · 7901 4th St N, St Petersburg, FL 33702 · United States

© 2026 Webstepper. All rights reserved.

Privacy Terms Refunds
Visa Mastercard PayPal Apple Pay Google Pay & more

Halloween sale · ends Oct 31

Trick or treat?

Pick a door. Either way you leave with 30% off Pro.

Your treat

30% off

--days --hrs --min --sec
Claim it

Paste the code at checkout.

Renewals keep the discount · 14-day money-back guarantee

Halloween sale

That's a wrap for Halloween.

The sale ended at midnight. Both plugins are still free on WordPress.org, and Pro plans start at $59/year.

See plans
  • WordPress
    Back
    Products
    Smart Cycle DiscountsDiscount automation › TrustLensCustomer trust intel › Cycle AI AIPlain-English campaigns ›
    New pluginComing soon
    Resources & toolsDocs, pricing, support ›
    Smart Cycle Discounts

    Smart Cycle Discounts

    Automate WooCommerce discount campaigns — schedule, target, and measure.

    62%
    Free Pro $59 5 discount types Recurring
    Jump into the page
    How it works Capabilities Promo codes Pricing
    Docs
    Getting started Discount types Scheduling
    Explore Smart Cycle Discounts → Changelog
    TrustLens

    TrustLens

    Customer trust intelligence — score buyers, spot abuse, protect revenue.

    Trust 86
    Free Pro $79 6 segments Abuse detection
    Jump into the page
    How it works Detection Outcomes Pricing
    Docs
    Trust scoring Detection modules Card-testing defense
    Explore TrustLens → Verify a report Changelog

    Cycle AI inside Smart Cycle Discounts

    Describe a sale in plain English — Cycle AI builds the whole campaign.

    “20% off hoodies this weekend”
    Included in Pro Natural language Catalog-aware
    See it work

    Type a sentence, get a ready-to-launch discount campaign that already understands your products, prices, and schedule.

    Live demo How it works
    Meet Cycle AI →

    A new plugin Coming soon

    Something is loading in the lab. Join the list to get the reveal first.

    Notify me on launch →

    Resources & tools

    Everything around the plugins — docs, free tools, and help.

    Learn
    Documentation Pricing & bundle Support
    Free tools
    Discount Calculator Sale Calendar
    Stay current
    SCD changelog TrustLens changelog
    Compare all plans →
    Secure checkout WordPress.org 14-day refund View pricing →
  • Affiliate
    Back
    Program
    OverviewHow the program works How it works4 steps from apply to earn Commission details30% · 60-day cookie · recurring
    Get started
    Apply nowOpen Takes ~2 minutes Earnings calculatorEstimate your monthly income FAQPayouts, cookies, renewals
    Resources
    Brand kitLogos, banners, copy, social PlaybookTactics that actually convert FTC disclosureHow to disclose properly Affiliate termsFull program agreement Contact teamOpen the contact form
    Earn 30% recurring on every saleFree to join · 60-day cookie · monthly PayPal payouts Apply now
  • Blog
  • DOCS
    Back
    Docs & resources

    Guides, references, and answers for every Webstepper plugin.

    Smart Cycle DiscountsAutomated WooCommerce discount campaigns
    Getting started› Discount types› Cycle AI›
    TrustLensCustomer trust & fraud intelligence
    Trust scoring› Detection modules› Card-testing defense›
    Docs home Guides FAQ Pricing Support
    WordPress tools that solve real problems
  • Contact Us
  • About
    Back
    Company

    Our Story

    Founded 2020

    Built by store owners, for store owners. We make WordPress tools that solve real problems.

    Learn more
    Built from experienceTools we use ourselves
    Time is preciousSimple, intuitive UX
    Real supportTalk to the founders
    Legal & contact
    Contact us Privacy policy Terms of service Refund policy
    14-day money-backNo questions asked
We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies.
More info More info Accept