cURL
curl --request POST \ --url https://api.x.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>" } ] }
Creates a new Compliance Job for the specified job type.
tweets
users
64
Show child attributes
1