Skip to main content
Glama
user_login_v2.md1.02 kB
# User Login V2 Source: https://docs.twitterapi.io/api-reference/endpoint/user_login_v2 ## Endpoint - Method: `POST` - Path: `/twitter/user_login_v2` - API URL: `https://api.twitterapi.io/twitter/user_login_v2` ## Description Log in directly using your email, username, password, and 2FA secret key. And obtain the Login_cookie, to post tweets, etc. Please note that the Login_cookie obtained through login_v2 can only be used for APIs with the "v2" suffix, such as create_tweet_v2. Trial operation price: $0.003 per call. ## Example (curl) ```bash curl --request POST \ --url https://api.twitterapi.io/twitter/user_login_v2 \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "user_name": "<string>", "email": "<string>", "password": "<string>", "proxy": "<string>", "totp_secret": "<string>" } ' ``` ## Example Response ```json { "login_cookie": "<string>", "status": "<string>", "msg": "<string>" } ``` _Scraped at: 2025-12-18T10:06:29.398Z_

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dorukardahan/twitterapi-io-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server