Skip to content

Commit 865eb36

Browse files
committed
Update documentation with latest OpenAPI spec
1 parent 1d2dd5e commit 865eb36

1 file changed

Lines changed: 28 additions & 82 deletions

File tree

openapi.json

Lines changed: 28 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"openapi" : "3.0.0",
33
"info" : {
44
"description" : "X API v2 available endpoints",
5-
"version" : "2.161",
5+
"version" : "2.162",
66
"title" : "X API v2",
77
"termsOfService" : "https://developer.x.com/en/developer-terms/agreement-and-policy.html",
88
"contact" : {
@@ -15,87 +15,6 @@
1515
}
1616
},
1717
"paths" : {
18-
"/2/account_activity/replay/webhooks/{webhook_id}/subscriptions/all" : {
19-
"post" : {
20-
"security" : [
21-
{
22-
"BearerToken" : [ ]
23-
}
24-
],
25-
"tags" : [
26-
"Account Activity"
27-
],
28-
"summary" : "Create replay job",
29-
"description" : "Creates a replay job to retrieve activities from up to the past 5 days for all subscriptions associated with a given webhook.",
30-
"externalDocs" : {
31-
"url" : "https://docs.x.com/x-api/account-activity/introduction"
32-
},
33-
"operationId" : "createAccountActivityReplayJob",
34-
"parameters" : [
35-
{
36-
"name" : "webhook_id",
37-
"in" : "path",
38-
"description" : "The unique identifier for the webhook configuration.",
39-
"required" : true,
40-
"schema" : {
41-
"$ref" : "#/components/schemas/WebhookConfigId"
42-
},
43-
"style" : "simple"
44-
},
45-
{
46-
"name" : "from_date",
47-
"in" : "query",
48-
"description" : "The oldest (starting) UTC timestamp (inclusive) from which events will be provided, in `yyyymmddhhmm` format.",
49-
"required" : true,
50-
"schema" : {
51-
"type" : "string",
52-
"pattern" : "^\\d{12}$",
53-
"example" : "202504242000"
54-
},
55-
"style" : "form"
56-
},
57-
{
58-
"name" : "to_date",
59-
"in" : "query",
60-
"description" : "The latest (ending) UTC timestamp (exclusive) up to which events will be provided, in `yyyymmddhhmm` format.",
61-
"required" : true,
62-
"schema" : {
63-
"type" : "string",
64-
"pattern" : "^\\d{12}$",
65-
"example" : "202504242200"
66-
},
67-
"style" : "form"
68-
}
69-
],
70-
"responses" : {
71-
"200" : {
72-
"description" : "The request has succeeded.",
73-
"content" : {
74-
"application/json" : {
75-
"schema" : {
76-
"$ref" : "#/components/schemas/ReplayJobCreateResponse"
77-
}
78-
}
79-
}
80-
},
81-
"default" : {
82-
"description" : "The request has failed.",
83-
"content" : {
84-
"application/json" : {
85-
"schema" : {
86-
"$ref" : "#/components/schemas/Error"
87-
}
88-
},
89-
"application/problem+json" : {
90-
"schema" : {
91-
"$ref" : "#/components/schemas/Problem"
92-
}
93-
}
94-
}
95-
}
96-
}
97-
}
98-
},
9918
"/2/account_activity/subscriptions/count" : {
10019
"get" : {
10120
"security" : [
@@ -22385,6 +22304,20 @@
2238522304
"description" : "Language of the Tweet, if detected by X. Returned as a BCP47 language tag.",
2238622305
"example" : "en"
2238722306
},
22307+
"matched_media_notes" : {
22308+
"type" : "object",
22309+
"description" : "The matched media notes for the post.",
22310+
"properties" : {
22311+
"match_status" : {
22312+
"type" : "string",
22313+
"description" : "The status of the media note match.",
22314+
"example" : "matched_and_shown"
22315+
},
22316+
"note_id" : {
22317+
"$ref" : "#/components/schemas/NoteId"
22318+
}
22319+
}
22320+
},
2238822321
"non_public_metrics" : {
2238922322
"type" : "object",
2239022323
"description" : "Nonpublic engagement metrics for the Tweet at the time of the request.",
@@ -22759,6 +22692,10 @@
2275922692
"media_ids"
2276022693
],
2276122694
"properties" : {
22695+
"description" : {
22696+
"type" : "string",
22697+
"description" : "Description for the media. Rendered on the Post card for video and Amplify content."
22698+
},
2276222699
"media_ids" : {
2276322700
"type" : "array",
2276422701
"description" : "A list of Media Ids to be attached to a created Tweet.",
@@ -22768,6 +22705,9 @@
2276822705
"$ref" : "#/components/schemas/MediaId"
2276922706
}
2277022707
},
22708+
"preview_media_id" : {
22709+
"$ref" : "#/components/schemas/MediaId"
22710+
},
2277122711
"tagged_user_ids" : {
2277222712
"type" : "array",
2277322713
"description" : "A list of User Ids to be tagged in the media for created Tweet.",
@@ -22776,6 +22716,10 @@
2277622716
"items" : {
2277722717
"$ref" : "#/components/schemas/UserId"
2277822718
}
22719+
},
22720+
"title" : {
22721+
"type" : "string",
22722+
"description" : "Title for the media. Rendered on the Post card for video and Amplify content."
2277922723
}
2278022724
},
2278122725
"additionalProperties" : false
@@ -25977,6 +25921,7 @@
2597725921
"id",
2597825922
"in_reply_to_user_id",
2597925923
"lang",
25924+
"matched_media_notes",
2598025925
"media_metadata",
2598125926
"non_public_metrics",
2598225927
"note_tweet",
@@ -26011,6 +25956,7 @@
2601125956
"id",
2601225957
"in_reply_to_user_id",
2601325958
"lang",
25959+
"matched_media_notes",
2601425960
"media_metadata",
2601525961
"non_public_metrics",
2601625962
"note_tweet",

0 commit comments

Comments
 (0)