Checkpoint Docs
Server 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: $AGENTSHIELD_API_KEY"

Updating Settings

curl -X PUT https://kya.vouched.id/api/v1/shopify/projects/{projectId} \
  -H "X-API-Key: $AGENTSHIELD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "enforcement_mode": "monitor",
    "notification_email": "alerts@example.com"
  }'

Available settings:

FieldTypeDescription
enforcement_modestringDetection mode for the store
notification_emailstringEmail for threat notifications
custom_block_pagestringCustom HTML for blocked agent responses

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: $AGENTSHIELD_API_KEY"

The stats response includes:

FieldTypeDescription
totalSessionsnumberTotal visitor sessions in the period
aiSessionsnumberSessions identified as AI agents
aiSessionsPercentagenumberPercentage of traffic from AI agents
threatLevelstringCalculated threat level: low, medium, high
topThreatsarrayMost active agent types with session counts

Threat Levels

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

API Reference

EndpointMethodAuthDescription
/api/v1/shopify/projects/{projectId}GETAPI KeyGet project details
/api/v1/shopify/projects/{projectId}PUTAPI KeyUpdate project settings
/api/v1/shopify/projects/{projectId}/statsGETAPI KeyGet detection statistics

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

Next Steps