Download OpenAPI specification:
north をプログラムから操作するための API です
northの外部クライアント向けAPIです。IDは文字列、日時はUTC ISO8601です。
外部アプリはnorth上で利用者が権限を確認して許可します。設定 › 開発者向け でアプリを登録し、Authorization Code + PKCE(S256)またはDevice Authorization Flowを使ってください。
個人スクリプトは同じ設定画面で、名前・権限・期限を持つ個人トークンを発行できます。最大10本、既定90日、上限365日。DMを含む場合は追加確認が必要で上限30日です。トークンは発行時だけ表示します。
既存の nth_live_ キー(READ / READ_WRITE)は既存の公開機能を維持します。DM・ブックマーク・編集・プロフィール更新等の新機能は追加されません。OAuthアクセストークンと個人トークンは nth_oat_ で始まり、各操作に記載したscopeをすべて必要とします。複数のsecurity項目はOR、1つのOAuth項目内のscopeはANDです。個人トークンにも同じscopeが適用されます。
外部資格は /2 と認証付きメディア配信に限定し、Web内部の /api へ直接持ち込めません。CookieやWeb/nativeのSession Bearerだけでは /2 を利用できません。管理・メール・パスワード・2FA・資格発行・アカウント削除は外部APIの対象外です。
クライアントはpublic clientです。配布アプリにclient secretを埋め込まないでください。アクセストークンは1時間、更新トークンは発行から30日、許可作成から90日以内に更新できます。更新は毎回ローテーションし、使用済み更新トークンの再利用を検出すると、その許可全体を停止します。元のアクセストークンも更新時に失効します。同じアプリを再許可すると、そのユーザーの以前の許可を置き換えます。
コード認可の登録URLはHTTPS、または http://127.0.0.1 / http://[::1] のループバックのみ。登録文字列との完全一致で検査し、認可要求は10分、承認後のcodeは60秒、1回限りです。PKCEはS256のみ。stateを設定し、返った値をクライアント側で照合してください。
Device Flowのcodeは10分、intervalは5秒です。authorization_pending は待機、slow_down は以降の間隔を5秒延長し、access_denied / expired_token / invalid_grant は終了です。未認証OAuth要求はIPごと60回/分、device code発行はアプリごと30回/15分。コードを他人から入力するよう頼まれた場合は許可しないでください。
/2 のJSON成功応答は { "data": ... }、失敗は { "errors": [{ "code": ..., "message": ... }], "request_id": ... }。code32=認証、34=対象なし、87=権限、88=回数、89=入力/競合、131=サーバー障害です。OAuthのprotocol応答だけはRFCに従い error / access_token 等を直下に返します。旧キーのアップロード応答は既存のフラット形式を維持し、OAuth/個人トークンはdataで包みます。
JSONのPOSTは任意の Idempotency-Key(1〜128文字の可視ASCII)に対応します。資格の許可×操作×パスごとに24時間保持し、同じbodyは同じ応答、異なるbodyは409。同時処理中は409とRetry-After:1です。書込み認証を先に検査するため、取消済み資格へ成功結果を再送しません。5xx後は重複を防ぐため未完了記録を24時間保持します。媒体アップロード/APPENDには適用しません。APPENDは順番に送ってください。中断・再起動時は新しいinitializeからやり直します。
未知の書込みフィールドは400です。GET /2/tweets/{id} のETagを PUT /2/tweets/{id}/edit のIf-Matchへ渡すと、変更済みなら412。同時編集の競合は409です。プロフィールはname/bio/location/website/avatarMediaId/headerMediaIdのみ変更でき、admin/verified/privacy等は拒否します。
プロフィール画像は設定時にサーバーで検査します。元画像は4096×4096相当以内、アイコン32MiB/30秒/1800フレーム以内、ヘッダー100MiB/180秒/10800フレーム以内です。解像度×フレーム数にも処理量上限(アイコン5億、ヘッダー60億画素)があります。アイコンは中央を正方形に切り抜いた256×256のWebPへ最適化し、表示用の上限は1MiB。ヘッダーの表示用は960×320、最大60fps、動画とポスターの合計16MiB以内。透明度がある動画はWebM、その他はMP4です。元ファイルを保持し、Webでの拡大時だけ原本を使います。ヘッダーは先にポスターを生成し、背景処理の完了後に表示用動画を使います。動画の生成待ちや失敗時はその静止画を表示します。既存画像の初回要求は従来画像を返す場合があります。上限を超える設定は400です。
すべて本人の可視範囲と所有者の規則に従います。DMのGETは既読時刻とリクエスト閲覧時刻を変えません。既読は dm.receipts.write の明示操作です。参加前の本文・返信先・添付、非表示/削除済みの添付は取得できません。DM削除のscope=everyoneは送信者のみ、それ以外は本人の表示からだけ消します。
DMを読む許可は参加会話全体への許可です。会話限定grantは未提供です。取得後のアプリによる保存や転送をサーバーから取り消すことはできません。取消は次の要求/イベントで検査し、無通信のSSEも25秒以内のheartbeatで停止します。予約は元のgrantを記録し、取消・停止・送信制限を実行時に再検査してscheduleErrorに理由を残します。
OAuthでは本人だけに見える誕生日/誕生日公開設定を返さず、moderation.readを持たない資格には自分のblocking/muting/retweetsHiddenフラグも返しません。メール・パスワード・セッション・管理フラグを一般User DTOへ追加しません。
OAuthのnextCursorはユーザー・grant・scope・パス・クエリへ署名で結び付けた30分のカーソルです。同じパス/クエリ/許可でそのままcursorへ渡してください。旧キーは従来のカーソルを維持します。おすすめ/会話の順位は変動するため、完全な順位スナップショットを保証しません。会話の祖先は最大50、直接返信ページは10、返信の木は最大60ノードでtruncatedを返します。
通知SSEは一覧と同じ公開範囲・通知フィルターに従います。通知本文/DM本文はイベントに含みません。Last-Event-IDによる履歴再送は提供しないため、切断後はRESTで再取得してください。
OAuthの制限枠は時間経過に応じて補充されます。トークンを更新しても残量はリセットされません。通常の読取はgrant 900/15分、ユーザーの外部読取合計3600/15分、アプリ30000/15分。検索/会話/返信はgrant180/15分、ユーザー720/15分。一般書込みとメディア操作はgrant100/15分、ユーザー100/15分、アプリ3000/15分。APPENDは別枠でgrant/ユーザー1024/15分。DMの読取と書込みは別bucketで、書込みはgrant/ユーザー100/時、アプリ3000/時です。
業務上の送信枠はWeb・native・旧キー・OAuthをアカウントで合算します。投稿50/分・100/15分・1000/日、DM20/分・100/時・500/日、新規DM会話5/日、相手ごとのDM5/分、いいね/リポストの付け外し合計300/時、フォローの付け外し100/時。これらもtoken bucketの容量/補充期間であり、日付の切替でリセットしません。失敗した試行も枠を消費する場合があります。
SSE同時接続は1ユーザー5、1資格2、1アプリ500。アップロードHTTP同時実行はユーザー4、資格2、アプリ50。分割の進行中セッションはユーザー4、サービス全体50。メディアは1ユーザー24時間の入力容量1GiBを予約し、削除/失敗/中断しても枠を戻しません。保存容量と入力転送量は別です。
x-rate-limit-limit/remaining/resetは同じ制約の値を返し、OAuthのresetは完全補充の見込みUNIX秒です。x-north-rate-limit-scopeでgrant/user/appを区別します。429はRetry-Afterとlimit_scope、一時的なサービス障害は503とRetry-After:5を返します。旧キーの経路別固定窓は従来仕様を維持します。IPの入口制限も別に存在します。
アップロードにX-North-Media-Purposeを指定します(posts=既定、profile、draft、dm)。全用途にmedia.write、加えてprofile.write/drafts.write/dm.writeが必要です。用途はinitialize時に固定し、finalize時に変更できません。同じ所有者でもdm用途を公開投稿へ流用できません。プロフィール/リスト画像はprofile、下書き/予約/送信待ちはdraftです。既存Webからアップロードしたposts用途画像を外部アプリが他用途へ転用することも拒否します。
返る /media/... の相対URLはAPIホストを基準に解決できます。非公開/DM/下書きの配信にもBearerが必要で、所有者、参加時刻、削除・非表示の状態に応じてアクセスを制限します。URLにトークンを含めないでください。非公開画像は共有キャッシュへ保存させません。
運用監査はユーザー/アプリ/操作/対象ID/結果/時刻だけを90日保存します。DM本文、Bearer、Cookie、認可codeを監査に保存しません。
ID をカンマ区切りで指定して、最大100件のポストを一度に取得します。
応答の並びは、指定した ID の順です。 取得できないポスト(削除済み、非公開、ブロック、ミュート)は結果から除かれるため、 指定した件数より少なく返ることがあります。
OAuth/個人トークンの必要権限: posts.read。
| ids required | string Example: ids=2094961113505468189,2094959194493944012 ポストの ID をカンマで区切って指定します(100件まで) |
{- "data": {
- "items": [
- {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}
]
}
}本文、メディア、返信先、引用先を指定して投稿します。 本文とメディアはどちらか一方だけでも投稿できます。
投稿されたポストには、キーを発行するときに登録したアプリ名が投稿元として記録され、 ポストの詳細画面に表示されます。
OAuth/個人トークンの必要権限: posts.write。
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
| text | string Default: "" 本文です。全角を2、半角を1として数え、280 まで投稿できます。 |
object | |
object 返信するときに指定します | |
| quote_tweet_id | string 引用するポストの ID |
object OAuth/個人トークンのposts.writeでのみ作成できます。旧キーは403です。 |
{- "text": "はじめてのポスト"
}{- "data": {
- "id": "2094961113505468189",
- "text": "はじめてのポスト"
}
}q には north の検索窓と同じ書き方を使えます。
from:ユーザー名 や #ハッシュタグ などの絞り込みも指定できます。
センシティブな内容は既定で結果に入りません。
ポストに内容の警告が付いているもの、および投稿者が
「自分のメディアをセンシティブとして扱う」を有効にしているアカウントの
ポストは除きます(north の検索画面と同じ扱いです)。
/2/tweets/counts の件数も同じ条件で数えます。
OAuth/個人トークンの必要権限: posts.read。
| q required | string Example: q=north 検索する語句 |
| tab | string Default: "latest" Enum: "latest" "top"
|
| cursor | string 前の応答の |
{- "data": {
- "items": [
- {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}
], - "nextCursor": "string"
}
}ポストの中身は返さず、件数だけを返します。
検索と同じ条件で数えるため、GET /2/tweets/search の結果と一致します。
期間ごとに区切って数える機能はありません。
センシティブな内容は既定で数に入りません(/2/tweets/search と同じ条件)。
OAuth/個人トークンの必要権限: posts.read。
| q required | string 検索する語句 |
{- "data": {
- "count": 42
}
}非公開アカウントのポストは、承認されたフォロワーと本人だけが取得できます。
ミュートまたはブロックしている相手のポストには hiddenReason が付きます。
本文は返るので、伏せて表示するか、そのまま表示するかを選べます。
OAuth/個人トークンの必要権限: posts.read。
| id required | string^[0-9]+$ Example: 2094961113505468189 ポストの ID |
{- "data": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}
}引用元のポストを取得できない場合は 404 が返ります。
OAuth/個人トークンの必要権限: posts.read。
| id required | string^[0-9]+$ Example: 2094961113505468189 ポストの ID |
| cursor | string 前の応答の |
{- "data": {
- "items": [
- {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}
], - "nextCursor": "string"
}
}OAuth/個人トークンの必要権限: posts.read。 旧キーでは利用できません。
| id required | string 対象の文字列IDまたはハンドル |
| cursor | string 同じ操作が返したnextCursor。OAuthは30分・許可/クエリに束縛されます。nextCursorのない一覧は指定不要です。 |
{- "data": {
- "ancestors": [
- {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}
], - "tweet": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}, - "replies": [
- {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}
], - "nextCursor": "string"
}
}OAuth/個人トークンの必要権限: posts.read。 旧キーでは利用できません。
| id required | string 対象の文字列IDまたはハンドル |
| cursor | string 同じ操作が返したnextCursor。OAuthは30分・許可/クエリに束縛されます。nextCursorのない一覧は指定不要です。 |
{- "data": {
- "items": [
- {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}
], - "nextCursor": "string",
- "truncated": true
}
}OAuth/個人トークンの必要権限: posts.read。 旧キーでは利用できません。
| id required | string 対象の文字列IDまたはハンドル |
{- "data": {
- "tweet": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}, - "versions": [
- {
- "id": "string",
- "text": "string",
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "current": true
}
]
}
}OAuth/個人トークンの必要権限: posts.read。 旧キーでは利用できません。
| id required | string 対象の文字列IDまたはハンドル |
| cursor | string 同じ操作が返したnextCursor。OAuthは30分・許可/クエリに束縛されます。nextCursorのない一覧は指定不要です。 |
{- "data": {
- "items": [
- {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}
], - "nextCursor": "string"
}
}OAuth/個人トークンの必要権限: posts.read。 旧キーでは利用できません。
| id required | string 対象の文字列IDまたはハンドル |
| cursor | string 同じ操作が返したnextCursor。OAuthは30分・許可/クエリに束縛されます。nextCursorのない一覧は指定不要です。 |
{- "data": {
- "items": [
- {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}
], - "nextCursor": "string"
}
}OAuth/個人トークンの必要権限: posts.edit。 旧キーでは利用できません。
| id required | string 対象の文字列IDまたはハンドル |
| If-Match | string GET /2/tweets/{id}が返したETag。古い場合412。 |
| text | string |
| mediaIds | Array of strings <= 4 items |
{- "text": "string",
- "mediaIds": [
- "string"
]
}{- "data": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}
}OAuth/個人トークンの必要権限: polls.vote。 旧キーでは利用できません。
| id required | string 対象の文字列IDまたはハンドル |
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
| optionId required | string |
{- "optionId": "string"
}{- "data": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}
}OAuth/個人トークンの必要権限: posts.write。 旧キーでは利用できません。
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
required | Array of objects (ThreadItemInput) [ 1 .. 25 ] items |
{- "items": [
- {
- "text": "string",
- "mediaIds": [
- "string"
], - "replyPolicy": "EVERYONE",
- "poll": {
- "options": [
- "string",
- "string"
], - "durationMinutes": 5
}
}
]
}{- "data": {
- "items": [
- {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}
]
}
}省略時は、フォローしているアカウントと自分のポストを新しい順に返します。
ranked=1 を付けると、おすすめの並びになります。
誰もフォローしていない場合、新しい順では自分のポストだけが返ります。 おすすめはフォロー関係を使わないため、この場合でもポストが返ります。
OAuth/個人トークンの必要権限: posts.read。
| ranked | string Default: "0" Enum: "0" "1"
|
| cursor | string 前の応答の |
{- "data": {
- "items": [
- {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}
], - "nextCursor": "string"
}
}応答には、操作後の状態といいねの数が入ります。 すでにいいねしているポストに送っても成功し、数は変わりません。
OAuth/個人トークンの必要権限: reactions.write。
| id required | string^[0-9]+$ Example: 2094961113505468189 ポストの ID |
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
{- "data": {
- "liked": true,
- "likeCount": 4
}
}OAuth/個人トークンの必要権限: reactions.write。
| id required | string^[0-9]+$ Example: 2094961113505468189 ポストの ID |
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
{- "data": {
- "retweeted": true,
- "retweetCount": 4
}
}ユーザー名をカンマ区切りで指定して、最大100件のアカウントを一度に取得します。
先頭の @ は付けても付けなくても構いません。
応答の並びは、指定した順です。存在しないアカウントは結果から除かれます。
OAuth/個人トークンの必要権限: users.read。
| handles required | string Example: handles=northtest,tester ユーザー名をカンマで区切って指定します(100件まで) |
{- "data": {
- "items": [
- {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}
]
}
}{- "data": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}
}OAuth/個人トークンの必要権限: profile.write。 旧キーでは利用できません。
| name | string <= 50 characters |
| bio | string or null <= 160 characters |
| location | string or null <= 30 characters |
| website | string or null <= 100 characters |
| avatarMediaId | string or null |
| headerMediaId | string or null |
{- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarMediaId": "string",
- "headerMediaId": "string"
}{- "data": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}
}非公開アカウントでも、プロフィール自体は取得できます。 ポストとフォロー・フォロワーの一覧だけが取得できません。
OAuth/個人トークンの必要権限: users.read。
| handle required | string Example: northtest ユーザー名(先頭の |
{- "data": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}
}返信は入りません。 north のプロフィールの「ポスト」タブと同じで、
他の人への返信を除いた自分のポストとリポストだけを返します。
返信も含めて読みたいときは GET /2/users/{handle}/mentions や
個々のポストの会話を使ってください。
非公開アカウントのポストを取得できない場合は、空の一覧が返ります。
アカウント自体は存在するため 404 にはなりません。
OAuth/個人トークンの必要権限: posts.read。
| handle required | string Example: northtest ユーザー名(先頭の |
| cursor | string 前の応答の |
{- "data": {
- "items": [
- {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}
], - "nextCursor": "string"
}
}本文に @ユーザー名 を含む公開のポストを新しい順に返します。
大文字と小文字は区別しません。リポストは含みません。
通知とは別のものです。通知は本人だけが読めますが、こちらは誰でも取得できます。
OAuth/個人トークンの必要権限: posts.read。
| handle required | string Example: northtest ユーザー名(先頭の |
| cursor | string 前の応答の |
{- "data": {
- "items": [
- {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}
], - "nextCursor": "string"
}
}非公開アカウントのポストは、いいねの一覧にも含まれません。
OAuth/個人トークンの必要権限: posts.read。
| handle required | string Example: northtest ユーザー名(先頭の |
| cursor | string 前の応答の |
{- "data": {
- "items": [
- {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}
], - "nextCursor": "string"
}
}非公開アカウントのフォロワーは、承認されたフォロワーと本人だけが取得できます。 取得できない場合は空の一覧が返ります。
OAuth/個人トークンの必要権限: users.read。
| handle required | string Example: northtest ユーザー名(先頭の |
| cursor | string 前の応答の |
{- "data": {
- "items": [
- {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}
], - "nextCursor": "string"
}
}OAuth/個人トークンの必要権限: users.read。
| handle required | string Example: northtest ユーザー名(先頭の |
| cursor | string 前の応答の |
{- "data": {
- "items": [
- {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}
], - "nextCursor": "string"
}
}OAuth/個人トークンの必要権限: moderation.read。 旧キーでは利用できません。
| cursor | string 同じ操作が返したnextCursor。OAuthは30分・許可/クエリに束縛されます。nextCursorのない一覧は指定不要です。 |
{- "data": {
- "items": [
- {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}
], - "nextCursor": "string"
}
}OAuth/個人トークンの必要権限: notifications.write。 旧キーでは利用できません。
| handle required | string 対象の文字列IDまたはハンドル |
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
{- "data": {
- "ok": true
}
}相手が非公開アカウントの場合はフォローリクエストになり、 承認されるまでフォローは成立しません。
どちらかがブロックしている場合は 403 が返ります。
OAuth/個人トークンの必要権限: follows.write。
| handle required | string Example: northtest ユーザー名(先頭の |
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
{- "data": {
- "ok": true
}
}ブロックすると、双方のフォローが解除されます。
OAuth/個人トークンの必要権限: moderation.write。
| handle required | string Example: northtest ユーザー名(先頭の |
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
{- "data": {
- "ok": true
}
}ミュートしてもフォローは解除されません。 相手のポストがタイムラインと通知から除かれます。
引用や会話の中に含まれるポストには hiddenReason が付いた状態で返ります。
OAuth/個人トークンの必要権限: moderation.write。
| handle required | string Example: northtest ユーザー名(先頭の |
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
{- "data": {
- "ok": true
}
}OAuth/個人トークンの必要権限: moderation.read。 旧キーでは利用できません。
| cursor | string 同じ操作が返したnextCursor。OAuthは30分・許可/クエリに束縛されます。nextCursorのない一覧は指定不要です。 |
{- "data": {
- "items": [
- {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}
], - "nextCursor": "string"
}
}OAuth/個人トークンの必要権限: users.read。 旧キーでは利用できません。
| cursor | string 同じ操作が返したnextCursor。OAuthは30分・許可/クエリに束縛されます。nextCursorのない一覧は指定不要です。 |
{- "data": {
- "items": [
- {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}
], - "nextCursor": "string"
}
}OAuth/個人トークンの必要権限: follows.write。 旧キーでは利用できません。
| handle required | string 対象の文字列IDまたはハンドル |
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
{- "data": {
- "ok": true
}
}OAuth/個人トークンの必要権限: moderation.read。 旧キーでは利用できません。
| cursor | string 同じ操作が返したnextCursor。OAuthは30分・許可/クエリに束縛されます。nextCursorのない一覧は指定不要です。 |
| word required | string [ 1 .. 100 ] characters |
| home | boolean |
| notifications | boolean |
| fromAnyone | boolean |
| duration | string Enum: "forever" "24h" "7d" "30d" |
{- "word": "string",
- "home": true,
- "notifications": true,
- "fromAnyone": true,
- "duration": "forever"
}{- "data": {
- "items": [
- {
- "id": "string",
- "word": "string",
- "home": true,
- "notifications": true,
- "fromAnyone": true,
- "expiresAt": "2019-08-24T14:15:22Z"
}
]
}
}OAuth/個人トークンの必要権限: moderation.write。 旧キーでは利用できません。
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
| word required | string [ 1 .. 100 ] characters |
| home | boolean |
| notifications | boolean |
| fromAnyone | boolean |
| duration | string Enum: "forever" "24h" "7d" "30d" |
{- "word": "string",
- "home": true,
- "notifications": true,
- "fromAnyone": true,
- "duration": "forever"
}{- "data": {
- "id": "string",
- "word": "string",
- "home": true,
- "notifications": true,
- "fromAnyone": true,
- "expiresAt": "2019-08-24T14:15:22Z"
}
}multipart/form-data で1件ずつ送ります。
応答の id を POST /2/tweets の media.media_ids に指定してください。
100MB を超えるファイルは分割アップロードを使ってください。
アップロードしたまま、どのポストにも添付しなかったメディアは自動的に削除されます。
OAuth/個人トークンの必要権限: media.write。
| X-North-Media-Purpose | string Default: posts Enum: "posts" "profile" "draft" "dm" initialize/upload時の用途。全用途にmedia.write、私的用途は追加の権限が必要です。 |
| file required | string <binary> 画像、GIF、動画 |
{- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}100MB を超えるファイルをアップロードするときに使います。
全体の大きさをここで申告するため、24時間の容量の上限を超える場合は
1片も送る前に 429 が返ります。
応答の chunkSize に従ってファイルを分割し、append に順番に送ってください。
OAuth/個人トークンの必要権限: media.write。
| X-North-Media-Purpose | string Default: posts Enum: "posts" "profile" "draft" "dm" initialize/upload時の用途。全用途にmedia.write、私的用途は追加の権限が必要です。 |
| size required | integer ファイル全体のバイト数 |
| mimetype required | string |
{- "size": 0,
- "mimetype": "video/mp4"
}{- "data": {
- "uploadId": "string",
- "chunkSize": 0
}
}本文にファイルの一部をそのまま入れて送ります。先頭から順番に送ってください。
OAuth/個人トークンの必要権限: media.write。
| id required | string 分割アップロードの開始時に返された |
| X-North-Media-Purpose | string Default: posts Enum: "posts" "profile" "draft" "dm" initialize/upload時の用途。全用途にmedia.write、私的用途は追加の権限が必要です。 |
{- "data": {
- "received": 0,
- "size": 0
}
}すべての片を送ってから呼び出します。
動画はここから変換が始まるため、すぐには使えません。
status が READY になる前にポストへ添付すると 409 が返ります。
OAuth/個人トークンの必要権限: media.write。
| id required | string 分割アップロードの開始時に返された |
| X-North-Media-Purpose | string Default: posts Enum: "posts" "profile" "draft" "dm" initialize/upload時の用途。全用途にmedia.write、私的用途は追加の権限が必要です。 |
{- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}画像の内容を説明する文章を設定します。 自分がアップロードしたメディアにだけ設定できます。 ポストに添付したあとでも変更できます。
OAuth/個人トークンの必要権限: media.write。
| id required | string^[0-9]+$ メディアの ID |
required | object |
{- "alt_text": {
- "text": "夕暮れの海辺の写真"
}
}{- "data": {
- "ok": true
}
}OAuth/個人トークンの必要権限: media.write。 旧キーでは利用できません。
| id required | string 対象の文字列IDまたはハンドル |
{- "data": {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
}OAuth/個人トークンの必要権限: media.write。 旧キーでは利用できません。
| id required | string 対象の文字列IDまたはハンドル |
| warning required | string or null Enum: "NUDITY" "VIOLENCE" "SENSITIVE" null |
{- "warning": "NUDITY"
}{- "data": {
- "warning": "string"
}
}鍵の持ち主あての通知を新しい順に返します。他人の通知は取得できません。
同じ種類の通知はまとめられます(actorCount が人数、groupCount がまとめた件数)。
groupCount が 2 以上の行は複数のポストを覆うため、tweet は入りません。
画面の通知欄と同じ絞り込みが掛かります。ミュート・ブロックした相手のものと、 つながっていない非公開アカウントからの返信・メンション・引用は含まれません。
OAuth/個人トークンの必要権限: notifications.read。
| cursor | string 前の応答の |
| tab | string Default: "all" Enum: "all" "verified" "mentions"
|
{- "data": {
- "items": [
- {
- "id": "string",
- "kind": "FOLLOW",
- "actors": [
- {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}
], - "actorCount": 0,
- "groupCount": 0,
- "targetCount": 0,
- "tweet": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}, - "createdAt": "2019-08-24T14:15:22Z",
- "read": true
}
], - "nextCursor": "string"
}
}自分宛ての通知を Server-Sent Events(SSE)で受け取ります。
Authorization: Bearer … を付けて接続してください。
event: notification
data: {"id":"…","kind":"LIKE","tweetId":"…","createdAt":"…"}
kind は FOLLOW REPLY MENTION QUOTE LIKE RETWEET POST です。
イベントに本文は含まれません。通知を受け取ったら GET /2/notifications で一覧を取得してください。
25秒ごとに heartbeat を送り、再接続の待機時間は5秒です。
過去のイベントは再送しません。Last-Event-ID による再開には対応していません。
再接続後は通知一覧を取得してください。
同時接続は1ユーザー5接続、1資格2接続、1アプリ500接続までです。
資格の失効はイベント送信時と heartbeat で検査します。
OAuth/個人トークンには notifications.read が必要です。
{- "errors": [
- {
- "code": 89,
- "message": "リクエストの形が正しくありません"
}
]
}未読の通知を既読にします。通知の詳細フィルターで隠れているものは既読にしません。
読み取りと書き込みの権限が必要です。読み取りのみのキーでは 403 を返します。
OAuth/個人トークンの必要権限: notifications.write。
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
{- "data": {
- "marked": 0
}
}application/x-www-form-urlencoded、またはapplication/jsonを受け付けます。応答はOAuthのフラット形式。Cache-Control:no-store。
| client_id required | string |
| scope required | string |
{- "device_code": "string",
- "user_code": "string",
- "expires_in": 0,
- "interval": 0
}application/x-www-form-urlencoded、またはapplication/jsonを受け付けます。応答はOAuthのフラット形式。Cache-Control:no-store。
| client_id required | string |
| grant_type required | string Enum: "authorization_code" "urn:ietf:params:oauth:grant-type:device_code" "refresh_token" |
| code | string |
| code_verifier | string [ 43 .. 128 ] characters |
| redirect_uri | string |
| device_code | string |
| refresh_token | string |
{- "access_token": "string",
- "refresh_token": "string",
- "token_type": "Bearer",
- "expires_in": 3600,
- "scope": "string"
}application/x-www-form-urlencoded、またはapplication/jsonを受け付けます。応答はOAuthのフラット形式。Cache-Control:no-store。
| client_id required | string |
| token required | string |
{ }OAuth/個人トークンの必要権限: bookmarks.read。 旧キーでは利用できません。
| cursor | string 同じ操作が返したnextCursor。OAuthは30分・許可/クエリに束縛されます。nextCursorのない一覧は指定不要です。 |
{- "data": {
- "items": [
- {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}
], - "nextCursor": "string",
- "folder": {
- "id": "string",
- "name": "string",
- "color": "string",
- "count": 0,
- "createdAt": "2019-08-24T14:15:22Z"
}
}
}OAuth/個人トークンの必要権限: bookmarks.write。 旧キーでは利用できません。
| id required | string 対象の文字列IDまたはハンドル |
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
{- "data": {
- "bookmarked": true,
- "ok": true
}
}OAuth/個人トークンの必要権限: bookmarks.read。 旧キーでは利用できません。
| cursor | string 同じ操作が返したnextCursor。OAuthは30分・許可/クエリに束縛されます。nextCursorのない一覧は指定不要です。 |
{- "data": {
- "items": [
- {
- "id": "string",
- "name": "string",
- "color": "string",
- "count": 0,
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
}OAuth/個人トークンの必要権限: bookmarks.write。 旧キーでは利用できません。
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
| name required | string [ 1 .. 25 ] characters |
{- "name": "string"
}{- "data": {
- "id": "string",
- "name": "string",
- "color": "string",
- "count": 0,
- "createdAt": "2019-08-24T14:15:22Z"
}
}OAuth/個人トークンの必要権限: bookmarks.write。 旧キーでは利用できません。
| id required | string 対象の文字列IDまたはハンドル |
| name required | string [ 1 .. 25 ] characters |
{- "name": "string"
}{- "data": {
- "id": "string",
- "name": "string",
- "color": "string",
- "count": 0,
- "createdAt": "2019-08-24T14:15:22Z"
}
}OAuth/個人トークンの必要権限: bookmarks.read。 旧キーでは利用できません。
| id required | string 対象の文字列IDまたはハンドル |
| cursor | string 同じ操作が返したnextCursor。OAuthは30分・許可/クエリに束縛されます。nextCursorのない一覧は指定不要です。 |
{- "data": {
- "items": [
- {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}
], - "nextCursor": "string",
- "folder": {
- "id": "string",
- "name": "string",
- "color": "string",
- "count": 0,
- "createdAt": "2019-08-24T14:15:22Z"
}
}
}OAuth/個人トークンの必要権限: bookmarks.read。 旧キーでは利用できません。
| id required | string 対象の文字列IDまたはハンドル |
| cursor | string 同じ操作が返したnextCursor。OAuthは30分・許可/クエリに束縛されます。nextCursorのない一覧は指定不要です。 |
{- "data": {
- "items": [
- {
- "id": "string",
- "name": "string",
- "color": "string",
- "count": 0,
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
}OAuth/個人トークンの必要権限: bookmarks.write。 旧キーでは利用できません。
| folderId required | string 対象の文字列IDまたはハンドル |
| tweetId required | string 対象の文字列IDまたはハンドル |
{- "data": {
- "bookmarked": true,
- "ok": true
}
}OAuth/個人トークンの必要権限: bookmarks.write。 旧キーでは利用できません。
| folderId required | string 対象の文字列IDまたはハンドル |
| tweetId required | string 対象の文字列IDまたはハンドル |
{- "data": {
- "ok": true
}
}OAuth/個人トークンの必要権限: lists.read。 旧キーでは利用できません。
| cursor | string 同じ操作が返したnextCursor。OAuthは30分・許可/クエリに束縛されます。nextCursorのない一覧は指定不要です。 |
{- "data": {
- "items": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "private": true,
- "bannerUrl": "string",
- "memberCount": 0,
- "followerCount": 0,
- "owner": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "ownedByViewer": true,
- "followedByViewer": true,
- "pinnedByViewer": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "followed": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "private": true,
- "bannerUrl": "string",
- "memberCount": 0,
- "followerCount": 0,
- "owner": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "ownedByViewer": true,
- "followedByViewer": true,
- "pinnedByViewer": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "pinned": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "private": true,
- "bannerUrl": "string",
- "memberCount": 0,
- "followerCount": 0,
- "owner": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "ownedByViewer": true,
- "followedByViewer": true,
- "pinnedByViewer": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
}OAuth/個人トークンの必要権限: lists.write。 旧キーでは利用できません。
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
| name required | string [ 1 .. 25 ] characters |
| description | string or null <= 100 characters |
| private | boolean |
| bannerMediaId | string or null |
{- "name": "string",
- "description": "string",
- "private": true,
- "bannerMediaId": "string"
}{- "data": {
- "id": "string",
- "name": "string",
- "description": "string",
- "private": true,
- "bannerUrl": "string",
- "memberCount": 0,
- "followerCount": 0,
- "owner": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "ownedByViewer": true,
- "followedByViewer": true,
- "pinnedByViewer": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
}OAuth/個人トークンの必要権限: lists.read。 旧キーでは利用できません。
| cursor | string 同じ操作が返したnextCursor。OAuthは30分・許可/クエリに束縛されます。nextCursorのない一覧は指定不要です。 |
| handle required | string 参加状態を調べるアカウント。返るのは自分の所有リストのみ。 |
{- "data": {
- "items": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "private": true,
- "bannerUrl": "string",
- "memberCount": 0,
- "followerCount": 0,
- "owner": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "ownedByViewer": true,
- "followedByViewer": true,
- "pinnedByViewer": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "contains": true
}
]
}
}OAuth/個人トークンの必要権限: lists.read。 旧キーでは利用できません。
| id required | string 対象の文字列IDまたはハンドル |
| cursor | string 同じ操作が返したnextCursor。OAuthは30分・許可/クエリに束縛されます。nextCursorのない一覧は指定不要です。 |
{- "data": {
- "id": "string",
- "name": "string",
- "description": "string",
- "private": true,
- "bannerUrl": "string",
- "memberCount": 0,
- "followerCount": 0,
- "owner": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "ownedByViewer": true,
- "followedByViewer": true,
- "pinnedByViewer": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
}OAuth/個人トークンの必要権限: lists.write。 旧キーでは利用できません。
| id required | string 対象の文字列IDまたはハンドル |
| name | string [ 1 .. 25 ] characters |
| description | string or null <= 100 characters |
| private | boolean |
| bannerMediaId | string or null |
{- "name": "string",
- "description": "string",
- "private": true,
- "bannerMediaId": "string"
}{- "data": {
- "id": "string",
- "name": "string",
- "description": "string",
- "private": true,
- "bannerUrl": "string",
- "memberCount": 0,
- "followerCount": 0,
- "owner": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "ownedByViewer": true,
- "followedByViewer": true,
- "pinnedByViewer": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
}OAuth/個人トークンの必要権限: lists.read。 旧キーでは利用できません。
| id required | string 対象の文字列IDまたはハンドル |
| cursor | string 同じ操作が返したnextCursor。OAuthは30分・許可/クエリに束縛されます。nextCursorのない一覧は指定不要です。 |
{- "data": {
- "items": [
- {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}
], - "nextCursor": "string"
}
}OAuth/個人トークンの必要権限: lists.read。 旧キーでは利用できません。
| id required | string 対象の文字列IDまたはハンドル |
| cursor | string 同じ操作が返したnextCursor。OAuthは30分・許可/クエリに束縛されます。nextCursorのない一覧は指定不要です。 |
{- "data": {
- "items": [
- {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}
], - "nextCursor": "string"
}
}OAuth/個人トークンの必要権限: lists.write。 旧キーでは利用できません。
| id required | string 対象の文字列IDまたはハンドル |
| handle required | string 対象の文字列IDまたはハンドル |
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
{- "data": {
- "ok": true
}
}OAuth/個人トークンの必要権限: lists.write。 旧キーでは利用できません。
| id required | string 対象の文字列IDまたはハンドル |
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
{- "data": {
- "ok": true
}
}OAuth/個人トークンの必要権限: lists.write。 旧キーでは利用できません。
| id required | string 対象の文字列IDまたはハンドル |
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
{- "data": {
- "ok": true
}
}OAuth/個人トークンの必要権限: drafts.read。 旧キーでは利用できません。
| cursor | string 同じ操作が返したnextCursor。OAuthは30分・許可/クエリに束縛されます。nextCursorのない一覧は指定不要です。 |
{- "data": {
- "items": [
- {
- "id": "string",
- "items": [
- {
- "text": "string",
- "replyPolicy": "string",
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
]
}
], - "quotedTweet": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}, - "inReplyToTweet": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}
}OAuth/個人トークンの必要権限: drafts.write。 旧キーでは利用できません。
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
required | Array of objects (DraftItemInput) [ 1 .. 25 ] items |
| quotedId | string or null |
| inReplyToId | string or null |
{- "items": [
- {
- "text": "string",
- "mediaIds": [
- "string"
], - "replyPolicy": "EVERYONE"
}
], - "quotedId": "string",
- "inReplyToId": "string"
}{- "data": {
- "id": "string",
- "items": [
- {
- "text": "string",
- "replyPolicy": "string",
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
]
}
], - "quotedTweet": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}, - "inReplyToTweet": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}OAuth/個人トークンの必要権限: drafts.write。 旧キーでは利用できません。
| ids required | Array of strings [ 1 .. 200 ] items |
{- "ids": [
- "string"
]
}{- "data": {
- "deleted": 0
}
}OAuth/個人トークンの必要権限: drafts.write。 旧キーでは利用できません。
| id required | string 対象の文字列IDまたはハンドル |
required | Array of objects (DraftItemInput) [ 1 .. 25 ] items |
| quotedId | string or null |
| inReplyToId | string or null |
{- "items": [
- {
- "text": "string",
- "mediaIds": [
- "string"
], - "replyPolicy": "EVERYONE"
}
], - "quotedId": "string",
- "inReplyToId": "string"
}{- "data": {
- "id": "string",
- "items": [
- {
- "text": "string",
- "replyPolicy": "string",
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
]
}
], - "quotedTweet": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}, - "inReplyToTweet": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}OAuth/個人トークンの必要権限: drafts.read。 旧キーでは利用できません。
| cursor | string 同じ操作が返したnextCursor。OAuthは30分・許可/クエリに束縛されます。nextCursorのない一覧は指定不要です。 |
{- "data": {
- "items": [
- {
- "id": "string",
- "items": [
- {
- "text": "string",
- "replyPolicy": "string",
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
]
}
], - "quotedTweet": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}, - "inReplyToTweet": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "scheduledAt": "2019-08-24T14:15:22Z",
- "scheduleError": "string"
}
]
}
}OAuth/個人トークンの必要権限: posts.schedule, posts.write。 旧キーでは利用できません。
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
required | object (DraftItemInput) |
| scheduledAt required | string <date-time> |
| quotedId | string or null |
| inReplyToId | string or null |
| fromDraftId | string or null |
{- "item": {
- "text": "string",
- "mediaIds": [
- "string"
], - "replyPolicy": "EVERYONE"
}, - "scheduledAt": "2019-08-24T14:15:22Z",
- "quotedId": "string",
- "inReplyToId": "string",
- "fromDraftId": "string"
}{- "data": {
- "id": "string",
- "items": [
- {
- "text": "string",
- "replyPolicy": "string",
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
]
}
], - "quotedTweet": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}, - "inReplyToTweet": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "scheduledAt": "2019-08-24T14:15:22Z",
- "scheduleError": "string"
}
}OAuth/個人トークンの必要権限: posts.schedule, posts.write。 旧キーでは利用できません。
| ids required | Array of strings [ 1 .. 200 ] items |
{- "ids": [
- "string"
]
}{- "data": {
- "deleted": 0
}
}OAuth/個人トークンの必要権限: posts.schedule, posts.write。 旧キーでは利用できません。
| id required | string 対象の文字列IDまたはハンドル |
required | object (DraftItemInput) |
| scheduledAt required | string <date-time> |
| quotedId | string or null |
| inReplyToId | string or null |
| fromDraftId | string or null |
{- "item": {
- "text": "string",
- "mediaIds": [
- "string"
], - "replyPolicy": "EVERYONE"
}, - "scheduledAt": "2019-08-24T14:15:22Z",
- "quotedId": "string",
- "inReplyToId": "string",
- "fromDraftId": "string"
}{- "data": {
- "id": "string",
- "items": [
- {
- "text": "string",
- "replyPolicy": "string",
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
]
}
], - "quotedTweet": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}, - "inReplyToTweet": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "scheduledAt": "2019-08-24T14:15:22Z",
- "scheduleError": "string"
}
}OAuth/個人トークンの必要権限: drafts.read。 旧キーでは利用できません。 Webの「送信を取り消す」設定が対象の投稿種別で有効である必要があります。
| cursor | string 同じ操作が返したnextCursor。OAuthは30分・許可/クエリに束縛されます。nextCursorのない一覧は指定不要です。 |
{- "data": {
- "items": [
- {
- "id": "string",
- "items": [
- {
- "text": "string",
- "replyPolicy": "string",
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
]
}
], - "quotedTweet": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}, - "inReplyToTweet": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "undoUntil": "2019-08-24T14:15:22Z",
- "scheduleError": "string"
}
]
}
}OAuth/個人トークンの必要権限: drafts.write, posts.write。 旧キーでは利用できません。 Webの「送信を取り消す」設定が対象の投稿種別で有効である必要があります。
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
required | object (DraftItemInput) |
| inReplyToId | string or null |
| fromDraftId | string or null |
{- "item": {
- "text": "string",
- "mediaIds": [
- "string"
], - "replyPolicy": "EVERYONE"
}, - "inReplyToId": "string",
- "fromDraftId": "string"
}{- "data": {
- "id": "string",
- "items": [
- {
- "text": "string",
- "replyPolicy": "string",
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
]
}
], - "quotedTweet": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}, - "inReplyToTweet": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "undoUntil": "2019-08-24T14:15:22Z",
- "scheduleError": "string"
}
}OAuth/個人トークンの必要権限: drafts.write, posts.write。 旧キーでは利用できません。
| id required | string 対象の文字列IDまたはハンドル |
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
{- "data": {
- "sent": true
}
}OAuth/個人トークンの必要権限: drafts.write。 旧キーでは利用できません。
| id required | string 対象の文字列IDまたはハンドル |
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
{- "data": {
- "id": "string",
- "items": [
- {
- "text": "string",
- "replyPolicy": "string",
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
]
}
], - "quotedTweet": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}, - "inReplyToTweet": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}OAuth/個人トークンの必要権限: dm.read。 旧キーでは利用できません。 本人の参加・参加開始時刻・受信/ブロック条件を検査します。GETは既読化しません。
| cursor | string 同じ操作が返したnextCursor。OAuthは30分・許可/クエリに束縛されます。nextCursorのない一覧は指定不要です。 |
| requests | string Enum: "true" "false" trueで未承認リクエスト一覧 |
{- "data": {
- "items": [
- {
- "id": "string",
- "name": "string",
- "group": true,
- "participants": [
- {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}
], - "lastMessage": {
- "id": "string",
- "conversationId": "string",
- "sender": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "read": true,
- "system": true,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "reactions": [
- {
- "emoji": "string",
- "count": 0,
- "reactedByViewer": true,
- "users": [
- {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}
]
}
], - "replyTo": {
- "id": "string",
- "deleted": true,
- "sender": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "text": "string",
- "hasMedia": true
}, - "tweet": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}
}, - "unreadCount": 0,
- "request": true,
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "nextCursor": "string",
- "requestCount": 0
}
}OAuth/個人トークンの必要権限: dm.conversations.write。 旧キーでは利用できません。 本人の参加・参加開始時刻・受信/ブロック条件を検査します。GETは既読化しません。
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
| handle | string [ 1 .. 15 ] characters |
| handles | Array of strings [ 1 .. 19 ] items [ items <= 15 characters ] |
{- "handle": "string",
- "handles": [
- "string"
]
}{- "data": {
- "id": "string",
- "name": "string",
- "group": true,
- "participants": [
- {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}
], - "lastMessage": {
- "id": "string",
- "conversationId": "string",
- "sender": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "read": true,
- "system": true,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "reactions": [
- {
- "emoji": "string",
- "count": 0,
- "reactedByViewer": true,
- "users": [
- {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}
]
}
], - "replyTo": {
- "id": "string",
- "deleted": true,
- "sender": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "text": "string",
- "hasMedia": true
}, - "tweet": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}
}, - "unreadCount": 0,
- "request": true,
- "updatedAt": "2019-08-24T14:15:22Z"
}
}OAuth/個人トークンの必要権限: dm.conversations.write。 旧キーでは利用できません。 本人の参加・参加開始時刻・受信/ブロック条件を検査します。GETは既読化しません。
| id required | string 対象の文字列IDまたはハンドル |
| name required | string [ 1 .. 50 ] characters |
{- "name": "string"
}{- "data": {
- "ok": true
}
}OAuth/個人トークンの必要権限: dm.conversations.write。 旧キーでは利用できません。 本人の参加・参加開始時刻・受信/ブロック条件を検査します。GETは既読化しません。
| id required | string 対象の文字列IDまたはハンドル |
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
| handles required | Array of strings [ 1 .. 19 ] items [ items <= 15 characters ] |
{- "handles": [
- "string"
]
}{- "data": {
- "ok": true
}
}OAuth/個人トークンの必要権限: dm.conversations.write。 旧キーでは利用できません。 本人の参加・参加開始時刻・受信/ブロック条件を検査します。GETは既読化しません。
| id required | string 対象の文字列IDまたはハンドル |
{- "data": {
- "ok": true
}
}OAuth/個人トークンの必要権限: dm.read。 旧キーでは利用できません。 本人の参加・参加開始時刻・受信/ブロック条件を検査します。GETは既読化しません。
| id required | string 対象の文字列IDまたはハンドル |
| cursor | string 同じ操作が返したnextCursor。OAuthは30分・許可/クエリに束縛されます。nextCursorのない一覧は指定不要です。 |
{- "data": {
- "items": [
- {
- "id": "string",
- "conversationId": "string",
- "sender": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "read": true,
- "system": true,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "reactions": [
- {
- "emoji": "string",
- "count": 0,
- "reactedByViewer": true,
- "users": [
- {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}
]
}
], - "replyTo": {
- "id": "string",
- "deleted": true,
- "sender": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "text": "string",
- "hasMedia": true
}, - "tweet": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}
}
], - "nextCursor": "string",
- "conversation": {
- "id": "string",
- "name": "string",
- "group": true,
- "participants": [
- {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}
], - "lastMessage": {
- "id": "string",
- "conversationId": "string",
- "sender": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "read": true,
- "system": true,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "reactions": [
- {
- "emoji": "string",
- "count": 0,
- "reactedByViewer": true,
- "users": [
- {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}
]
}
], - "replyTo": {
- "id": "string",
- "deleted": true,
- "sender": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "text": "string",
- "hasMedia": true
}, - "tweet": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}
}, - "unreadCount": 0,
- "request": true,
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
}OAuth/個人トークンの必要権限: dm.write。 旧キーでは利用できません。 本人の参加・参加開始時刻・受信/ブロック条件を検査します。GETは既読化しません。
| id required | string 対象の文字列IDまたはハンドル |
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
| text | string <= 10000 characters |
| mediaIds | Array of strings <= 1 items |
| replyToId | string or null |
{- "text": "string",
- "mediaIds": [
- "string"
], - "replyToId": "string"
}{- "data": {
- "id": "string",
- "conversationId": "string",
- "sender": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "read": true,
- "system": true,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "reactions": [
- {
- "emoji": "string",
- "count": 0,
- "reactedByViewer": true,
- "users": [
- {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}
]
}
], - "replyTo": {
- "id": "string",
- "deleted": true,
- "sender": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "text": "string",
- "hasMedia": true
}, - "tweet": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}
}
}OAuth/個人トークンの必要権限: dm.write。 旧キーでは利用できません。 本人の参加・参加開始時刻・受信/ブロック条件を検査します。GETは既読化しません。
| id required | string 対象の文字列IDまたはハンドル |
| messageId required | string 対象の文字列IDまたはハンドル |
| text required | string [ 1 .. 10000 ] characters |
{- "text": "string"
}{- "data": {
- "id": "string",
- "conversationId": "string",
- "sender": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "read": true,
- "system": true,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "reactions": [
- {
- "emoji": "string",
- "count": 0,
- "reactedByViewer": true,
- "users": [
- {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}
]
}
], - "replyTo": {
- "id": "string",
- "deleted": true,
- "sender": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "text": "string",
- "hasMedia": true
}, - "tweet": {
- "id": "string",
- "text": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "editCount": 0,
- "author": {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}, - "conversationId": "string",
- "replyPolicy": "EVERYONE",
- "source": "string",
- "inReplyToId": "string",
- "inReplyToHandle": "string",
- "quoted": { },
- "retweetOf": { },
- "likeCount": 0,
- "retweetCount": 0,
- "replyCount": 0,
- "quoteCount": 0,
- "media": [
- {
- "id": "string",
- "kind": "PHOTO",
- "status": "PENDING",
- "url": "string",
- "thumbnailUrl": "string",
- "width": 0,
- "height": 0,
- "durationMs": 0,
- "altText": "string",
- "sensitive": true,
- "warning": "NUDITY"
}
], - "poll": {
- "id": "string",
- "endsAt": "2019-08-24T14:15:22Z",
- "ended": true,
- "totalVotes": 0,
- "viewerOptionId": "string",
- "options": [
- {
- "id": "string",
- "label": "string",
- "position": 0,
- "voteCount": 0,
- "percent": 0
}
]
}, - "liked": true,
- "retweeted": true,
- "bookmarked": true,
- "deleted": true,
- "unavailable": true,
- "quotedUnavailable": true,
- "hiddenReason": "muted",
- "editEligible": true
}
}
}OAuth/個人トークンの必要権限: dm.delete。 旧キーでは利用できません。 本人の参加・参加開始時刻・受信/ブロック条件を検査します。GETは既読化しません。
| id required | string 対象の文字列IDまたはハンドル |
| messageId required | string 対象の文字列IDまたはハンドル |
| scope | string Enum: "self" "everyone" 省略/selfは自分から非表示、everyoneは自分の送信内容を全員から削除 |
{- "data": {
- "ok": true
}
}OAuth/個人トークンの必要権限: dm.write。 旧キーでは利用できません。 本人の参加・参加開始時刻・受信/ブロック条件を検査します。GETは既読化しません。
| id required | string 対象の文字列IDまたはハンドル |
| messageId required | string 対象の文字列IDまたはハンドル |
| emoji required | string Enum: "😂" "😲" "😢" "❤️" "🔥" "👍" "👎" |
{- "emoji": "😂"
}{- "data": {
- "reactions": [
- {
- "emoji": "string",
- "count": 0,
- "reactedByViewer": true,
- "users": [
- {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}
]
}
]
}
}OAuth/個人トークンの必要権限: dm.write。 旧キーでは利用できません。 本人の参加・参加開始時刻・受信/ブロック条件を検査します。GETは既読化しません。
| id required | string 対象の文字列IDまたはハンドル |
| messageId required | string 対象の文字列IDまたはハンドル |
| scope | string Enum: "self" "everyone" 省略/selfは自分から非表示、everyoneは自分の送信内容を全員から削除 |
{- "data": {
- "reactions": [
- {
- "emoji": "string",
- "count": 0,
- "reactedByViewer": true,
- "users": [
- {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}
]
}
]
}
}OAuth/個人トークンの必要権限: dm.receipts.write。 旧キーでは利用できません。 本人の参加・参加開始時刻・受信/ブロック条件を検査します。GETは既読化しません。
| id required | string 対象の文字列IDまたはハンドル |
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
{- "data": {
- "ok": true
}
}OAuth/個人トークンの必要権限: dm.requests.write。 旧キーでは利用できません。 本人の参加・参加開始時刻・受信/ブロック条件を検査します。GETは既読化しません。
| id required | string 対象の文字列IDまたはハンドル |
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
{- "data": {
- "ok": true
}
}OAuth/個人トークンの必要権限: dm.requests.write。 旧キーでは利用できません。 本人の参加・参加開始時刻・受信/ブロック条件を検査します。GETは既読化しません。
| id required | string 対象の文字列IDまたはハンドル |
{- "data": {
- "ok": true
}
}OAuth/個人トークンの必要権限: dm.read。 旧キーでは利用できません。 本人の参加・参加開始時刻・受信/ブロック条件を検査します。GETは既読化しません。
| cursor | string 同じ操作が返したnextCursor。OAuthは30分・許可/クエリに束縛されます。nextCursorのない一覧は指定不要です。 |
| q | string 相手の検索文字列 |
{- "data": {
- "items": [
- {
- "id": "string",
- "handle": "string",
- "name": "string",
- "bio": "string",
- "location": "string",
- "website": "string",
- "avatarUrl": "string",
- "headerUrl": "string",
- "protected": true,
- "verified": true,
- "followerCount": 0,
- "followingCount": 0,
- "tweetCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "following": true,
- "followedBy": true,
- "blocking": true,
- "muting": true
}
], - "nextCursor": "string"
}
}OAuth/個人トークンの必要権限: trends.read。 旧キーでは利用できません。
| cursor | string 同じ操作が返したnextCursor。OAuthは30分・許可/クエリに束縛されます。nextCursorのない一覧は指定不要です。 |
{- "data": {
- "items": [
- {
- "tag": "string",
- "count": 0,
- "isHashtag": true
}
]
}
}OAuth/個人トークンの必要権限: trends.write。 旧キーでは利用できません。
| Idempotency-Key | string [ 1 .. 128 ] characters 同じ操作の再試行用。24時間保持。 |
| tag required | string [ 1 .. 100 ] characters |
{- "tag": "string"
}{- "data": {
- "ok": true
}
}