POST
/2/compliance/jobs
curl \
-X POST https://api.twitter.com/2/compliance/jobs \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"type":"tweets","resumable":true,"name":"my-job"}'
Request example
{
"type": "tweets",
"resumable": true,
"name": "my-job"
}
Request examples
{
"type": "tweets",
"resumable": true,
"name": "my-job"
}
Response examples (200)
{
"data": {
"id": "1372966999991541762",
"type": "tweets",
"created_at": "2021-01-06T18:40:40.000Z",
"upload_url": "https://example.com",
"upload_expires_at": "2021-01-06T18:40:40.000Z",
"download_url": "https://example.com",
"download_expires_at": "2021-01-06T18:40:40.000Z",
"name": "my-job",
"status": "created"
},
"errors": [
{
"type": "string",
"title": "string",
"detail": "string",
"status": 42
}
]
}
Response examples (200)
{
"data": {
"id": "1372966999991541762",
"type": "tweets",
"created_at": "2021-01-06T18:40:40.000Z",
"upload_url": "https://example.com",
"upload_expires_at": "2021-01-06T18:40:40.000Z",
"download_url": "https://example.com",
"download_expires_at": "2021-01-06T18:40:40.000Z",
"name": "my-job",
"status": "created"
},
"errors": [
{
"type": "string",
"title": "string",
"detail": "string",
"status": 42
}
]
}
Response examples (default)
{
"code": 42,
"message": "string"
}
Response examples (default)
{
"code": 42,
"message": "string"
}