API Playground
The API Playground lets you test SanctionsWise screening endpoints directly from your browser without writing any code. It's the fastest way to screen entities and verify your integration logic.
Accessing the Playground​
- Log in to your dashboard
- Select SanctionsWise from the product selector
- Click API Playground in the navigation menu
Playground Features​
| Feature | Description |
|---|---|
| Endpoint Selection | Choose from all screening endpoints |
| Request Builder | Build requests with an intuitive form |
| Live Response | See real screening results instantly |
| cURL Export | Copy ready-to-use cURL commands |
| History | View your recent screenings |
Making Your First Screening​
Step 1: Select an Endpoint​
Choose an endpoint from the dropdown menu:
- Screen Entity (
POST /v1/screen/entity) - Screen a single entity - Batch Screen (
POST /v1/screen/batch) - Screen multiple entities - Get Entity (
GET /v1/entities/{id}) - Get sanctioned entity details - List Sources (
GET /v1/lists) - List available sanctions lists
Step 2: Configure Parameters​
Based on the selected endpoint, fill in the required parameters:
For Screen Entity:
| Parameter | Required | Description |
|---|---|---|
name | Yes | Entity name to screen |
entity_type | Yes | individual, organization, or vessel |
threshold | No | Match threshold (default: 0.85) |
country | No | Filter by country |
Step 3: Send Request​
Click Send Request to execute the screening.
Step 4: Review Response​
The response panel shows:
- Status Code: HTTP status (200, 400, 401, etc.)
- Response Time: How long the screening took
- Match Status:
clear,match, orpotential_match - Matches: List of matched sanctioned entities
Example: Screening an Individual​
Let's screen an individual name against sanctions lists:
1. Select Endpoint​
Choose POST /v1/screen/entity
2. Enter Parameters​
{
"name": "Viktor Bout",
"entity_type": "individual",
"threshold": 0.85
}
3. Send and View Results​
Click Send Request. You'll see results like:
{
"screening_id": "scr_abc123",
"status": "match",
"matches": [
{
"entity_id": "ofac-sdn-12345",
"name": "BOUT, Viktor Anatoliyevich",
"score": 0.98,
"list_id": "ofac_sdn",
"list_name": "OFAC SDN List",
"entity_type": "individual",
"programs": ["SDGT"],
"aliases": [
"Viktor BOUT",
"Victor BOUT"
]
}
],
"lists_checked": ["ofac_sdn", "ofac_consolidated", "bis_entity"],
"timestamp": "2026-01-23T10:30:00Z"
}
Example: Screening an Organization​
Screen a company name:
Parameters​
{
"name": "Huawei Technologies",
"entity_type": "organization",
"threshold": 0.80
}
Response​
{
"screening_id": "scr_xyz789",
"status": "match",
"matches": [
{
"entity_id": "bis-ent-5678",
"name": "Huawei Technologies Co., Ltd.",
"score": 0.95,
"list_id": "bis_entity",
"list_name": "BIS Entity List",
"entity_type": "organization",
"country": "China"
}
],
"lists_checked": ["ofac_sdn", "ofac_consolidated", "bis_entity"],
"timestamp": "2026-01-23T10:35:00Z"
}
Understanding Match Scores​
| Score Range | Interpretation |
|---|---|
| 0.95 - 1.00 | Exact or near-exact match |
| 0.85 - 0.94 | High confidence match |
| 0.70 - 0.84 | Potential match (review recommended) |
| Below 0.70 | Low confidence (typically filtered out) |
Threshold Settings​
Adjust the threshold based on your risk tolerance:
| Threshold | Use Case |
|---|---|
| 0.95 | High volume, low false positives |
| 0.85 | Balanced (recommended default) |
| 0.70 | Comprehensive screening |
| 0.60 | Maximum coverage (more false positives) |
Copying cURL Commands​
To use the same request outside the Playground:
- Configure your request
- Click Copy as cURL
- Paste into your terminal
Example cURL command:
curl -X POST "https://api.sanctionswise.orchestraprime.ai/v1/screen/entity" \
-H "x-api-key: sw_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Viktor Bout",
"entity_type": "individual",
"threshold": 0.85
}'
Understanding Error Responses​
400 Bad Request​
{
"error": "Bad Request",
"message": "Missing required parameter: name",
"code": "MISSING_PARAMETER"
}
Solution: Check that all required parameters are provided.
401 Unauthorized​
{
"error": "Unauthorized",
"message": "Invalid API key",
"code": "INVALID_API_KEY"
}
Solution: Verify your API key is correct.
429 Too Many Requests​
{
"error": "Too Many Requests",
"message": "Rate limit exceeded",
"code": "RATE_LIMIT_EXCEEDED"
}
Solution: Wait and retry, or upgrade your tier for higher limits.
Tips for Using the Playground​
- Test Name Variations: Try different spellings and transliterations
- Adjust Thresholds: Lower thresholds catch more variations but increase false positives
- Use Entity Type: Setting the correct entity type improves accuracy
- Check Response Time: Monitor latency to optimize your integration
- Export for Code: Use the cURL export to build your integration
Available Endpoints​
| Endpoint | Method | Description |
|---|---|---|
/v1/screen/entity | POST | Screen a single entity |
/v1/screen/batch | POST | Screen multiple entities (up to 100) |
/v1/entities/{id} | GET | Get details of a sanctioned entity |
/v1/lists | GET | List available sanctions lists |
/v1/lists/{id}/changes | GET | Get recent changes to a list |
For detailed endpoint documentation, see the API Reference.
Playground vs Production​
The Playground uses your real API key and counts against your quota. However:
- Requests are made from your browser
- API key is automatically included
- Rate limits apply as normal