Overview
- Introduction
- Getting started
- Tools and libraries
- Migration guide
- What to build
- Fundamentals
Posts
- Search
- Post Counts
- Filtered Stream
- Timelines
- Post Lookup
- Bookmarks
- Manage Posts
- Reposts
- Quotes
- Hide replies
Users
- User Lookup
- Search
- Follows
- Mutes
- Blocks
Direct Messages
- Manage
- Lookup
- Blocks
Likes
Lists
- Lookup Lists
- Lookup List Posts
- Manage Lists
- List Members
- Pinned Lists
Spaces
- Introduction
- Spaces Lookup
- Search Spaces
Communities
- Communities Lookup
- Search Communities
Trends
- Trends
- Personalized Trends
Media
- Introduction
- Upload
- Metadata
Compliance
- Batch Compliance
- Compliance streams
Enterprise v2
- Engagement Metrics
- Account Activity
- Webhooks
- Volume Streams
Likes Streams
Batch Compliance
Create compliance job
Creates a compliance for the given job type
POST
/
2
/
compliance
/
jobs
Copy
Ask AI
curl --request POST \
--url https://api.twitter.com/2/compliance/jobs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "my-job",
"resumable": true,
"type": "tweets"
}'
Copy
Ask AI
{
"data": {
"created_at": "2021-01-06T18:40:40.000Z",
"download_expires_at": "2021-01-06T18:40:40.000Z",
"download_url": "<string>",
"id": "1372966999991541762",
"name": "my-job",
"status": "created",
"type": "tweets",
"upload_expires_at": "2021-01-06T18:40:40.000Z",
"upload_url": "<string>"
},
"errors": [
{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
A request to create a new batch compliance job.
Response
200
application/json
The request has succeeded.
The response is of type object
.
Copy
Ask AI
curl --request POST \
--url https://api.twitter.com/2/compliance/jobs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "my-job",
"resumable": true,
"type": "tweets"
}'
Copy
Ask AI
{
"data": {
"created_at": "2021-01-06T18:40:40.000Z",
"download_expires_at": "2021-01-06T18:40:40.000Z",
"download_url": "<string>",
"id": "1372966999991541762",
"name": "my-job",
"status": "created",
"type": "tweets",
"upload_expires_at": "2021-01-06T18:40:40.000Z",
"upload_url": "<string>"
},
"errors": [
{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.