Agency & CI Gate Documentation
CI/CD Deploy-Gate Endpoint (POST /api/ci/check)
Fail preview or production pipelines automatically whenever an unauthorized advertising pixel, session replay script, or sensitive-route leak appears.
Request Specification
Authenticate with x-tagsentry-api-key. Returns HTTP 200 when pass: true and HTTP 422 when policy thresholds fail so curl -f exits non-zero in GitHub Actions.
curl -X POST https://your-tagsentry-host/api/ci/check \
-H "Content-Type: application/json" \
-H "x-tagsentry-api-key: ts_ci_live_your_key" \
-d '{
"url": "https://staging.example.com",
"allowedTrackers": ["ga4", "gtm"],
"maxRiskScore": 40,
"blockSensitiveRouteHighRisk": true
}'Example Failure Payload (HTTP 422)
{
"pass": false,
"url": "https://staging.example.com",
"mode": "chromium_live",
"overallRiskScore": 72,
"maxRiskScore": 40,
"unauthorizedTrackers": ["meta_pixel"],
"sensitiveRouteViolations": ["https://staging.example.com/book"],
"evidenceSha256": "9f8c7b6a...",
"findings": [
"High-risk ad or session-replay trackers (Meta Pixel (Facebook)) fired on a sensitive route."
]
}