> ## 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.

# Mapeamento de autenticação da X API v2

> O gráfico a seguir ilustra quais endpoints v2 mapeiam para quais métodos de autenticação. Documentação da X developer platform cobrindo autenticação v2.

export const Button = ({href, children}) => {
  return <div className="not-prose group">
    <a href={href}>
      <button className="flex items-center space-x-2.5 py-1 px-4 bg-primary-dark dark:bg-white text-white dark:text-gray-950 rounded-full group-hover:opacity-[0.9] font-medium">
        <span>
          {children}
        </span>
        <svg width="3" height="24" viewBox="0 -9 3 24" class="h-6 rotate-0 overflow-visible"><path d="M0 0L3 3L0 6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg>
      </button>
    </a>
  </div>;
};

O gráfico a seguir ilustra quais endpoints v2 mapeiam para quais métodos de autenticação.

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |                             |                                     |                                                                                                                                              |
| :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-------------------------- | :---------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------- |
| **Endpoint**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | **OAuth 1.0a User Context** | **OAuth 2.0** **App Only   <br />** | **OAuth 2.0  <br />Authorization Code with PKCE**                                                                                            |
| [Tweet lookup](/x-api/posts/lookup/introduction)<br /><br />Recupera múltiplos Tweets com uma lista de IDs<br /><br />[GET /2/tweets](/x-api/posts/post-lookup-by-post-ids)<br /><br />Recupera um único Tweet com um ID<br /><br />[GET /2/tweets/:id](/x-api/posts/post-lookup-by-post-id)                                                                                                                                                                                                                                                                                                                                                              | ✅                           | ✅                                   | ✅  <br /><br />Scopes:<br /><br />tweet.read<br /><br />users.read                                                                           |
| [Manage Tweets](/x-api/posts/manage-tweets/introduction)<br /><br />Publica um Tweet<br /><br />[POST /2/tweets](/x-api/posts/creation-of-a-post)<br /><br />Exclui um Tweet<br /><br />[DELETE /2/tweets/:id](/x-api/posts/post-delete-by-post-id)                                                                                                                                                                                                                                                                                                                                                                                                       | ✅                           |                                     | ✅<br /><br />Scopes:<br /><br />tweet.read<br /><br />tweet.write<br /><br />users.read                                                      |
| [Timelines](/x-api/posts/timelines/introduction)<br /><br />User Tweet timeline<br /><br />[GET /2/users/:id/tweets](/x-api/users/get-posts)<br /><br />User mention timeline<br /><br />[GET /2/users/:id/mentions](/x-api/users/get-mentions)<br /><br />Reverse chronological home timeline<br /><br />[GET /2/users/:id/timelines/reverse\_cronological](/x-api/posts/timelines#user-mention-timeline-3)                                                                                                                                                                                                                                              | ✅<br /><br />✅              | ✅                                   | ✅<br /><br />Scopes:<br /><br />tweet.read<br /><br />users.read<br /><br />✅<br /><br />Scopes:<br /><br />tweet.read<br /><br />users.read |
| [Recent search](/x-api/posts/search/introduction#recent-search)<br /><br />Pesquisa Tweets publicados nos últimos 7 dias<br /><br />[GET /2/tweets/search/recent](/x-api/posts/recent-search)                                                                                                                                                                                                                                                                                                                                                                                                                                                             | ✅                           | ✅                                   | ✅<br /><br />Scopes: <br /><br />tweet.read<br /><br />users.read                                                                            |
| [Full-archive search](/x-api/posts/search/introduction#full-archive-search)<br /><br />Disponível apenas para quem tem acesso Academic Research<br /><br />Pesquisa no arquivo completo de Tweets<br /><br />[GET /2/tweets/search/all](/x-api/posts/full-archive-search)                                                                                                                                                                                                                                                                                                                                                                                 |                             | ✅                                   |                                                                                                                                              |
| [Filtered stream](/x-api/posts/filtered-stream/introduction)<br /><br />Adiciona ou exclui regras do seu stream<br /><br />[POST /2/tweets/search/stream/rules](/x-api/stream/update-stream-rules)<br /><br />Recupera as regras do seu stream<br /><br />[GET /2/tweets/search/stream/rules](/x-api/stream/get-stream-rules)<br /><br />Conecta ao stream<br /><br />[GET /2/tweets/search/stream](/x-api/posts/filtered-stream)                                                                                                                                                                                                                         |                             | ✅                                   |                                                                                                                                              |
| [Volume streams](/x-api/posts/volume-streams/introduction)<br /><br />Faz stream de cerca de 1% de todos os Tweets em tempo real.<br /><br />[GET /2/tweets/sample/stream](/x-api/stream/stream-sampled-posts)                                                                                                                                                                                                                                                                                                                                                                                                                                            |                             | ✅                                   |                                                                                                                                              |
| [Manage Retweets](/x-api/posts/retweets/introduction#manage-retweets)<br /><br />Retweeta um Tweet<br /><br />[POST /2/users/:id/retweets](/x-api/posts/retrieve-posts-that-repost-a-post)<br /><br />Exclui um Retweet<br /><br />[DELETE /2/users/:id/retweets/:source\_tweet\_id](/x-api/users/unrepost-post)                                                                                                                                                                                                                                                                                                                                          | ✅                           |                                     | ✅<br /><br />Scopes:<br /><br />tweet.read<br /><br />tweet.write<br /><br />users.read                                                      |
| [Retweets lookup](/x-api/posts/retweets/introduction#retweets-lookup)<br /><br />Usuários que retweetaram um Tweet<br /><br />[GET /2/tweets/:id/retweeted\_by](/x-api/posts/get-reposted-by)                                                                                                                                                                                                                                                                                                                                                                                                                                                             | ✅                           | ✅                                   | ✅<br /><br />Scopes:<br /><br />tweet.read<br /><br />users.read                                                                             |
| Bookmarks [lookup](/x-api/posts/bookmarks/introduction#bookmarks-lookup)<br /><br />Obtém Tweets salvos como bookmark<br /><br />[GET /2/tweets/:id/bookmarks](/x-api/bookmarks/bookmarks-by-user)                                                                                                                                                                                                                                                                                                                                                                                                                                                        |                             |                                     | ✅<br /><br />Scopes:<br /><br />tweet.read<br /><br />users.read<br /><br />bookmark.read                                                    |
| [Manage Bookmarks](/x-api/posts/bookmarks/introduction#manage-bookmarks)<br /><br />Adiciona um Tweet aos bookmarks<br /><br />[POST /2/tweets/:id/bookmarks](/x-api/bookmarks/add-post-to-bookmarks)<br /><br />Remove um bookmark de um Tweet<br /><br />[DELETE /2/users/:id/bookmarks:tweet\_id](/x-api/bookmarks/remove-a-bookmarked-post)                                                                                                                                                                                                                                                                                                           |                             |                                     | ✅<br /><br />Scopes:<br /><br />tweet.read<br /><br />users.read<br /><br />bookmark.write                                                   |
| [Manage Likes](/x-api/posts/likes/introduction#manage-likes)<br /><br />Curte um Tweet<br /><br />[POST /2/users/:id/likes](/x-api/users/like-post)<br /><br />Desfaz o like em um Tweet<br /><br />[DELETE /2/users/:id/likes/:tweet\_id](/x-api/users/unlike-post)                                                                                                                                                                                                                                                                                                                                                                                      | ✅                           |                                     | ✅<br /><br />Scopes:<br /><br />tweet.read<br /><br />users.read<br /><br />like.write                                                       |
| [Likes lookup](/x-api/posts/likes/introduction#likes-lookup)<br /><br />Usuários que curtiram um Tweet<br /><br />[GET /2/tweets/:id/liking\_users](/x-api/posts/get-liking-users)<br /><br />Tweets curtidos por um usuário<br /><br />[GET /2/users/:id/liked\_tweets](/x-api/users/get-liked-posts)                                                                                                                                                                                                                                                                                                                                                    | ✅                           | ✅                                   | ✅<br /><br />Scopes:<br /><br />tweet.read<br /><br />users.read<br /><br />like.read                                                        |
| [Hide replies](/x-api/posts/hide-replies/introduction)<br /><br />Oculta ou desoculta uma resposta a um Tweet.<br /><br />[PUT /2/tweets/:id/hidden](/x-api/posts/hide-replies)                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | ✅                           |                                     | ✅<br /><br />Scopes:<br /><br />tweet.read<br /><br />users.read<br /><br />tweet.moderate.write                                             |
| [Users lookup](/x-api/users/lookup/introduction)<br /><br />Recupera múltiplos usuários por IDs<br /><br />[GET /2/users](/x-api/users/user-lookup-by-ids)<br /><br />Recupera um único usuário por ID<br /><br />[GET /2/users/:id](/x-api/users/user-lookup-by-id)<br /><br />Recupera múltiplos usuários por usernames<br /><br />[GET /2/users/by](/x-api/users/user-lookup-by-usernames)<br /><br />Recupera um único usuário por username<br /><br />[GET /2/users/by/username/:username](/x-api/users/user-lookup-by-username)<br /><br />Obtém informações sobre um usuário autenticado<br /><br />[GET /2/users/me](/x-api/users/user-lookup-me) | ✅                           | ✅                                   | ✅<br /><br />Scopes:<br /><br />tweet.read<br /><br />users.read                                                                             |
| [Manage follows](/x-api/users/follows/introduction#manage-follows)<br /><br />Permite que um user ID siga outro usuário<br /><br />[POST /2/users/:id/following](/x-api/users/follow-user)<br /><br />Permite que um user ID deixe de seguir outro usuário<br /><br />[DELETE /2/users/:source\_user\_id/following/:target\_user\_id](/x-api/users/unfollow-user)                                                                                                                                                                                                                                                                                         | ✅                           |                                     | ✅<br /><br />Scopes: <br /><br />tweet.read<br /><br />users.read<br /><br />follows.write                                                   |
| [Follows lookup](/x-api/users/follows/introduction#follows-lookup)<br /><br />Consulta quem um usuário segue por ID<br /><br />[GET /2/users/:id/following](/x-api/users/following-by-user-id)<br /><br />Consulta os seguidores de um usuário por ID<br /><br />[GET /2/users/:id/followers](/x-api/users/followers-by-user-id)                                                                                                                                                                                                                                                                                                                          | ✅                           | ✅                                   | ✅<br /><br />Scopes:<br /><br />tweet.read<br /><br />users.read<br /><br />follows.read                                                     |
| [Blocks lookup](/x-api/users/blocks/introduction#blocks-lookup)<br /><br />Retorna uma lista de usuários bloqueados pelo user ID informado <br /><br />[GET /2/users/:id/blocking](/x-api/users/returns-user-objects-that-are-blocked-by-provided-user-id)                                                                                                                                                                                                                                                                                                                                                                                                | ✅                           |                                     | ✅<br /><br />Scopes:<br /><br />tweet.read<br /><br />users.read<br /><br />block.read                                                       |
| [Manage Mutes](/x-api/users/mutes/introduction#manage-mutes)<br /><br />Permite que um user ID mute outro usuário<br /><br />[POST /2/users/:id/muting](/x-api/users/mute-user-by-user-id)<br /><br />Permite que um user ID desmute outro usuário<br /><br />[DELETE /2/users/:source\_user\_id/muting/:target\_user\_id](/x-api/users/unmute-user-by-user-id)                                                                                                                                                                                                                                                                                           | ✅                           |                                     | ✅<br /><br />Scopes:<br /><br />tweet.read<br /><br />users.read<br /><br />mute.write                                                       |
| [Mutes lookup](/x-api/users/mutes/introduction#mutes-lookup)<br /><br />Retorna uma lista de usuários mutados pelo user ID informado<br /><br />[GET /2/users/:id/muting](/x-api/users/returns-user-objects-that-are-muted-by-the-provided-user-id)                                                                                                                                                                                                                                                                                                                                                                                                       | ✅                           |                                     | ✅<br /><br />Scopes:<br /><br />tweet.read<br /><br />users.read<br /><br />mute.read                                                        |
| [Spaces lookup](/x-api/spaces/lookup/introduction)<br /><br />Consulta um Space por ID<br /><br />[GET /2/spaces/:id](/x-api/spaces/space-lookup-by-space-id)<br /><br />Consulta múltiplos Spaces <br /><br />[GET /2/spaces](/x-api/spaces/space-lookup-up-space-ids)<br /><br />Descobre Spaces criados por user ID<br /><br />[GET /2/spaces/by/creator\_ids](/x-api/spaces/space-lookup-by-their-creators)                                                                                                                                                                                                                                           |                             | ✅                                   | ✅<br /><br />Scopes:<br /><br />tweet.read<br /><br />users.read<br /><br />space.read                                                       |
| [Spaces lookup](/x-api/spaces/lookup/introduction)<br /><br />Obtém os usuários que compraram um ingresso para um Space<br /><br />[GET /2/spaces/:id/buyers](/x-api/spaces/retrieve-the-list-of-users-who-purchased-a-ticket-to-the-given-space)                                                                                                                                                                                                                                                                                                                                                                                                         |                             |                                     | ✅<br /><br />Scopes:<br /><br />tweet.read<br /><br />users.read<br /><br />space.read                                                       |
| [Spaces search](/x-api/spaces/search/introduction)<br /><br />Retorna Spaces ao vivo ou agendados que correspondem aos termos de pesquisa informados.<br /><br />[GET /2/spaces/search](/x-api/spaces/search-for-spaces)                                                                                                                                                                                                                                                                                                                                                                                                                                  |                             | ✅                                   | ✅<br /><br />Scopes:<br /><br />tweet.read<br /><br />users.read<br /><br />space.read                                                       |
| [List lookup](/x-api/lists/list-lookup/introduction)<br /><br />Consulta uma List específica por ID<br /><br />[GET /2/lists/:id](/x-api/lists/list-lookup-by-list-id)<br /><br />Consulta as Lists de um usuário<br /><br />[GET /2/users/:id/owned\_lists](/x-api/users/get-owned-lists)                                                                                                                                                                                                                                                                                                                                                                | ✅                           | ✅                                   | ✅<br /><br />Scopes:<br /><br />tweet.read<br /><br />users.read<br /><br />list.read                                                        |
| [Manage Lists](/x-api/lists/manage-lists/introduction)<br /><br />Cria uma nova List em nome de um usuário autenticado<br /><br />[POST /2/lists](/x-api/lists/create-list)                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | ✅                           |                                     | ✅<br /><br />Scopes:<br /><br />tweet.read<br /><br />users.read<br /><br />list.read<br /><br />list.write                                  |
| [Manage Lists](/x-api/lists/manage-lists/introduction)<br /><br />Exclui uma List que o usuário autenticado possui<br /><br />[DELETE /2/lists/:id](/x-api/lists/delete-list)<br /><br />Atualiza os metadados de uma List que o usuário autenticado possui<br /><br />[PUT /2/lists/:id](/x-api/lists/update-list)                                                                                                                                                                                                                                                                                                                                       | ✅                           |                                     | ✅<br /><br />Scopes:<br /><br />tweet.read<br /><br />users.read<br /><br />list.write                                                       |
| [List Tweets lookup](/x-api/lists/list-tweets/introduction)<br /><br />Consulta os Tweets de uma List específica<br /><br />[GET /2/lists/:id/tweets](/x-api/lists/get-list-posts)                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | ✅                           | ✅                                   | ✅<br /><br />Scopes:<br /><br />tweet.read<br /><br />users.read<br /><br />list.read                                                        |
| [List members lookup](/x-api/lists/list-members/introduction#list-members-lookup)<br /><br />Retorna uma lista de membros de uma List específica<br /><br />[GET /2/lists/:id/members](/x-api/lists/get-list-members)<br /><br />Retorna todas as Lists das quais um usuário específico é membro<br /><br />[GET /2/users/:id/list\_memberships](/x-api/users/get-list-memberships)                                                                                                                                                                                                                                                                       | ✅                           | ✅                                   | ✅<br /><br />Scopes:<br /><br />tweet.read<br /><br />users.read<br /><br />list.read                                                        |
| [Manage List members](/x-api/lists/list-members/introduction#manage-list-members)<br /><br />Adiciona um membro a uma List que o usuário autenticado possui<br /><br />[POST /2/lists/:id/members](/x-api/lists/add-list-member)<br /><br />Remove um membro de uma List que o usuário autenticado possui<br /><br />[DELETE /2/lists/:id/members/:user\_id](/x-api/lists/remove-a-list-member)                                                                                                                                                                                                                                                           | ✅                           |                                     | ✅<br /><br />Scopes:<br /><br />tweet.read<br /><br />users.read<br /><br />list.write                                                       |
| [List follows lookup](/x-api/lists/list-lookup/introduction)<br /><br />Retorna todos os seguidores de uma List específica<br /><br />[GET /2/lists/:id/followers](/x-api/lists/get-list-followers)<br /><br />Retorna todas as Lists que um usuário específico segue<br /><br />[GET /2/users/:id/followed\_lists](/x-api/users/get-followed-lists)                                                                                                                                                                                                                                                                                                      | ✅                           | ✅                                   | ✅<br /><br />Scope                                                                                                                           |
