|
2 | 2 | "openapi" : "3.0.0", |
3 | 3 | "info" : { |
4 | 4 | "description" : "X API v2 available endpoints", |
5 | | - "version" : "2.149", |
| 5 | + "version" : "2.150", |
6 | 6 | "title" : "X API v2", |
7 | 7 | "termsOfService" : "https://developer.x.com/en/developer-terms/agreement-and-policy.html", |
8 | 8 | "contact" : { |
|
783 | 783 | "summary" : "Terminate all connections", |
784 | 784 | "description" : "Terminates all active streaming connections for the authenticated application.", |
785 | 785 | "externalDocs" : { |
786 | | - "url" : "https://developer.x.com" |
| 786 | + "url" : "https://docs.x.com/x-api/connections/terminate-all-connections" |
787 | 787 | }, |
788 | 788 | "operationId" : "deleteAllConnections", |
789 | 789 | "parameters" : [ ], |
|
1529 | 1529 | } |
1530 | 1530 | } |
1531 | 1531 | }, |
| 1532 | + "/2/evaluate_note" : { |
| 1533 | + "post" : { |
| 1534 | + "security" : [ |
| 1535 | + { |
| 1536 | + "OAuth2UserToken" : [ |
| 1537 | + "tweet.write" |
| 1538 | + ] |
| 1539 | + }, |
| 1540 | + { |
| 1541 | + "UserToken" : [ ] |
| 1542 | + } |
| 1543 | + ], |
| 1544 | + "tags" : [ |
| 1545 | + "Community Notes" |
| 1546 | + ], |
| 1547 | + "summary" : "Evaluate a Community Note", |
| 1548 | + "description" : "Endpoint to evaluate a community note.", |
| 1549 | + "externalDocs" : { |
| 1550 | + "url" : "https://communitynotes.x.com/guide/api/overview" |
| 1551 | + }, |
| 1552 | + "operationId" : "evaluateCommunityNotes", |
| 1553 | + "parameters" : [ ], |
| 1554 | + "requestBody" : { |
| 1555 | + "content" : { |
| 1556 | + "application/json" : { |
| 1557 | + "schema" : { |
| 1558 | + "$ref" : "#/components/schemas/EvaluateNoteRequest" |
| 1559 | + } |
| 1560 | + } |
| 1561 | + } |
| 1562 | + }, |
| 1563 | + "responses" : { |
| 1564 | + "200" : { |
| 1565 | + "description" : "The request has succeeded.", |
| 1566 | + "content" : { |
| 1567 | + "application/json" : { |
| 1568 | + "schema" : { |
| 1569 | + "$ref" : "#/components/schemas/EvaluateNoteResponse" |
| 1570 | + } |
| 1571 | + } |
| 1572 | + } |
| 1573 | + }, |
| 1574 | + "default" : { |
| 1575 | + "description" : "The request has failed.", |
| 1576 | + "content" : { |
| 1577 | + "application/json" : { |
| 1578 | + "schema" : { |
| 1579 | + "$ref" : "#/components/schemas/Error" |
| 1580 | + } |
| 1581 | + }, |
| 1582 | + "application/problem+json" : { |
| 1583 | + "schema" : { |
| 1584 | + "$ref" : "#/components/schemas/Problem" |
| 1585 | + } |
| 1586 | + } |
| 1587 | + } |
| 1588 | + } |
| 1589 | + } |
| 1590 | + } |
| 1591 | + }, |
1532 | 1592 | "/2/insights/28hr" : { |
1533 | 1593 | "get" : { |
1534 | 1594 | "security" : [ |
|
3650 | 3710 | "content" : { |
3651 | 3711 | "application/json" : { |
3652 | 3712 | "schema" : { |
3653 | | - "$ref" : "#/components/schemas/DeleteNoteResponse" |
| 3713 | + "$ref" : "#/components/schemas/CreateNoteResponse" |
3654 | 3714 | } |
3655 | 3715 | } |
3656 | 3716 | } |
|
3905 | 3965 | "content" : { |
3906 | 3966 | "application/json" : { |
3907 | 3967 | "schema" : { |
3908 | | - "$ref" : "#/components/schemas/CreateNoteResponse" |
| 3968 | + "$ref" : "#/components/schemas/DeleteNoteResponse" |
3909 | 3969 | } |
3910 | 3970 | } |
3911 | 3971 | } |
|
8149 | 8209 | ], |
8150 | 8210 | "summary" : "Get Reposts of me", |
8151 | 8211 | "description" : "Retrieves a list of Posts that repost content from the authenticated user.", |
| 8212 | + "externalDocs" : { |
| 8213 | + "url" : "https://docs.x.com/x-api/posts/retweets/quickstart/retweets-of-me#retweets-of-me" |
| 8214 | + }, |
8152 | 8215 | "operationId" : "getUsersRepostsOfMe", |
8153 | 8216 | "parameters" : [ |
8154 | 8217 | { |
|
12787 | 12850 | } |
12788 | 12851 | } |
12789 | 12852 | }, |
| 12853 | + "EvaluateNoteRequest" : { |
| 12854 | + "type" : "object", |
| 12855 | + "required" : [ |
| 12856 | + "post_id", |
| 12857 | + "note_text" |
| 12858 | + ], |
| 12859 | + "properties" : { |
| 12860 | + "note_text" : { |
| 12861 | + "type" : "string", |
| 12862 | + "description" : "Text for the community note." |
| 12863 | + }, |
| 12864 | + "post_id" : { |
| 12865 | + "$ref" : "#/components/schemas/TweetId" |
| 12866 | + } |
| 12867 | + }, |
| 12868 | + "additionalProperties" : false |
| 12869 | + }, |
| 12870 | + "EvaluateNoteResponse" : { |
| 12871 | + "type" : "object", |
| 12872 | + "properties" : { |
| 12873 | + "data" : { |
| 12874 | + "type" : "object", |
| 12875 | + "properties" : { |
| 12876 | + "claim_opinion_score" : { |
| 12877 | + "type" : "number", |
| 12878 | + "description" : "Claim opinion model score for the note.", |
| 12879 | + "format" : "double" |
| 12880 | + } |
| 12881 | + } |
| 12882 | + }, |
| 12883 | + "errors" : { |
| 12884 | + "type" : "array", |
| 12885 | + "minItems" : 1, |
| 12886 | + "items" : { |
| 12887 | + "$ref" : "#/components/schemas/Problem" |
| 12888 | + } |
| 12889 | + } |
| 12890 | + } |
| 12891 | + }, |
12790 | 12892 | "Expansions" : { |
12791 | 12893 | "type" : "object", |
12792 | 12894 | "properties" : { |
|
20295 | 20397 | "type" : "string", |
20296 | 20398 | "description" : "The user ID" |
20297 | 20399 | }, |
| 20400 | + "created_at" : { |
| 20401 | + "type" : "string", |
| 20402 | + "description" : "The datetime the webhook was linked to the stream", |
| 20403 | + "format" : "data-time" |
| 20404 | + }, |
20298 | 20405 | "fields" : { |
20299 | 20406 | "type" : "array", |
20300 | 20407 | "description" : "Requested fields to be rendered", |
|
0 commit comments