Checkpoint Docs
Integrations

Shopify Integration

Detect AI agents on your Shopify store with the Checkpoint Shopify app

Overview

The Checkpoint Shopify integration lets you detect and monitor AI agent traffic on your Shopify store. Once connected, Checkpoint tracks agent sessions, calculates threat levels, and provides stats through both the dashboard and API.

Connecting Your Store

The Shopify integration uses OAuth to connect your store to a Checkpoint project:

  1. Start the connection flow from the Checkpoint dashboard or the Shopify App Store
  2. Authorize Checkpoint to access your Shopify store
  3. Checkpoint provisions a project linked to your store automatically

The OAuth callback at /api/internal/shopify/callback handles token exchange and project provisioning.

Each Shopify store is linked to a Checkpoint project. The integration provisions the project automatically during the OAuth flow.

Project Configuration

Once connected, you can configure detection settings for your Shopify project via API:

# Get project details
curl https://kya.vouched.id/api/v1/shopify/projects/{projectId} \
  -H "X-API-Key: $CHECKPOINT_API_KEY"

Updating Settings

curl -X PATCH https://kya.vouched.id/api/v1/shopify/projects/{projectId} \
  -H "X-API-Key: $CHECKPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "settings": {
      "blockOnHighConfidence": true,
      "confidenceThreshold": 0.8
    }
  }'

Updates require an API key with write permission. The fields you send are merged into the project's existing settings — include only what you want to change. All fields are optional:

FieldTypeDefaultDescription
blockOnHighConfidencebooleanfalseBlock detected agents whose confidence meets the threshold
confidenceThresholdnumber0.8Confidence required to trigger blocking (0.01.0)
enableSessionTrackingbooleantrueTrack agent sessions across requests
enableWasmbooleantrueUse the WASM detection engine

Stats and Monitoring

Retrieve detection statistics for your Shopify store:

curl https://kya.vouched.id/api/v1/shopify/projects/{projectId}/stats \
  -H "X-API-Key: $CHECKPOINT_API_KEY"

Optional query parameters: startDate and endDate (ISO 8601, default: the last 24 hours), plus page (default 1) and limit (default 100, max 100) for paginating recentThreats.

The response is a { "success": true, "data": { ... } } envelope. The data object includes:

FieldTypeDescription
totalRequestsnumberTotal visitor sessions in the period
blockedBotsnumberSessions identified as AI agents
allowedRequestsnumbertotalRequests minus blockedBots
threatLevelstringCalculated threat level: low, medium, high
recentThreatsarrayRecent AI agent sessions — sessionId, timestamp, type, ip, userAgent, action, pagesVisited
paginationobjectpage, limit, total, hasMore for the recentThreats list

Threat Levels

LevelAI Sessions %Meaning
low< 1%Minimal AI agent activity
medium1–5%Moderate AI agent activity
high> 5%Significant AI agent traffic detected

Shopify API

EndpointMethodAuthDescription
/api/v1/shopify/projects/{projectId}GETAPI Key (read)Get project details
/api/v1/shopify/projects/{projectId}PATCHAPI Key (write)Update project settings
/api/v1/shopify/projects/{projectId}/statsGETAPI Key (read)Get detection statistics

All API endpoints require a valid API key via the X-API-Key header.

This OAuth-connected app covers project provisioning, settings, and stats. To also detect AI agents directly on your storefront via the Marketing Pixel (adding the loader snippet to theme.liquid), see the Shopify tab in Detect: Pixel Quick Start.

Next Steps