Skip to main content
POST
/
2
/
webhooks
/
replay
Create replay job for webhook
curl --request POST \
  --url https://api.x.com/2/webhooks/replay \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "from_date": "202504242000",
  "to_date": "202504242000",
  "webhook_id": "1146654567674912769"
}
'
{
  "created_at": "2025-04-24T20:57:15.242Z",
  "job_id": "1915510368169844736"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
from_date
string
required

The oldest (starting) UTC timestamp (inclusive) from which events will be provided, in yyyymmddhhmm format.

Example:

"202504242000"

to_date
string
required

The oldest (starting) UTC timestamp (inclusive) from which events will be provided, in yyyymmddhhmm format.

Example:

"202504242000"

webhook_id
string
required

The unique identifier of this webhook config.

Example:

"1146654567674912769"

Response

The request has succeeded.

Confirmation that the replay job request was accepted.

created_at
string<date-time>
required

The UTC timestamp indicating when the replay job was created.

Example:

"2025-04-24T20:57:15.242Z"

job_id
string
required

The unique identifier for the initiated replay job.

Example:

"1915510368169844736"