GET
/
2
/
users
/
compliance
/
stream
Stream Users compliance data
curl --request GET \
  --url https://api.x.com/2/users/compliance/stream \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "user_protect": {
      "event_at": "2021-07-06T18:40:40.000Z",
      "user": {
        "id": "2244994945"
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

backfill_minutes
integer

The number of minutes of backfill requested.

Required range: 0 <= x <= 5
partition
integer
required

The partition number.

Required range: 1 <= x <= 4
start_time
string<date-time>

YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp from which the User Compliance events will be provided.

end_time
string<date-time>

YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp from which the User Compliance events will be provided.

Response

The request has succeeded.

User compliance stream events. User compliance event.

data
object
required

User compliance data.