| title |
Batch Compliance |
| sidebarTitle |
Introduction |
| description |
The Batch Compliance endpoints let you upload datasets of Post IDs or user IDs and receive their current compliance status. Use. Enterprise X API v2 tier. |
| keywords |
batch compliance |
compliance API |
GDPR |
data compliance |
bulk compliance |
|
import { Button } from '/snippets/button.mdx';
The Batch Compliance endpoints let you upload datasets of Post IDs or user IDs and receive their current compliance status. Use this to identify deleted Posts, suspended accounts, and other compliance events.
Check status of Posts in bulk
Check status of users in bulk
Submit jobs and retrieve results later
Process millions of IDs
- Create a job — Specify the type (Posts or users) and upload URL
- Upload IDs — Upload your dataset to the provided URL
- Wait for processing — Job processes asynchronously
- Download results — Get compliance status for each ID
| Type |
Description |
tweets |
Check Post compliance status |
users |
Check user compliance status |
| Event |
Description |
deleted |
Post was deleted by user |
bounced |
Post failed compliance check |
protected |
Account became protected |
suspended |
Account was suspended |
scrub_geo |
Geo data was removed |
| Event |
Description |
deleted |
Account was deleted |
suspended |
Account was suspended |
protected |
Account became protected |
deactivated |
Account was deactivated |
curl -X POST "https://api.x.com/2/compliance/jobs" \
-H "Authorization: Bearer $BEARER_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"type": "tweets",
"name": "my-compliance-job"
}'
**Prerequisites**
Create your first compliance job
Key concepts and best practices
Full endpoint documentation