Batch Compliance
Create compliance job
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
- Volume Streams
Users
- User Lookup
- Search
- Follows
- Mutes
- Blocks
Engagement Metrics
Direct Messages
- Manage
- Lookup
- Blocks
Likes
- Introduction
- Guides
- GETReturns Post objects liked by the provided User ID
- GETReturns User objects that have liked the provided Post ID
- POSTCauses the User (in the path) to like the specified Post
- DELCauses the User (in the path) to unlike the specified Post
- GETLikes Firehose stream
- GETLikes Sample 10 stream
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 (Gnip 2.0)
Batch Compliance
Create compliance job
Creates a compliance for the given job type
POST
/
2
/
compliance
/
jobs
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"
}'
{
"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
.
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"
}'
{
"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>"
}
]
}