コンテンツにスキップ
Twexapi
日本語
Esc
移動開く⌘Jプレビュー

DM会話スレッド一覧取得

DM会話スレッド一覧取得.

POST/v3/twitter/conversations
API 認証
AuthorizationBearer token · header必須
TwexAPIのグローバル認証トークン (Bearer Token)。ヘッダーに含める必要があります:Authorization: Bearer <YOUR_TWEXAPI_KEY>。
リクエストボディ
必須application/json
countinteger | any
Max conversations per page (10–200, default 20).
default: 100
プロパティを表示
Any of:
integer
integer
any
any
allboolean | any
Follow the inbox cursor and return every conversation (may be slow).
default: false
プロパティを表示
Any of:
boolean
boolean
any
any
cookiestring必須
ユーザー自身が承認した Twitter セッション資格情報または auth_token(BYOC — Bring Your Own Cookie)。機密情報は保存されず、完全なステートレスプロキシとして実行されます。詳細は [認証・セキュリティガイド](/ja/authentication#write-operations--byoc-bring-your-own-cookie) および [Cookie 取得手順](https://youtube-promotion.pages.dev/how-to-get-twitter-cookie) を参照。
proxystring | any
Optional HTTP proxy. Example: http://username:password@ip:port
プロパティを表示
Any of:
string
string
any
any
レスポンス
200A list of conversation objects.
codeinteger必須
HTTP ステータスコード(200 は成功)
msgstring必須
レスポンスメッセージ(例: 'success')
dataConversationV3Model[]必須
返却されるコアデータオブジェクトまたは配列
プロパティを表示
Array of ConversationV3Model
conversation_idstring必須
Conversation id
typestring必須
Conversation type: direct or group
is_mutedboolean必須
Whether the conversation is muted
participantsstring[]必須
Participant user ids
422パラメータバリデーションエラー
detailValidationError[]
プロパティを表示
Array of ValidationError
locstring | integer[]必須
プロパティを表示
Array of string | integer
Any of:
string
string
integer
integer
msgstring必須
レスポンスメッセージ(例: 'success')
typestring必須
inputany
ctxobject
インタラクティブテストPOST
インタラクティブテスト / Try APIPOST
Live Console
🌐対象サーバー:https://api.twexapi.io
● 本番環境レディ
✍️
書き込み操作の認証情報ガイド(TwexAPIキー + Twitter Cookie)

1. TwexAPIプラットフォームキー (Bearer Token): 下記の「API認証」に入力してください(API呼び出しと課金認証に使用)。

2. TwitterアカウントCookie: ツイート・いいね・フォロー等の書き込み操作のため、下記リクエストボディの cookie フィールドに対象TwitterアカウントのCookie(例: auth_token=...; ct0=...)を入力してください。

🔑API 認証
📝リクエストボディapplication/json
📡
暂无响应数据

请在「请求配置」中确认参数后,点击底部的「发送请求」按钮。

リクエスト例
curl -X POST "https://api.twexapi.io/v3/twitter/conversations" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "count": 100,
  "all": true,
  "cookie": "ct0=abc123... or 2c4a4e1832096aa694c739b83c83b6d96d43eba7",
  "proxy": "http://username:password@ip:port"
}'
レスポンス例
{
  "code": 200,
  "msg": "success",
  "data": [
    {
      "conversation_id": "1928096185664843776:1989842918455291904",
      "type": "direct",
      "is_muted": false,
      "participants": [
        "1928096185664843776"
      ]
    }
  ]
}