Skip to content
StatusSupportDashboard
Getting Started

Introduction

With SafetyKit, you can deploy AI agents to automate risk reviews, onboarding, and investigations. Trusted by leading marketplaces and fintech platforms.

The Data API lets you ingest data into SafetyKit for processing and analysis. This is perfect for syncing your users, products, transactions, or any entity you want SafetyKit to understand.

from safetykit import Safetykit
# Initialize the client with your API key
client = Safetykit(api_key="sk_your_api_key")
# Ingest users into the "users" namespace
response = client.data.ingest("users", {
"data": [
{
"id": "user_12345",
"email": "alice@example.com",
"username": "alice_wonderland",
"profile_image": "https://example.com/alice.jpg",
"bio": "Just a curious person exploring the world!",
"created_at": "2024-01-15T10:30:00Z"
}
],
"schema": {
"profile_image": {"content_type": "image_url"}
}
})
print(f"✓ Data accepted: {response.request_id}")

What happens next? SafetyKit processes your data asynchronously. You can set up webhooks to get notified when processing completes.


The Decisions API enables real-time policy decisions. Submit content and get back a structured decision with labels and explanations, and a recommended action.

from safetykit import Safetykit
import json
# Initialize the client
client = Safetykit(api_key="sk_your_api_key")
# Request a decision on a product listing
decision = client.decisions.create({
"type": "product_listing",
"content": {
"title": "Vintage Camera - Excellent Condition",
"description": "Beautiful 1970s film camera, fully working.",
"price": 150.00,
"image_url": "https://example.com/camera.jpg",
"seller_id": "user_12345"
},
"metadata": {
"marketplace": "main_store",
"category": "electronics"
}
})
print(f"Decision ID: {decision.decision_id}")
# Poll for the result (or use webhooks for async notification)
result = client.decisions.get(decision.decision_id)
print(json.dumps(result, default=str))

Our SDKs handle authentication, retries, and type safety out of the box. If you prefer, you can also use the API directly.

Terminal window
pip install safetykit


We’re here for you! Contact us at support@safetykit.com.