GET /2/compliance/jobs/:id
GET /2/compliance/jobs/:id
Get a single compliance job with the specified ID.
Endpoint URL
https://api.x.com/2/compliance/jobs/:id
Authentication and rate limits
Authentication methods supported by this endpoint | |
---|---|
Rate limit | App rate limit (Application-only): 150 requests per 15-minute window shared among all users of your app |
Path parameters
Name | Type | Description |
---|---|---|
id Required | number | The unique identifier for the compliance job you want to retrieve. |
Example code with offical SDKs
TypeScript
Java
Example responses
Successful response
Response fields
Name | Type | Description |
---|---|---|
id | string | The unique identifier for this job. |
created_at | date (ISO 8601) | The date and time when the job was created. |
type | enum (tweets , users ) | The type of the job, whether tweets or users. |
name | string | The user defined job name. Only returned if specified when the job was created. |
upload_url | string | A URL representing the location where to upload IDs consumed by your app. This URL is already signed with an authentication key, so you will not need to pass any additional credentials or headers to authenticate the request. |
upload_expires_at | date (ISO 8601) | The date and time until which the upload URL will be available (usually 15 minutes from the request time). |
download_url | string | The predefined location where to download the results from the compliance job. This URL is already signed with an authentication key, so you will not need to pass any additional credential or header to authenticate the request. |
download_expires_at | date (ISO 8601) | The date and time until which the download URL will be available (usually 7 days from the request time). |
error | string | Only returned when jobs.status is failed . Specifies the reason why the job did not complete successfully. |