TwitterAPIs Docs
API ReferenceAccount Session

Overview

Account Session: Bring your own X session cookies (recommended), or mint a session from a username and password, so write actions and private-data reads act as your account. Free.

Bring your own X session cookies (recommended), or mint a session from a username and password, so write actions and private-data reads act as your account. Free.

This category has 2 endpoints. Each is a pay-per-call REST endpoint with bearer auth, JSON in and out.

MethodPathCostDescription
POST/customer/sessionFreeRegister your auth_token and ct0 cookies once so every write and private read acts as your account, or pass them per call as x-auth-token / x-ct0 headers.
POST/user/user_loginFreeMint an X session from a username, password, and optional TOTP 2FA secret, returning auth_token, ct0, and twid. A convenience alternative to bringing your own cookies via Register Session.