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

Authorization
string
header
required

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.

type
enum<string>
required

Type of compliance job to list.

Available options:
tweets,
users
name
string

User-provided name for a compliance job.

Maximum length: 64
Example:

"my-job"

resumable
boolean

If true, this endpoint will return a pre-signed URL with resumable uploads enabled.

Response

200
application/json
The request has succeeded.
data
object
errors
object[]

An HTTP Problem Details object, as defined in IETF RFC 7807 (https://tools.ietf.org/html/rfc7807).