> ## Documentation Index
> Fetch the complete documentation index at: https://docs.x.com/llms.txt
> Use this file to discover all available pages before exploring further.

# v1 to v2

> standard v1.1 POST statuses/update と POST を利用してきた方向けです。migrate を扱う X API v2 スタンダードティアのリファレンス。

## Standard v1.1 と X API v2 の比較

standard v1.1 の [POST statuses/update](https://developer.x.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-statuses-update) と [POST statuses/destroy/:id](https://developer.x.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-statuses-destroy-id) エンドポイントを利用してきた方向けに、本ガイドは standard と X API v2 の manage Posts エンドポイント間の類似点と相違点の理解を助けることを目的としています。

* **類似点**
  * 認証
* **相違点**
  * エンドポイント URL

  * App と Project の要件

  * リクエストパラメーター

### 類似点

**認証**

standard v1.1 と X API v2 の manage Posts エンドポイント([POST statuses/update](https://developer.x.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-statuses-update) と [POST statuses/destroy/:id](https://developer.x.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-statuses-destroy-id))はどちらも [OAuth 1.0a User Context](https://developer.x.com/content/developer-twitter/resources/fundamentals/authentication) を使用します。したがって、これまで standard v1.1 のエンドポイントを使用していた場合、X API v2 版に移行しても同じ認証方式を引き続き使用できます。

### 相違点

**エンドポイント URL**

* Standard v1.1 エンドポイント:
  * [https://api.x.com/1.1/statuses/update.json](https://api.x.com/1.1/statuses/update.json)
    (投稿を作成)
  * `https://api.x.com/1.1/statuses/destroy/:id.json`
    (投稿を削除)
* X API v2 エンドポイント:
  * [https://api.x.com/2/tweets](https://api.x.com/2/tweets)
    (投稿を作成)
  * [https://api.x.com/2/tweets/:id](https://api.x.com/2/tweets/:id)
    (指定した投稿を削除)

### App と Project の要件

X API v2 エンドポイントでは、リクエストの認証に [Project](/resources/fundamentals/developer-apps) に紐づく[開発者 App](/resources/fundamentals/developer-apps) の認証情報を使用する必要があります。
