Creates a new Compliance Job for the specified job type.
curl --request POST \
--url https://api.x.com/2/compliance/jobs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "tweets",
"name": "my-job",
"resumable": true
}
'{
"data": {
"created_at": "2021-01-06T18:40:40.000Z",
"download_expires_at": "2021-01-06T18:40:40.000Z",
"download_url": "<string>",
"id": "1372966999991541762",
"status": "created",
"type": "tweets",
"upload_expires_at": "2021-01-06T18:40:40.000Z",
"upload_url": "<string>",
"name": "my-job"
},
"errors": [
{
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"status": 123
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.x.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
A request to create a new batch compliance job.
The request has succeeded.
Show child attributes
1An HTTP Problem Details object, as defined in IETF RFC 7807 (https://tools.ietf.org/html/rfc7807).
Show child attributes
curl --request POST \
--url https://api.x.com/2/compliance/jobs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "tweets",
"name": "my-job",
"resumable": true
}
'{
"data": {
"created_at": "2021-01-06T18:40:40.000Z",
"download_expires_at": "2021-01-06T18:40:40.000Z",
"download_url": "<string>",
"id": "1372966999991541762",
"status": "created",
"type": "tweets",
"upload_expires_at": "2021-01-06T18:40:40.000Z",
"upload_url": "<string>",
"name": "my-job"
},
"errors": [
{
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"status": 123
}
]
}