目次 やりたいこと… やりたいことを選ぶと、その手順だけが下に表示されます。完全なリファレンスはさらに下にあります。
ボットを作る 自分のアプリを連携する 自分のサイトでtellmeloログインを使う GIFや動画を埋め込む自分のグループのグループメニュー「ボット → 自分のボット」で、画像、名前、@ユーザー名を付けてボットを作成します。トークンは一度だけ表示されます。 「ボットを追加」リンクを共有するか、ボットディレクトリに申請します。チームの審査後にディレクトリに掲載されます。グループでロールを管理できる人が、同意した権限でボットを追加します。 グループで起きたことをストリーム(GET /v2/events/stream)または自分のアドレスで受け取り、POST /v2/channels/{id}/messagesで書き込みます。詳しくはボット を参照してください。 コマンドを登録し(PUT /v2/me/commands)、カードやボタンで応答します。ボットはボイスチャンネルに参加して音楽を再生できます(POST /v2/channels/{id}/voice)。 概要 v2を使えば、自作のプログラムからtellmeloを利用できます。リクエストごとにキーを1つ、レスポンスはJSON、リストのページ送りはすべて共通です。アプリと同じルールが適用されます。
すべてのパスはhttps://api.tellmelo.com/v2で始まります。 リクエストとレスポンスはUTF-8のJSONです。フィールド名、コード、値は英語で、今後も英語のままです。 キーは自分のアカウントとして動作します。アプリで見られないものは、キーでも読み取れません。 https://api.tellmelo.com/v2クイックスタート 「開発者エリア → API」でキーを作成してコピーします。キーが表示されるのは一度だけです。 そのキーでルートを呼び出します。レスポンスには、バージョン、キーの権限、この1分間の残りリクエスト数が含まれます。 どのパスも同じように動作します。ヘッダーにキー、レスポンスはJSON、リストならitemsとnext。 curl -H "Authorization: Bearer tm_key_…" https://api.tellmelo.com/v2{
"name": "tellmelo",
"version": "2.28",
"scope": "read write",
"rateLimit": {
"limit": 120,
"remaining": 117
},
"docs": "/developers/docs",
"spec": "/api/v2/openapi.json"
}次は、自分のプロフィールなら/me、公開投稿なら/posts、自分のフィードなら/feedへ。
試してみる タスクを選んでフィールドに入力し、リクエストをコピーするか、ここから送信します。書き込み系は事前に確認します。コードはキーをTELLMELO_KEYから読み込みます。
タスク GET / GET /actions POST /actions/{name} GET /posts GET /posts/{id} POST /posts DELETE /posts/{id} GET /me/scheduled POST /posts/{id}/schedule POST /posts/{id}/edit GET /posts/{id}/reply-settings PUT /posts/{id}/reply-settings POST /posts/{id}/coauthor DELETE /posts/{id}/coauthor POST /posts/{id}/pin GET /posts/{id}/replies POST /posts/{id}/replies POST /replies/{id}/edit DELETE /replies/{id} POST /replies/{id}/like POST /replies/{id}/vote POST /replies/{id}/pick GET /posts/{id}/replies/waiting POST /replies/{id}/decide GET /posts/{id}/replies/planned PUT /me/planned-replies/{id} POST /me/planned-replies/{id}/send DELETE /me/planned-replies/{id} POST /posts/{id}/vote GET /pick POST /pick/vote POST /pick/withdraw PUT /me/pick GET /profiles/{handle} GET /profiles/{handle}/posts GET /profiles/{handle}/events POST /me/events PUT /me/events/{id} DELETE /me/events/{id} GET /me/events/{id}/signups POST /events/{id}/signup GET /me/status PUT /me/status GET /statuses GET /me/activity PUT /me/activity DELETE /me/activity GET /games GET /communities GET /communities/{id} GET /communities/{id}/posts GET /communities/{id}/members GET /communities/{id}/roles GET /communities/{id}/bell GET /invites/{code} PUT /roles/{id}/self GET /communities/{id}/emojis PUT /communities/{id}/bell POST /invites/{code}/join GET /communities/{id}/bots GET /communities/{id}/channels GET /channels/{id}/messages POST /channels/{id}/messages POST /channels/{id}/read DELETE /channel-messages/{id} PUT /channel-messages/{id}/reactions/{emoji} DELETE /channel-messages/{id}/reactions/{emoji} GET /communities/{id}/voice POST /communities/{id}/emojis DELETE /communities/{id}/emojis/{name} POST /communities/{id}/roles PUT /roles/{id} DELETE /roles/{id} PUT /communities/{id}/roles/order PUT /roles/{id}/members/{member} POST /communities/{id}/channels PUT /channels/{id} DELETE /channels/{id} PUT /communities/{id}/channels/order PUT /communities/{id}/channels/shape GET /channels/{id}/overrides PUT /channels/{id}/overrides/{role} POST /communities/{id}/categories PUT /categories/{id} DELETE /categories/{id} PUT /communities/{id}/feed GET /communities/{id}/invites POST /communities/{id}/invites DELETE /invites/{code} POST /channel-messages/{id}/remove POST /communities/{id}/posts/{post}/remove DELETE /communities/{id}/members/{member} PUT /communities/{id}/members/{member}/timeout DELETE /communities/{id}/members/{member}/timeout GET /communities/{id}/bans PUT /communities/{id}/bans/{member} DELETE /communities/{id}/bans/{member} GET /communities/{id}/log POST /communities PUT /communities/{id} GET /events GET /events/stream GET /me/commands PUT /me/commands POST /interactions/{id}/reply POST /channels/{id}/voice GET /tags GET /search GET /emojis GET /media GET /media/mine GET /media/{id} POST /media/uploads POST /media/{id} DELETE /media/{id} GET /me GET /feed POST /me/pictures PUT /me/profile GET /me/emojis POST /me/emojis/pictures POST /me/emojis DELETE /me/emojis/{name} PUT /me/emojis/sharing GET /me/webhooks POST /me/webhooks DELETE /me/webhooks/{id} POST /me/webhooks/{id}/test PUT /me/username GET /me/settings PUT /me/settings GET /notifications POST /notifications/read GET /conversations GET /conversations/{with}/messages POST /conversations/{with}/messages POST /conversations/{with}/read DELETE /conversations/{with}/messages/{id} PUT /conversations/{with}/messages/{id}/reactions/{emoji} DELETE /conversations/{with}/messages/{id}/reactions/{emoji} POST /conversations/{with}/planned GET /me/planned-messages POST /me/planned-messages/{id}/send DELETE /me/planned-messages/{id} POST /relations GET /profiles/{handle}/followers GET /profiles/{handle}/following GET /me/relations GET /me/collections POST /me/collections PUT /me/collections/{id} DELETE /me/collections/{id} GET /me/collections/{id}/posts POST /me/collections/{id}/posts GET /partner/quota GET /partner/gifts POST /partner/gifts GET /gift-drops POST /gift-drops read APIのバージョンと、このインスタンスの名前。
curl \
-H "Authorization: Bearer $TELLMELO_KEY" \
"https://api.tellmelo.com/v2"APIキー 1アカウントにつき最大10個のキーを作成でき、それぞれに名前、個別の権限、必要に応じて有効期限を設定できます。キーはtm_key_で始まり、表示されるのは一度だけです。なくした場合はキーを再発行してください。古い値は使えなくなります。
キーは「開発者エリア → API」で作成します。リクエストのヘッダーに含めて送信します:
curl -H "Authorization: Bearer tm_key_…" \
https://api.tellmelo.com/v2/postsまたは、そのほうが便利なら専用のヘッダーで:
curl -H "X-Tellmelo-Key: tm_key_…" https://api.tellmelo.com/v2URLには含めないでください。ログやブラウザの履歴に残ってしまいます。
同じキーで画像も読み込めます。すべてのurlは/api/mediaを指しています。そこでもヘッダーにキーを含めて送ってください。
curl -H "Authorization: Bearer tm_key_…" \
-o picture.webp "https://api.tellmelo.com/media?id=…"キーでできること キーは常に読み取りができ、許可すれば書き込み、プレゼント、メディアのアップロード、グループの管理もできます。下の各パスに、必要な権限が記載されています:
read :読み取り。公開投稿、プロフィール、グループ、タグに加え、自分のフィード、通知、メッセージ、所属グループのチャンネル。write :操作。投稿、返信、投票、メッセージ送信、グループのチャットへの書き込み、フォロー、参加、ブロック、通知の既読化。gifts :プレゼント。パートナーの枠からメンバーへのプレゼントと、新しい投稿に付けるプレゼント。投稿用のキーで誤ってプレゼントできないよう、独立した権限になっています。media :自分のメディアライブラリ。GIFや動画のアップロード、変更、共有、削除。アップロードにはアカウントの動画ポイントを消費するため、独立した権限になっています。共有されたGIFや動画を探すだけならread で足ります。groups :グループの管理。ロール、チャンネル、カテゴリー、招待リンク、フィードチャンネル、削除、タイムアウト、キック、BANを、自分のアカウントがそのグループで許可されている範囲で行えます。投稿用のキーで、グループ内の権限が変わってしまわないよう、独立した権限になっています。どのキーでもできないこと キーからは、ほかのキー、ログイン方法(パスワード、パスキー、2段階認証、セッション)、アカウントの代理操作ができる人、そのアカウントでログインするアプリ、管理画面にはアクセスできません。特に重要な操作 (@名前、メールアドレス、データと削除、お金、グループの所有権、子どもアカウント、ボット、本人確認書類)にはパスワードが必要で、2段階認証がオンの場合はアプリ内でのみ行えます。モデレーターのテスト、投稿に付けるプレゼント、入力中の候補、翻訳、通話とボイスチャンネルの席、封印メッセージなど、アプリ内で人だけが行える操作もあります。
ボット ボット は、グループ用のbotという種類の独立したアカウントです。パスワードもメールアドレスもなく、専用のキーを使って自分のプログラムから操作します。すべてのアカウントと同じAPIを使い、グループではそこでのロールが許可することをすべて行えます。
自分のグループのグループメニューを開き、「ボット → マイボット」で、画像、バナー、名前、ユーザー名、説明を設定してボットを作成します。トークン は1回だけ表示されます。権限はread、write、media、groupsです。 ボットのリンクを共有するか、ボットディレクトリに申請します。チームが確認するとディレクトリに掲載されます。グループでロールを管理できる人が権限を選ぶと、ボットが参加し、専用のロールが付きます。 プログラムはトークンをAuthorization: Bearer …として送信し、グループのイベントをストリームとして読み取り、ボット 、チャンネル 、グループ のルートを使って動作します。 イベントをストリームとして読み取り、コマンド/pingに、送った本人にだけpongと返す小さなボット:
// Node 18 or newer: reads the events of the bot's groups as they happen and answers /ping.
const BASE = 'https://api.tellmelo.com/v2';
const KEY = process.env.TELLMELO_BOT_TOKEN;
const call = (method, path, body) =>
fetch(BASE + path, {
method,
headers: { Authorization: 'Bearer ' + KEY, 'Content-Type': 'application/json' },
body: body && JSON.stringify(body),
}).then((r) => r.json());
await call('PUT', '/me/commands', { commands: [{ name: 'ping', description: 'Answers pong' }] });
let last = '';
for (;;) {
// The stream closes after ten minutes; Last-Event-ID goes on where it stopped.
const res = await fetch(BASE + '/events/stream', {
headers: { Authorization: 'Bearer ' + KEY, ...(last && { 'Last-Event-ID': last }) },
});
const reader = res.body.pipeThrough(new TextDecoderStream()).getReader();
let buffer = '';
for (;;) {
const { value, done } = await reader.read();
if (done) break;
buffer += value;
let end;
while ((end = buffer.indexOf('
')) >= 0) {
const data = buffer.slice(0, end).split('
').find((l) => l.startsWith('data: '));
buffer = buffer.slice(end + 2);
if (!data) continue;
const event = JSON.parse(data.slice(6));
last = event.id;
if (event.type === 'command' && event.data.command === 'ping')
await call('POST', '/interactions/' + event.data.interaction + '/reply', { text: 'pong', private: true });
}
}
}同じボットをPythonで。イベントをページごとに取得します:
# Python 3 with requests: the same bot, reading the events page by page.
import os, time, requests
BASE = 'https://api.tellmelo.com/v2'
H = {'Authorization': 'Bearer ' + os.environ['TELLMELO_BOT_TOKEN']}
requests.put(BASE + '/me/commands', headers=H,
json={'commands': [{'name': 'ping', 'description': 'Answers pong'}]})
since = '0'
while True:
page = requests.get(BASE + '/events', headers=H, params={'since': since}).json()
for event in page['items']:
if event['type'] == 'command' and event['data']['command'] == 'ping':
requests.post(f"{BASE}/interactions/{event['data']['interaction']}/reply",
headers=H, json={'text': 'pong'})
since = page['next'] or since
time.sleep(2)ボットがグループでできることは、トークンではなくそのグループでのロールで決まります。ロールにはボットの名前が付きます。グループはグループ設定のロールで権限を変更でき、グループメニューの「ボット → このグループ」でボットを削除できます。 1アカウントにつきボットは5つまで。1グループにつき、そのグループの特典で許可される数まで。ボットが送れるメッセージは1グループにつき1分間に最大30件で、検索には表示されず、先にメッセージを送ってきた人にだけメッセージを送れます。制限 が適用されます。 イベントは独自のHTTPSアドレスにも届きます(Webhookと同様に署名され、再送あり)。さらに、全員または送った本人だけに応答するコマンド(PUT /v2/me/commands)、メッセージのカードとボタン、ボイスチャンネルでの音楽(POST /v2/channels/{id}/voice)も使えます。詳しくはボット をご覧ください。 カード、ボタン、メニュー cards と rows(2.26 以降)を使うと、ボットのメッセージは Discord のようになります。タイトルにリンク(url)を付けられるカードを最大 10 枚、上の行(author)と下の行(footer)、横に並ぶフィールド(inline)、大きな画像(image)と小さな画像(thumbnail、どちらもボット自身がアップロードしたもの)、時刻(timestamp、ミリ秒)。その下に、それぞれ最大 5 個のボタンとリンク、またはメニュー 1 つを並べた行を最大 5 行。
ボタンは { type: 'button', id, label, style, emoji, disabled } で、style は primary、secondary、success、danger のいずれか。リンク { type: 'link', url, label, emoji } はアドレスを開くだけで何も通知しません。メニュー { type: 'select', id, placeholder, options: [{ label, value, description, emoji, default }], min, max } は最大 25 項目です。 ボタンの押下は button 付きの interaction イベントとして、メニューでの選択は select と選ばれた values 付きで届きます。 update: true を付けると、返信(POST /v2/interactions/{id}/reply)はボタンやメニューが使われたメッセージそのものを変更します。テキスト、カード、行は送信時と同じで、押されたボタンを無効にするときなどに使えます。現在は、作成者にこの機能が提供されているボットだけで有効です。それ以外では card と buttons がこれまでどおり使え、応答は 400 bot_extras になります。 // A poll with a card, a menu and buttons, sent into a chat channel.
await call('POST', '/channels/' + channel + '/messages', {
text: 'Movie night on Friday 🎬',
cards: [{
author: 'Club calendar',
title: 'Which film?',
url: 'https://example.org/films',
text: 'Vote until Thursday evening.',
color: 'violet',
fields: [{ name: 'Where', value: 'Room 2', inline: true }, { name: 'When', value: '8 pm', inline: true }],
thumbnail: posterMediaId, // a picture the bot uploaded (POST /v2/me/pictures)
footer: 'Up to 3 choices',
timestamp: Date.now(),
}],
rows: [
[{ type: 'select', id: 'film', placeholder: 'Choose films', min: 1, max: 3, options: [
{ label: 'Metropolis', value: 'metropolis', emoji: '🤖' },
{ label: 'Spirited Away', value: 'spirited', emoji: '🐉' },
{ label: 'Amélie', value: 'amelie', description: 'With subtitles' },
] }],
[
{ type: 'button', id: 'join', label: 'I'm in', style: 'success', emoji: '🙋' },
{ type: 'link', label: 'Programme', url: 'https://example.org/films' },
],
],
});
// The choice arrives as an event; the answer turns the menu off in the message itself.
if (event.type === 'interaction' && event.data.select === 'film')
await call('POST', '/interactions/' + event.data.interaction + '/reply', {
update: true,
text: 'Thanks, ' + event.data.user.name + ' voted for ' + event.data.values.join(', '),
rows: [[{ type: 'button', id: 'join', label: 'Voting closed', disabled: true }]],
});ページ送り どのリストもlimitとcursorを受け取り、itemsとnextを返します。次のページを取得するには、nextをcursorとして送り返します。nextが空なら終わりです。カーソルは中身を持たない値です。解析したり、自分で作ったりしないでください。
{ "items": [ … ], "next": "MTc1ODYyNDAwMDAwMDo1ZjBjMmE5ZS04ZDQx" }
curl -H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/posts?limit=20&cursor=MTc1ODYyNDAwMDAwMDo1ZjBjMmE5ZS04ZDQx"limitを省略すると20件、最大50件です。ページ送りのないリストもあり、その場合nextは常にnullです。
新しいものだけ すべてのレスポンスにETagが付きます。次回これをIf-None-Matchとして送ると、変更がなければ本文なしで304が返されます。
ETag: W/"3Qk1mJ7fQe2Yb0sVxT9aL4pNdRc"
If-None-Match: W/"3Qk1mJ7fQe2Yb0sVxT9aL4pNdRc" → 304例外:/feedは並び順が常に変わるためETagがありません。また、書き込みで304が返されることはありません。
制限 1つのキーで送れるリクエストは1分あたり120件、「Organisation」プランでは600件です(運営が別に定めた場合を除く)。超えると429が返され、何も実行されません。1分待ってから、もう一度リクエストを送ってください。
X-RateLimit-Limit: 120
X-RateLimit-Remaining: 117
X-RateLimit-Reset: 1758624060書き込みは、短時間の投稿数など、アプリ側の制限にもカウントされます。その場合もrate_limited付きで429が返されます。
うまくいかないとき エラーはJSONで返されます。errorにはプログラム向けの固定の英語コード、messageには人向けの文、それに対応するステータスコードが付きます。比較はコードだけで行ってください。文は変わることがあります。
{ "error": "rate_limited",
"message": "Too many requests. Try again in a minute.",
"limit": 120 }一部のエラーにはフィールドが1つ追加されます。キーがないことによる401にはdocs、429にはlimit。
ステータス コード 意味 対処法 400bad_requestリクエストを読み取れない、必須フィールドがない、または許可されていない値です。 ルートの表で、必須フィールド、型、許可されている値を確認してください。多くの場合、messageにフィールド名が示されます。 401key_missingヘッダーにキーがありません。 キーはAuthorization: Bearer tm_key_…またはX-Tellmelo-Keyで送ってください。アドレスには絶対に含めないでください。 401key_invalidキーが無効です。入力ミス、再発行済み、またはアカウントが停止されています。 キーが欠けていないか確認してください。開発者画面でキーがまだ有効かどうかを確認でき、必要なら新しいキーを作成できます。 401unauthorizedキー以外の理由で、未ログインとして拒否されました。 アプリにログインして、アカウントを確認してください。停止されたアカウントは、キーがあっても何もできません。 401password_requiredこの操作にはアカウントのパスワードが必要です。 アカウントのパスワードを、本文のpasswordに含めて送ってください。 403scope_missingキーに必要な権限がありません。多くの場合はwriteです。 必要な権限(各ルートに記載)を持つキーを作成してください。既存のキーの権限は変わりません。 403password_wrong送信されたパスワードがアカウントのものと一致しません。 パスワードを確認してください。15分以内に5回間違えると、以降の確認はすべて待機になります(rate_limited)。 403password_noneこのアカウントは独自のパスワードなしでログインしています。 アプリでパスワードを設定する(設定 → アカウント)か、この操作をアプリで行ってください。 403second_factor_onこのアカウントでは2段階認証がオンになっています。 この操作はアプリで行ってください。キーでは2段階目の認証を行えません。 403people_onlyこれはアプリ内で人だけが行えます。 次の操作はアプリ内でのみ行えます:モデレーターのテスト、投稿に付けるプレゼント、入力中の候補、翻訳、通話とボイスチャンネルの席、封印メッセージ。 403account_data_lockedこれはキーではできません:キー、ログイン、2段階認証、セッション、アカウントの代理操作ができる人、管理画面。 これはアプリ内でのみ行えます。APIからは行えません。 403forbidden権限が取り消されている、ブロックされているなどの理由で、自分のアカウントではこの操作ができません。 グループ内などでの自分のロールと権限、また誰かにブロックされていないかを確認してください。 403timed_outタイムアウトにより、このグループで現在ミュートされています。 タイムアウトが終わるまで待ってください。いつまでかはmessageに示されます。 404unknown_pathこのパスは存在しないか、このメソッドでは使えません。 パスとメソッドを一覧 と照らし合わせてください。末尾のスラッシュも区別されます。 404unknown_actionこの名前のアクションはありません。 名前はGET /actionsから取得してください。キーで実行できるすべてのアクションが一覧になっています。 404not_found見つからないか、閲覧が許可されていません。 idを確認してください。閲覧できないコンテンツは、意図的に存在しないコンテンツと同じ応答になります。409conflict使用済みの名前など、すでにあるものと競合しています。 別の値を選ぶか、現在の状態を読み込み直してから、もう一度お試しください。 409feed_offこのグループのフィードチャンネルはオフです。 グループの運営がフィードチャンネルをオンにする必要があります。 413too_largeこのインスタンスには大きすぎます。 ファイルや内容を小さくしてください。インスタンスの上限は各ルートに記載されています。 422unprocessable読み取れますが、この形式では実行できません。 messageを確認してください。画像が多すぎるなど、内容がルールに合っていません。429rate_limitedリクエストが多すぎます。何も実行されていません。少し待ってからもう一度お試しください。 X-RateLimit-ResetまたはRetry-Afterの時刻まで待ってください。何も実行されていません。500internal_errorサーバーでエラーが発生しました。 少し時間をおいてからもう一度お試しください。ステータスページ も確認してください。解決しない場合はサポートにお知らせください。
バージョン バージョンはパスに含まれています。v2である限り、パスとフィールドは変わりません。新しいものが追加されるだけです。
機能が追加されると2つ目の数字が上がります。各パスには、いつから使えるかが記載されています。
https://api.tellmelo.com/v1/は廃止されました。古いパスは410 を返し、本文で新しいパスを案内します。
Webhook Webhook は、何かが起きるとすぐにtellmeloが呼び出す、自分のプログラムのHTTPSアドレスです。返信、新しいフォロワー、受け取られたプレゼントなど。これでプログラムが何度も問い合わせる必要がなくなります。Webhookは組織プランまたはパートナーで利用できます。
開発者ウィンドウの「Webhook」、またはAPIのPOST /v2/me/webhooks とwebhooks権限で設定します。署名用のシークレットは作成時にしか表示されません。「テスト」を押すと、イベントtestのサンプルが送られます。
イベント 意味 対象 reply返信 組織プラン mentionメンション 組織プラン group_mention自分のグループへのメンション 組織プラン follow新しいフォロワー 組織プラン likeいいね 組織プラン repostシェア 組織プラン messageメッセージ 組織プラン quota_changed枠が変更された パートナー quota_gift枠からギフトを送った パートナー drop_claimed投稿の下のギフトが受け取られた プランまたはパートナー drop_empty投稿の下のギフトがすべて受け取られた プランまたはパートナー
届く内容 JSON付きのPOST:配信のid、type(イベント)、ミリ秒単位のcreated_at、data。dataには通知、投稿、@ネーム、割り当て枠など必要最低限の情報だけが入り、投稿やメッセージのテキストは入りません。テキストはプログラムがキーを使って取得します。
{
"id": "evt_7c1e5a2b-4d3f-4a6b-9c8d-2e1f0a9b8c7d",
"type": "reply",
"created_at": 1763200000000,
"data": {
"notification": "5b0c1d2e-3f4a-4b5c-8d6e-7f8a9b0c1d2e",
"post": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
"actor": "anna",
"count": 1
}
}ヘッダー 意味 Content-Typeapplication/json。User-AgentアカウントのWebhookにはtellmelo-webhooks/1.0、ボットのイベントにはtellmelo-bots/1.0。 X-Tellmelo-Eventイベント。本文のtypeと同じです。 X-Tellmelo-Timestamp送信日時(1970年からの秒数)。署名の一部です。 X-Tellmelo-Signaturesha256=…。署名の確認 を参照してください。
応答と再送 5秒以内に2xxのステータスで応答してください。応答がない場合、配信は1分後、5分後、30分後、120分後に再送され、その後破棄されます。1日以上前のものは送信されません。20回連続で破棄されるとWebhookは自動で停止し、「テスト」で再びオンになります。同じidが2回届くことがあるため、処理済みのものを記録しておいてください。
署名の確認 すべての配信は署名されています。X-Tellmelo-Signatureはsha256=に続く、X-Tellmelo-Timestampの値、ドット、届いたままの本文に対するシークレットを使ったHMAC-SHA256です。自分で計算し、定数時間で比較し、5分より古い配信は破棄してください。ボットの独自アドレスに送られるイベントも、そのアドレスのシークレットで同じように署名されています。
import { createHmac, timingSafeEqual } from 'node:crypto';
// raw: the body as it came (a string), headers: lower-case names, secret: from creating the webhook.
export function verify(raw, headers, secret) {
const stamp = headers['x-tellmelo-timestamp'];
// Older than five minutes: possibly sent again by someone else.
if (!/^d+$/.test(stamp ?? '') || Math.abs(Date.now() / 1000 - Number(stamp)) > 300) return false;
const expected = 'sha256=' + createHmac('sha256', secret).update(stamp + '.' + raw).digest('hex');
const given = String(headers['x-tellmelo-signature'] ?? '');
return given.length === expected.length && timingSafeEqual(Buffer.from(given), Buffer.from(expected));
}import hashlib, hmac, time
# raw: the body as it came (bytes), secret: from creating the webhook.
def verify(raw: bytes, headers, secret: str) -> bool:
stamp = headers.get('X-Tellmelo-Timestamp', '')
# Older than five minutes: possibly sent again by someone else.
if not stamp.isdigit() or abs(time.time() - int(stamp)) > 300:
return False
expected = 'sha256=' + hmac.new(secret.encode(), stamp.encode() + b'.' + raw, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, headers.get('X-Tellmelo-Signature', ''))ボット向けのイベント ボットのグループで起きたことは、ボットが見られるチャンネルのものだけがイベントとして届き、1日間取得できます。各イベントにはidがあり、プログラムは中断したところから再開できます。方法は3つあります:
ストリームで: GET /v2/events/stream は接続を開いたままにして、すべてのイベントをすぐに送ります(Server-Sent Events)。10分後に接続が閉じますが、Last-Event-IDを使えば途切れずに再開できます。ページごとに: GET /v2/events をsince付きで、制限 の範囲内で好きなだけ呼び出せます。独自のアドレスへ: 開発者ウィンドウでボットに設定し、Webhook と同様に署名されます。2xxの応答がない場合は、10秒後、1分後、5分後、30分後に再送されます。20回連続で失敗すると自動で停止します。イベント 意味 message.createdメッセージが書かれました。 message.deletedメッセージが削除されました。 reaction.added誰かがメッセージに絵文字でリアクションしました。 reaction.removed誰かがリアクションを取り消しました。 member.joined誰かが参加しました。 member.left誰かが退出した、または削除されました。 voice.joined誰かがボイスチャンネルに参加しました。 command誰かがボットのコマンドを使いました。 interaction誰かがボットのメッセージのボタンを押したか、メニューで選択しました。
{
"id": "4711",
"type": "message.created",
"community": "c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60",
"channel": "0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a",
"createdAt": 1758634800000,
"data": {
"message": {
"id": "61a2b3c4-d5e6-4f70-8192-a3b4c5d6e7f8",
"text": "/dice 6",
"author": {
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"bot": false
},
"media": 0,
"replyTo": null,
"threadOf": null,
"createdAt": 1758634800000
}
}
}エンドポイント すべてのパスの一覧と、それぞれの例。
はじめの一歩 どのプログラムでも最初に送るリクエスト:キーは使えるか、何ができるか。
GET /v2APIのバージョンと、このインスタンスの名前。
末尾にスラッシュを付けないでください:https://api.tellmelo.com/v2/は308でhttps://api.tellmelo.com/v2にリダイレクトされ、すべてのプログラムがそれに従うとは限りません。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2"レスポンス Service を1件返します。
例 {
"name": "tellmelo",
"version": "2.28",
"scope": "read write",
"rateLimit": {
"limit": 120,
"remaining": 117
},
"docs": "/developers/docs",
"spec": "/api/v2/openapi.json"
}返りうるステータス: 200304401429
その他すべて アプリのあらゆるアクションを1つのルートで実行でき、それらを一覧にしたカタログもあります。
GET /v2/actionsキーで実行できるすべてのアクションと、必要な権限、パスワードが必要かどうか。
一覧にないアクションはキーでは使えません。「キーでできないこと」を参照してください。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/actions"レスポンス Action の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"name": "collection.new",
"scope": "write",
"password": false,
"fields": [
"name"
]
}
],
"next": null
}返りうるステータス: 200304401429
POST /v2/actions/{name}アプリのあらゆるアクションを名前で実行します。フィールドはアプリが送るものと同じです。アプリが受け取る内容がresultに返されます。
カタログでそのアクションに指定された権限が必要です。特に重要なアクションにはpasswordにパスワードが必要です。
特に重要な操作 には、passwordにアカウントのパスワードが必要です。2段階認証がオンの場合、キーでは2つ目の要素を渡せないため、これらの操作はアプリでのみ可能です(second_factor_on)。間違ったパスワードは、ほかと同じ回数制限に数えられます。
レスポンスに含まれる投稿はすべて、アプリと同じように自分のアカウントのインプレッションとして数えられます。1件の投稿につき1日1回、自分の投稿は数えません。
パラメーター 名前 型 意味 nameパス内 string必須 GET /actionsに記載されているアクション名(例:collection.new)。フィールドは本文に含めます。password本文内 string任意 特に重要な操作に必要な、アカウントのパスワード。2段階認証がオンの場合、これらの操作はアプリ内でのみ行えます。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"password":"the account’s password"}' \
"https://api.tellmelo.com/v2/actions/collection.new"レスポンス ActionAnswer を1件返します。
例 {
"result": {
"id": "f3a9c2e1-7b6d-4e5f-9a8b-1c2d3e4f5a6b"
}
}返りうるステータス: 200400401404429
投稿 公開投稿の読み取り、自分の投稿の公開と削除。
GET /v2/posts公開投稿。新しい順。
権限 read ページ送りあり ETagあり v2.0以降 公開パスでは、counts.likesとcounts.repostsは常に0、pinnedはfalseです。
グループ内の投稿はここではなく、/communities/{id}/postsにあります。
レスポンスに含まれる投稿はすべて、アプリと同じように自分のアカウントのインプレッションとして数えられます。1件の投稿につき1日1回、自分の投稿は数えません。
パラメーター 名前 型 意味 limitクエリ内 integer任意 1ページあたりの件数:デフォルト20件、最大50件。 cursorクエリ内 string任意 前回のレスポンスのnext。省略すると最初から。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/posts?limit=20"レスポンス Post の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"text": "The bees are back in the garden 🐝 #garden",
"kind": "poll",
"author": {
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"verified": true,
"accountKind": "person"
},
"community": {
"id": "c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60",
"name": "Urban Gardening"
},
"media": [
{
"url": "/api/media?id=b2d7e9f1-3c4a-4e8b-a1f0-6d5c4b3a2918",
"kind": "image",
"poster": null,
"ai": "without"
}
],
"poll": {
"options": [
{
"text": "Lavender",
"votes": 12
},
{
"text": "Sunflowers",
"votes": 7
},
{
"text": "Clover",
"votes": 3
}
],
"total": 22,
"multiple": false,
"endsAt": null,
"running": true,
"resultsVisible": true,
"myVotes": [
0
]
},
"quotes": null,
"continues": null,
"counts": {
"replies": 4,
"likes": 31,
"reposts": 2
},
"pinned": false,
"giftDrop": {
"item": "plan",
"quantity": 3,
"places": 10,
"left": 4,
"audience": "followers",
"newAccounts": false,
"status": "open",
"claimed": true
},
"createdAt": 1758624000000
}
],
"next": "MTc1ODYyNDAwMDAwMDo1ZjBjMmE5ZS04ZDQx"
}返りうるステータス: 200304401429
GET /v2/posts/{id}1件の投稿。idで指定します。
公開パスでは、counts.likesとcounts.repostsは常に0、pinnedはfalseです。
グループ内の投稿はここではなく、/communities/{id}/postsにあります。
レスポンスに含まれる投稿はすべて、アプリと同じように自分のアカウントのインプレッションとして数えられます。1件の投稿につき1日1回、自分の投稿は数えません。
パラメーター curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/posts/5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1"レスポンス Post を1件返します。
例 {
"id": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"text": "The bees are back in the garden 🐝 #garden",
"kind": "poll",
"author": {
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"verified": true,
"accountKind": "person"
},
"community": {
"id": "c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60",
"name": "Urban Gardening"
},
"media": [
{
"url": "/api/media?id=b2d7e9f1-3c4a-4e8b-a1f0-6d5c4b3a2918",
"kind": "image",
"poster": null,
"ai": "without"
}
],
"poll": {
"options": [
{
"text": "Lavender",
"votes": 12
},
{
"text": "Sunflowers",
"votes": 7
},
{
"text": "Clover",
"votes": 3
}
],
"total": 22,
"multiple": false,
"endsAt": null,
"running": true,
"resultsVisible": true,
"myVotes": [
0
]
},
"quotes": null,
"continues": null,
"counts": {
"replies": 4,
"likes": 31,
"reposts": 2
},
"pinned": false,
"giftDrop": {
"item": "plan",
"quantity": 3,
"places": 10,
"left": 4,
"audience": "followers",
"newAccounts": false,
"status": "open",
"claimed": true
},
"createdAt": 1758624000000
}返りうるステータス: 200304400401404429
POST /v2/posts投稿を公開します。
投稿にはテキストかアンケートが必要です。文字数、アンケートの選択肢数、投稿ペースはインスタンスが定めており、超えると400または429が返されます。
mediaで画像、GIF1つ、または動画1つを添付します。GIFや動画はほかと一緒に添付できません。ほかのメンバーがシェアしたGIFや動画は、tellmelo上で使えます。
親しい友達向けの投稿や共同投稿者付きの投稿はすぐに公開され、グループ内にも予約にもできません。この2つは同時に使えません。
パラメーター 名前 型 意味 text本文内 string任意 投稿、返信、またはメッセージの本文。 community本文内 string任意 投稿先となるフィードチャンネルのグループのid。フィードチャンネルがオンで、投稿する権限が必要です。省略すると、どのグループにも属さない投稿になります。 quotes本文内 string任意 この投稿が引用する投稿のid。 poll本文内 string[]任意 選択肢をテキストのリストで指定します。 media本文内 string[]任意 アプリでアップロードした画像のID、またはメディアライブラリのGIFや動画のID(2.14以降)。 audience本文内 string任意 投稿を見られる人:everyoneは閲覧を許可された全員、closeは親しい友達のみ。everyoneclose coauthor本文内 string任意 共同投稿者として招待するアカウントのid。お互いにフォローしている必要があります。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"text":"The bees are back in the garden 🐝 #garden","audience":"everyone"}' \
"https://api.tellmelo.com/v2/posts"レスポンス Created を1件返します。
例 {
"id": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"scheduledFor": null,
"deleteAt": null
}返りうるステータス: 200400401403429
DELETE /v2/posts/{id}自分の投稿を削除します。
パラメーター curl -X DELETE \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/posts/5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
GET /v2/me/scheduledまだ公開されていない自分の投稿と、その待機理由。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/me/scheduled"レスポンス ScheduledPost の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"text": "Market day tomorrow – see you at the bee stand! #garden",
"communityId": null,
"publishAt": 1758710400000,
"deleteAt": null,
"waitingFor": "time",
"createdAt": 1758624000000
}
],
"next": null
}返りうるステータス: 200304401429
POST /v2/posts/{id}/schedule予約投稿の公開時刻、または投稿の自動削除時刻を変更します。
自分の投稿のみ。投稿のギフトが支払われていない間は、予約できません。
パラメーター 名前 型 意味 idパス内 string必須 投稿のid。 publishAt本文内 integer任意 予約投稿を公開する日時。1970年からのミリ秒。 deleteAt本文内 integer任意 投稿が自動削除される日時。1970年からのミリ秒。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/posts/5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1/schedule"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
POST /v2/posts/{id}/edit自分の投稿の本文を変更します。
プランで決まった編集可能時間内のみ。予約投稿は編集できません。
パラメーター 名前 型 意味 idパス内 string必須 投稿のid。 text本文内 string必須 投稿、返信、またはメッセージの本文。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"text":"The bees are back in the garden 🐝🌻 #garden"}' \
"https://api.tellmelo.com/v2/posts/5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1/edit"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
GET /v2/posts/{id}/reply-settings自分の投稿に返信できる人、返信を承認制にするか、スローモード。
パラメーター curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/posts/5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1/reply-settings"レスポンス ReplySettings を1件返します。
例 {
"audience": "following",
"approval": false,
"slow": "auto"
}返りうるステータス: 200304400401404429
PUT /v2/posts/{id}/reply-settings自分の投稿の返信設定を変更します。指定しなかった項目はそのままです。
自分の投稿のみ。
パラメーター 名前 型 意味 idパス内 string必須 投稿のid。 audience本文内 string任意 返信できる人:全員、自分がフォローしているアカウント、メンションされた人、または誰も不可。allfollowingmentionednobody approval本文内 boolean任意 返信を自分の承認後に表示するかどうか。 slow本文内 string任意 スローモード:autoは返信が多いと自動でオン、onは常にオン、offは常にオフ。autoonoff
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"audience":"following","approval":false,"slow":"auto"}' \
"https://api.tellmelo.com/v2/posts/5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1/reply-settings"レスポンス ReplySettings を1件返します。
例 {
"audience": "following",
"approval": false,
"slow": "auto"
}返りうるステータス: 200400401403404429
POST /v2/posts/{id}/coauthor共同投稿者への招待を承諾または辞退します。
パラメーター 名前 型 意味 idパス内 string必須 投稿のid。 accept本文内 boolean必須 trueで招待を承諾し、falseで辞退します。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"accept":true}' \
"https://api.tellmelo.com/v2/posts/5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1/coauthor"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
DELETE /v2/posts/{id}/coauthor共同投稿者を降りる、または投稿者として共同投稿者を外します。
共同投稿者と、投稿の作成者向け。
パラメーター curl -X DELETE \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/posts/5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1/coauthor"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
POST /v2/posts/{id}/pin自分の投稿をプロフィールの一番上に固定、または固定を解除します。
自分の表示中の投稿のみ。固定できる数はプランによって異なります。
パラメーター 名前 型 意味 idパス内 string必須 投稿のid。 active本文内 boolean必須 trueで投稿を固定し、falseで固定を解除します。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"active":true}' \
"https://api.tellmelo.com/v2/posts/5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1/pin"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
返信 投稿への返信。parentId付きのリストです。
GET /v2/posts/{id}/replies投稿への返信。ブロックしたアカウントのものは除きます。
権限 read ページ送りあり ETagあり v2.0以降 リストはフラットで、書き込み順に並んでいます。parentIdを使うとツリーにできます。1ページには常にスレッド全体が含まれます。ブロックしたアカウントの返信は含まれません。
パラメーター 名前 型 意味 idパス内 string必須 投稿のid。 limitクエリ内 integer任意 1ページあたりの件数:デフォルト20件、最大50件。 cursorクエリ内 string任意 前回のレスポンスのnext。省略すると最初から。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/posts/5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1/replies?limit=20"レスポンス Reply の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "9e4b1c7d-2a3f-4d5e-8b6c-0f1e2d3c4b5a",
"text": "Same here, the lavender is full of them.",
"kind": "post",
"author": {
"id": "d4c3b2a1-6e5f-4a7b-9c8d-1e2f3a4b5c6d",
"handle": "jon",
"name": "Jon",
"verified": false,
"accountKind": "person"
},
"community": null,
"media": [],
"poll": null,
"quotes": null,
"continues": null,
"counts": {
"replies": 0,
"likes": 3,
"reposts": 0
},
"pinned": false,
"giftDrop": null,
"createdAt": 1758624600000,
"postId": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"parentId": null
}
],
"next": "MTc1ODYyNDAwMDAwMDo1ZjBjMmE5ZS04ZDQx"
}返りうるステータス: 200304400401404429
POST /v2/posts/{id}/replies投稿に返信します。
スローモードでは、返信は1人につき10分に1回までです。超えると429が返ります。投稿者と、投稿者がフォローしているアカウントは対象外です。
mediaで添付できるのは画像・GIF・動画のいずれか1つまでです。
パラメーター 名前 型 意味 idパス内 string必須 投稿のid。 text本文内 string必須 投稿、返信、またはメッセージの本文。 parentId本文内 string任意 この返信が返信する先の返信のid。省略すると投稿への直接の返信。 media本文内 string[]任意 アプリでアップロードした画像のID、またはメディアライブラリのGIFや動画のID(2.14以降)。 publishAt本文内 integer任意 返信を送信する日時。1970年からのミリ秒。省略するとすぐに送信されます。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"text":"Same here, the lavender is full of them."}' \
"https://api.tellmelo.com/v2/posts/5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1/replies"レスポンス Created を1件返します。
例 {
"id": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"scheduledFor": null,
"deleteAt": null
}返りうるステータス: 200400401403404429
POST /v2/replies/{id}/edit自分の返信の本文を変更します。
パラメーター 名前 型 意味 idパス内 string必須 返信のID。 text本文内 string必須 投稿、返信、またはメッセージの本文。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"text":"Same here, the lavender and the clover are full of them."}' \
"https://api.tellmelo.com/v2/replies/9e4b1c7d-2a3f-4d5e-8b6c-0f1e2d3c4b5a/edit"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
DELETE /v2/replies/{id}自分の返信を削除します。
パラメーター curl -X DELETE \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/replies/9e4b1c7d-2a3f-4d5e-8b6c-0f1e2d3c4b5a"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
POST /v2/replies/{id}/like返信に高評価を付ける(返信の投票導入以降、「いいね」は高評価として扱われます)、または高評価を取り消します。低評価はそのまま残ります。
2.19で非推奨:POST /replies/{id}/voteを使ってください。このルートは当面残ります。
パラメーター 名前 型 意味 idパス内 string必須 返信のID。 active本文内 boolean必須 trueで関係を設定し、falseで取り消します。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"active":true}' \
"https://api.tellmelo.com/v2/replies/9e4b1c7d-2a3f-4d5e-8b6c-0f1e2d3c4b5a/like"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
POST /v2/replies/{id}/vote返信に高評価・低評価を付ける、または自分の投票を取り消します。自分の投票と、その後のスコアが返されます。
パラメーター 名前 型 意味 idパス内 string必須 返信のID。 vote本文内 string必須 upで高評価、downで低評価、noneで自分の投票を取り消します。updownnone
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"vote":"up"}' \
"https://api.tellmelo.com/v2/replies/9e4b1c7d-2a3f-4d5e-8b6c-0f1e2d3c4b5a/vote"レスポンス ReplyVote を1件返します。
例 {
"vote": "up",
"score": 12
}返りうるステータス: 200400401403404429
POST /v2/replies/{id}/pick自分の投稿の返信をベストアンサーとして目立たせる、またはそれを取り消します。
自分の投稿の下で、投稿に直接付いた返信のみ。新しくピックアップすると、前のものと置き換わります。
パラメーター 名前 型 意味 idパス内 string必須 返信のID。 active本文内 boolean必須 trueで返信を目立たせ、falseで取り消します。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"active":true}' \
"https://api.tellmelo.com/v2/replies/9e4b1c7d-2a3f-4d5e-8b6c-0f1e2d3c4b5a/pick"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
GET /v2/posts/{id}/replies/waiting投稿の下で承認待ちの返信。自分の投稿ならすべて、それ以外は自分の返信のみ。
返信を承認待ちにするかどうかは、投稿者が返信設定で決めます。
パラメーター curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/posts/5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1/replies/waiting"レスポンス Reply の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "9e4b1c7d-2a3f-4d5e-8b6c-0f1e2d3c4b5a",
"text": "Same here, the lavender is full of them.",
"kind": "post",
"author": {
"id": "d4c3b2a1-6e5f-4a7b-9c8d-1e2f3a4b5c6d",
"handle": "jon",
"name": "Jon",
"verified": false,
"accountKind": "person"
},
"community": null,
"media": [],
"poll": null,
"quotes": null,
"continues": null,
"counts": {
"replies": 0,
"likes": 3,
"reposts": 0
},
"pinned": false,
"giftDrop": null,
"createdAt": 1758624600000,
"postId": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"parentId": null
}
],
"next": null
}返りうるステータス: 200304400401404429
POST /v2/replies/{id}/decide自分の投稿の下で承認待ちの返信を承認または却下します。却下された返信は削除されます。
パラメーター 名前 型 意味 idパス内 string必須 返信のID。 approve本文内 boolean必須 trueで返信を承認し、falseで却下します。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"approve":true}' \
"https://api.tellmelo.com/v2/replies/9e4b1c7d-2a3f-4d5e-8b6c-0f1e2d3c4b5a/decide"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
GET /v2/posts/{id}/replies/planned投稿の下で、あとで送るよう予約した自分の返信。
返信するときにpublishAtで予約します。予約できる返信は同時に20件までです。
パラメーター curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/posts/5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1/replies/planned"レスポンス PlannedReply の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "3b2a1c0d-9e8f-4a7b-b6c5-d4e3f2a1b0c9",
"parentId": null,
"text": "Count me in for Saturday!",
"publishAt": 1758710400000,
"state": "waiting"
}
],
"next": null
}返りうるステータス: 200304400401404429
PUT /v2/me/planned-replies/{id}予約した返信の本文または時刻を変更します。失敗していた返信は、その後ふたたび待機状態になります。
パラメーター 名前 型 意味 idパス内 string必須 予約した返信のid。 text本文内 string任意 投稿、返信、またはメッセージの本文。 publishAt本文内 integer任意 返信を送信する日時。1970年からのミリ秒。省略するとすぐに送信されます。
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"text":"See you there!","publishAt":1758700000000}' \
"https://api.tellmelo.com/v2/me/planned-replies/3b2a1c0d-9e8f-4a7b-b6c5-d4e3f2a1b0c9"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
POST /v2/me/planned-replies/{id}/send予約した返信を今すぐ送信します。
パラメーター 名前 型 意味 idパス内 string必須 予約した返信のid。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/me/planned-replies/3b2a1c0d-9e8f-4a7b-b6c5-d4e3f2a1b0c9/send"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
DELETE /v2/me/planned-replies/{id}予約した返信を削除します。
パラメーター 名前 型 意味 idパス内 string必須 予約した返信のid。
curl -X DELETE \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/me/planned-replies/3b2a1c0d-9e8f-4a7b-b6c5-d4e3f2a1b0c9"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
アンケート アンケートはpollが設定された投稿です。投票には専用のパスがあります。
POST /v2/posts/{id}/voteアンケートに投票します。
選択肢ごとの票数は、自分が投票するかアンケートが終了するまでnullです。totalは常にあります。
パラメーター 名前 型 意味 idパス内 string必須 投稿のid。 option本文内 integer必須 選択肢の番号(0から数えます)。複数選択の場合は、選択肢ごとに1回ずつ呼び出します。 retract本文内 boolean任意 trueで投票を取り消します。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"option":0}' \
"https://api.tellmelo.com/v2/posts/5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1/vote"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
今週の投稿 毎週の投票:ラウンドを見る、投票する、自分の投稿を外す、自分の投稿を選考対象にするかを決める。
GET /v2/pick今週の投稿:開催中のラウンドとその投稿、自分の投票、またはラウンド終了後の受賞投稿。表示するものがない場合、roundはnullです。
レスポンスに含まれる投稿はすべて、アプリと同じように自分のアカウントのインプレッションとして数えられます。1件の投稿につき1日1回、自分の投稿は数えません。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/pick"レスポンス PostOfTheWeek を1件返します。
例 {
"round": {
"id": "r1",
"kind": "week",
"open": true,
"opensAt": 1763200000000,
"closesAt": 1763458800000,
"nominees": [
{
"post": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"author": "mara",
"text": "Our first harvest 🌻",
"mine": false
}
],
"vote": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"mayVote": true,
"winner": null
}
}返りうるステータス: 200304401429
POST /v2/pick/vote開催中のラウンドの投稿に投票する、または投票を変更します。postを省略すると投票が取り消されます。
パラメーター 名前 型 意味 round本文内 string必須 ラウンド。GET /pickで返されたid。 post本文内 string任意 投票する投稿。省略すると投票を取り消します。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"round":"7c1e9a42-5b3d-4f6e-8a90-1b2c3d4e5f60","post":"b6f1c0d2-…"}' \
"https://api.tellmelo.com/v2/pick/vote"レスポンス PickVote を1件返します。
例 {
"vote": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1"
}返りうるステータス: 200400401403429
POST /v2/pick/withdraw自分の投稿を開催中のラウンドから外します。その投稿への票も無効になります。
パラメーター 名前 型 意味 round本文内 string必須 ラウンド。GET /pickで返されたid。 post本文内 string必須 ラウンド内の自分の投稿。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"round":"7c1e9a42-5b3d-4f6e-8a90-1b2c3d4e5f60"}' \
"https://api.tellmelo.com/v2/pick/withdraw"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403429
PUT /v2/me/pick自分の投稿を今週の投稿の候補にするかどうか。オフにすると、開催中のラウンドからも外れます。
パラメーター 名前 型 意味 eligible本文内 boolean必須 true:自分の投稿が選ばれる対象になります。false:対象外になり、開催中のラウンドからも外れます。
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"eligible":true}' \
"https://api.tellmelo.com/v2/me/pick"レスポンス PickEligible を1件返します。
例 返りうるステータス: 200400401403429
プロフィール ユーザー名で指定する公開プロフィールと、その投稿。
GET /v2/profiles/{handle}1件のプロフィール。ユーザー名で指定します。
パラメーター 名前 型 意味 handleパス内 string必須 プロフィールのユーザー名。大文字・小文字は区別しません。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/profiles/mara"レスポンス Profile を1件返します。
例 {
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"verified": true,
"accountKind": "person",
"about": "Beekeeper, allotment, too many seeds. :tellmelo:",
"website": "https://mara-imkerei.example/",
"websiteVerified": true,
"followers": 148,
"createdAt": 1750848000000
}返りうるステータス: 200304400401404429
GET /v2/profiles/{handle}/postsあるプロフィールの公開投稿。新しい順。
権限 read ページ送りあり ETagあり v2.0以降 公開パスでは、counts.likesとcounts.repostsは常に0、pinnedはfalseです。
グループ内の投稿はここではなく、/communities/{id}/postsにあります。
レスポンスに含まれる投稿はすべて、アプリと同じように自分のアカウントのインプレッションとして数えられます。1件の投稿につき1日1回、自分の投稿は数えません。
パラメーター 名前 型 意味 handleパス内 string必須 プロフィールのユーザー名。大文字・小文字は区別しません。 limitクエリ内 integer任意 1ページあたりの件数:デフォルト20件、最大50件。 cursorクエリ内 string任意 前回のレスポンスのnext。省略すると最初から。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/profiles/mara/posts?limit=20"レスポンス Post の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"text": "The bees are back in the garden 🐝 #garden",
"kind": "poll",
"author": {
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"verified": true,
"accountKind": "person"
},
"community": {
"id": "c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60",
"name": "Urban Gardening"
},
"media": [
{
"url": "/api/media?id=b2d7e9f1-3c4a-4e8b-a1f0-6d5c4b3a2918",
"kind": "image",
"poster": null,
"ai": "without"
}
],
"poll": {
"options": [
{
"text": "Lavender",
"votes": 12
},
{
"text": "Sunflowers",
"votes": 7
},
{
"text": "Clover",
"votes": 3
}
],
"total": 22,
"multiple": false,
"endsAt": null,
"running": true,
"resultsVisible": true,
"myVotes": [
0
]
},
"quotes": null,
"continues": null,
"counts": {
"replies": 4,
"likes": 31,
"reposts": 2
},
"pinned": false,
"giftDrop": {
"item": "plan",
"quantity": 3,
"places": 10,
"left": 4,
"audience": "followers",
"newAccounts": false,
"status": "open",
"claimed": true
},
"createdAt": 1758624000000
}
],
"next": "MTc1ODYyNDAwMDAwMDo1ZjBjMmE5ZS04ZDQx"
}返りうるステータス: 200304400401404429
GET /v2/profiles/{handle}/eventsプロフィールの今後の予定。近い順。
プロフィールのプランに予定が含まれている間のみ。互いにブロックしたアカウント間では何も表示されません。
パラメーター 名前 型 意味 handleパス内 string必須 プロフィールのユーザー名。大文字・小文字は区別しません。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/profiles/mara/events"レスポンス Event の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "2a3b4c5d-6e7f-4809-9a1b-2c3d4e5f6a7b",
"title": "Seed swap",
"startsAt": 1758883200000,
"endsAt": 1758890400000,
"place": "Community garden",
"description": "Bring seeds, take seeds.",
"signups": {
"count": 14,
"going": true
}
}
],
"next": null
}返りうるステータス: 200304400401404429
POST /v2/me/events予定を作成します。idが返されます。
予定を含むプランが必要です。ない場合は403が返ります。今後の予定をいくつ入れられるかはプランによって異なります。
パラメーター 名前 型 意味 title本文内 string必須 タイトル。 startsAt本文内 integer必須 開始日時。1970年からのミリ秒。 endsAt本文内 integer任意 終了日時。1970年からのミリ秒。任意。 place本文内 string任意 開催場所。 description本文内 string任意 説明。 signups本文内 boolean任意 参加登録を受け付けるかどうか。参加登録付きのプランが必要です。 capacity本文内 integer任意 参加登録できる最大人数。省略すると無制限です。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"title":"Seed swap","startsAt":1758700000000,"place":"Community garden","signups":true,"capacity":30}' \
"https://api.tellmelo.com/v2/me/events"レスポンス Made を1件返します。
例 {
"id": "0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a"
}返りうるステータス: 200400401403429
PUT /v2/me/events/{id}自分の予定を変更します。すべてのフィールドが新しく設定されます。
すでに始まった予定は、開始日時が変わりません。
パラメーター 名前 型 意味 idパス内 string必須 予定のid。 title本文内 string必須 タイトル。 startsAt本文内 integer必須 開始日時。1970年からのミリ秒。 endsAt本文内 integer任意 終了日時。1970年からのミリ秒。任意。 place本文内 string任意 開催場所。 description本文内 string任意 説明。 signups本文内 boolean任意 参加登録を受け付けるかどうか。参加登録付きのプランが必要です。 capacity本文内 integer任意 参加登録できる最大人数。省略すると無制限です。
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"title":"Seed swap","startsAt":1758700000000,"place":"Community garden","signups":true,"capacity":30}' \
"https://api.tellmelo.com/v2/me/events/2a3b4c5d-6e7f-4809-9a1b-2c3d4e5f6a7b"レスポンス Made を1件返します。
例 {
"id": "0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a"
}返りうるステータス: 200400401403404429
DELETE /v2/me/events/{id}自分の予定を削除します。
パラメーター curl -X DELETE \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/me/events/2a3b4c5d-6e7f-4809-9a1b-2c3d4e5f6a7b"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
GET /v2/me/events/{id}/signups自分の予定に参加登録した人。
パラメーター curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/me/events/2a3b4c5d-6e7f-4809-9a1b-2c3d4e5f6a7b/signups"レスポンス EventSignup の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"at": 1758624000000
}
],
"next": null
}返りうるステータス: 200304400401404429
POST /v2/events/{id}/signup予定への参加を登録、または取り消します。
参加登録のある予定のみ、自分の予定は対象外です。満員の場合は409が返ります。
パラメーター 名前 型 意味 idパス内 string必須 予定のid。 going本文内 boolean必須 trueで参加登録し、falseで取り消します。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"going":true}' \
"https://api.tellmelo.com/v2/events/2a3b4c5d-6e7f-4809-9a1b-2c3d4e5f6a7b/signup"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
GET /v2/me/status自分のステータスと選んだ在席状況。
現在は機能が有効なアカウントのみです。それ以外では設定は 403、/statuses は空のリストを返します。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/me/status"レスポンス OwnStatus を1件返します。
例 {
"presence": "dnd",
"status": {
"emoji": "🌱",
"text": "Planting tomatoes",
"until": 1758710400000
}
}返りうるステータス: 200304401429
PUT /v2/me/statusステータスと在席状況を設定します。
送らなかった項目はそのままです。変更は 1 時間に最大 60 回。
現在は機能が有効なアカウントのみです。それ以外では設定は 403、/statuses は空のリストを返します。
パラメーター 名前 型 意味 presence本文内 string任意 online(入力が 10 分ないと退席中)、idle、dnd、invisible。onlineidledndinvisibletext本文内 string任意 最大 128 文字。空にするとステータスが消えます。テキストがあるときは length が必要です。 emoji本文内 string任意 テキストの前の絵文字。なしなら空にします。 length本文内 string任意 期間:12h、1d、7d、30d、無期限なら never。12h1d7d30dnever
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"presence":"dnd","text":"Planting tomatoes","emoji":"🌱","length":"1d"}' \
"https://api.tellmelo.com/v2/me/status"レスポンス OwnStatus を1件返します。
例 {
"presence": "dnd",
"status": {
"emoji": "🌱",
"text": "Planting tomatoes",
"until": 1758710400000
}
}返りうるステータス: 200400401403429
GET /v2/statusesメンバーについて見えるもの:ドット、ステータス、ゲーム。
ブロックしたアカウント、自分をブロックしたアカウント、停止中のアカウントは含まれません。activity は「プレイ中のゲームを表示」をオンにしたメンバーだけです。
現在は機能が有効なアカウントのみです。それ以外では設定は 403、/statuses は空のリストを返します。
パラメーター 名前 型 意味 idsクエリ内 string必須 カンマ区切りで最大 300 件のアカウント id。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/statuses?ids=a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05"レスポンス MemberStatus の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"presence": "online",
"status": {
"emoji": "🌱",
"text": "Planting tomatoes",
"until": 1758710400000
},
"activity": {
"source": "rich",
"name": "Factorio",
"game": {
"id": "7c1d9e2f-3a4b-4c5d-8e6f-1a2b3c4d5e6f",
"logo": "/api/media?id=4f3e2d1c-0b9a-4876-9543-210fedcba987"
},
"details": "Building a rail network",
"state": "Multiplayer",
"startedAt": 1758620400000,
"endsAt": null,
"largeImage": null,
"largeText": null,
"smallImage": null,
"smallText": null,
"party": {
"size": 2,
"max": 4
},
"buttons": [
{
"label": "Get the game",
"url": "https://example.org/game"
}
]
}
}
],
"next": null
}返りうるステータス: 200304400401429
GET /v2/me/activityいまプレイしているゲーム。
設定で「プレイ中のゲームを表示」がオンのときだけです。オフなら設定は 409 を返します。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/me/activity"レスポンス Playing を1件返します。
例 {
"activity": {
"source": "rich",
"name": "Factorio",
"game": {
"id": "7c1d9e2f-3a4b-4c5d-8e6f-1a2b3c4d5e6f",
"logo": "/api/media?id=4f3e2d1c-0b9a-4876-9543-210fedcba987"
},
"details": "Building a rail network",
"state": "Multiplayer",
"startedAt": 1758620400000,
"endsAt": null,
"largeImage": null,
"largeText": null,
"smallImage": null,
"smallText": null,
"party": {
"size": 2,
"max": 4
},
"buttons": [
{
"label": "Get the game",
"url": "https://example.org/game"
}
]
}
}返りうるステータス: 200304401429
PUT /v2/me/activityゲームを手動で入力します。
設定で「プレイ中のゲームを表示」がオンのときだけです。オフなら設定は 409 を返します。
いま表示中のものを置き換えます。1 時間に最大 120 回。
パラメーター 名前 型 意味 name本文内 string必須 ゲーム名(最大 64 文字)。既知のゲームにはロゴが付きます。 game本文内 string任意 GET /v2/games で得たゲームの id。なければ名前が使われます。length本文内 string必須 期間:12h、1d、7d、30d、無期限なら never。12h1d7d30dnever
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"name":"Factorio","length":"1d"}' \
"https://api.tellmelo.com/v2/me/activity"レスポンス Playing を1件返します。
例 {
"activity": {
"source": "rich",
"name": "Factorio",
"game": {
"id": "7c1d9e2f-3a4b-4c5d-8e6f-1a2b3c4d5e6f",
"logo": "/api/media?id=4f3e2d1c-0b9a-4876-9543-210fedcba987"
},
"details": "Building a rail network",
"state": "Multiplayer",
"startedAt": 1758620400000,
"endsAt": null,
"largeImage": null,
"largeText": null,
"smallImage": null,
"smallText": null,
"party": {
"size": 2,
"max": 4
},
"buttons": [
{
"label": "Get the game",
"url": "https://example.org/game"
}
]
}
}返りうるステータス: 200400401403429
DELETE /v2/me/activityゲームの表示を終了します。
curl -X DELETE \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/me/activity"レスポンス Ok を1件返します。
例 返りうるステータス: 200401403429
GET /v2/games名前でゲームを検索します。
2 文字から。3 文字からは Steam ストアも検索し、誰かが選ぶまで id は null です。
パラメーター 名前 型 意味 qクエリ内 string必須 検索する語句。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/games?q=Fact"レスポンス Game の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "7c1d9e2f-3a4b-4c5d-8e6f-1a2b3c4d5e6f",
"name": "Factorio",
"logo": "/api/media?id=4f3e2d1c-0b9a-4876-9543-210fedcba987"
}
],
"next": null
}返りうるステータス: 200304400401429
グループ 公開グループと自分のグループ、その投稿、メンバー、ロール、招待リンク。
GET /v2/communitiesこのインスタンスの公開グループ。mine=trueを付けると自分のアカウントのグループ。
メンバー数順で、ページ送りはありません。nextは常にnullです。
パラメーター 名前 型 意味 limitクエリ内 integer任意 1ページあたりの件数:デフォルト20件、最大50件。 mineクエリ内 boolean任意 trueで、内部・非表示を含む自分のアカウントのグループを名前順で返します。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/communities?limit=20"レスポンス Community の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60",
"name": "Urban Gardening",
"handle": "urbangardening",
"description": "Balconies, allotments, rooftops: whatever grows.",
"tags": [
"garden",
"bees"
],
"members": 312,
"joinPolicy": "open",
"visibility": "open",
"feedChannel": true,
"sparks": 24,
"perks": [
"tint",
"welcome"
],
"membership": {
"leader": null,
"roles": [
"4e5f6a7b-8c9d-4e0f-a1b2-c3d4e5f6a7b8"
],
"permissions": [
"attach",
"invite",
"send",
"view"
],
"mutedUntil": null
}
}
],
"next": null
}返りうるステータス: 200304401429
GET /v2/communities/{id}1件のグループ。idで指定します。
内部グループと非表示グループは、自分のアカウントがメンバーの場合のみ。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60"レスポンス Community を1件返します。
例 {
"id": "c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60",
"name": "Urban Gardening",
"handle": "urbangardening",
"description": "Balconies, allotments, rooftops: whatever grows.",
"tags": [
"garden",
"bees"
],
"members": 312,
"joinPolicy": "open",
"visibility": "open",
"feedChannel": true,
"sparks": 24,
"perks": [
"tint",
"welcome"
],
"membership": {
"leader": null,
"roles": [
"4e5f6a7b-8c9d-4e0f-a1b2-c3d4e5f6a7b8"
],
"permissions": [
"attach",
"invite",
"send",
"view"
],
"mutedUntil": null
}
}返りうるステータス: 200304400401404429
GET /v2/communities/{id}/postsグループのフィードチャンネルの投稿。新しい順。
権限 read ページ送りあり ETagあり v2.0以降 公開パスでは、counts.likesとcounts.repostsは常に0、pinnedはfalseです。
フィードチャンネルがオフの場合、このパスはfeed_off付きで409を返します。
レスポンスに含まれる投稿はすべて、アプリと同じように自分のアカウントのインプレッションとして数えられます。1件の投稿につき1日1回、自分の投稿は数えません。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。 limitクエリ内 integer任意 1ページあたりの件数:デフォルト20件、最大50件。 cursorクエリ内 string任意 前回のレスポンスのnext。省略すると最初から。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/posts?limit=20"レスポンス Post の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"text": "The bees are back in the garden 🐝 #garden",
"kind": "poll",
"author": {
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"verified": true,
"accountKind": "person"
},
"community": {
"id": "c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60",
"name": "Urban Gardening"
},
"media": [
{
"url": "/api/media?id=b2d7e9f1-3c4a-4e8b-a1f0-6d5c4b3a2918",
"kind": "image",
"poster": null,
"ai": "without"
}
],
"poll": {
"options": [
{
"text": "Lavender",
"votes": 12
},
{
"text": "Sunflowers",
"votes": 7
},
{
"text": "Clover",
"votes": 3
}
],
"total": 22,
"multiple": false,
"endsAt": null,
"running": true,
"resultsVisible": true,
"myVotes": [
0
]
},
"quotes": null,
"continues": null,
"counts": {
"replies": 4,
"likes": 31,
"reposts": 2
},
"pinned": false,
"giftDrop": {
"item": "plan",
"quantity": 3,
"places": 10,
"left": 4,
"audience": "followers",
"newAccounts": false,
"status": "open",
"claimed": true
},
"createdAt": 1758624000000
}
],
"next": "MTc1ODYyNDAwMDAwMDo1ZjBjMmE5ZS04ZDQx"
}返りうるステータス: 200304400401404429
GET /v2/communities/{id}/membersグループのメンバーとそのロール。
運営が先、次に最上位ロール順。最大300件。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/members"レスポンス GroupMember の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "d4c3b2a1-6e5f-4a7b-9c8d-1e2f3a4b5c6d",
"handle": "jon",
"name": "Jon",
"bot": false,
"leader": null,
"roles": [
"4e5f6a7b-8c9d-4e0f-a1b2-c3d4e5f6a7b8"
],
"mutedUntil": null
}
],
"next": null
}返りうるステータス: 200304400401404429
GET /v2/communities/{id}/rolesグループのロール。最上位が先頭で、@everyoneが最後。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/roles"レスポンス Role の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "4e5f6a7b-8c9d-4e0f-a1b2-c3d4e5f6a7b8",
"name": "Gardeners",
"everyone": false,
"color": "green",
"permissions": [
"attach",
"invite",
"send",
"view"
],
"members": 24,
"editable": true,
"selfable": false
}
],
"next": null
}返りうるステータス: 200304400401404429
GET /v2/communities/{id}/bellグループから届く通知の種類。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/bell"レスポンス Bell を1件返します。
例 返りうるステータス: 200304400401404429
GET /v2/invites/{code}参加前に、招待リンクの先のグループを確認します。
パラメーター 名前 型 意味 codeパス内 string必須 招待リンクのコード。アドレスの末尾部分です。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/invites/k7Qm2xPa"レスポンス InvitePreview を1件返します。
例 {
"community": {
"id": "c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60",
"name": "Urban Gardening",
"members": 312,
"rules": [
"Be kind.",
"No advertising."
]
},
"member": false
}返りうるステータス: 200304400401404429
PUT /v2/roles/{id}/self自分で選べるロールを付ける、または外します。
運営が自分で選べるロールとして提供しているもの(selfable)のみ、自分のアカウントにだけ使えます。
パラメーター 名前 型 意味 idパス内 string必須 ロールのid。 active本文内 boolean任意 falseでロールを外し、それ以外は付与します。
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"active":true}' \
"https://api.tellmelo.com/v2/roles/4e5f6a7b-8c9d-4e0f-a1b2-c3d4e5f6a7b8/self"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
GET /v2/communities/{id}/emojisグループ独自の絵文字。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/emojis"レスポンス GroupEmoji の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"name": "seedling",
"url": "/api/media?id=8c7b6a59-4837-4261-9f5e-d4c3b2a1f0e9",
"animated": false
}
],
"next": null
}返りうるステータス: 200304400401404429
PUT /v2/communities/{id}/bellグループから届く通知の種類を設定します。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。 level本文内 string必須 届く通知の種類。allimportantoff
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"level":"important"}' \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/bell"レスポンス Bell を1件返します。
例 返りうるステータス: 200400401403404429
POST /v2/invites/{code}/join招待リンクでグループに参加します。
パラメーター 名前 型 意味 codeパス内 string必須 招待リンクのコード。アドレスの末尾部分です。 rules本文内 boolean任意 グループのルールに同意する場合はtrue。ルールがあるグループでは必須です。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/invites/k7Qm2xPa/join"レスポンス Joined を1件返します。
例 {
"community": "c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60"
}返りうるステータス: 200400401403404429
GET /v2/communities/{id}/botsグループのボットと、そのロールで許可されている操作。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/bots"レスポンス GroupBot の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "gardenbot",
"name": "Garden bot",
"description": "Reminds the group of watering days.",
"permissions": [
"send",
"view"
]
}
],
"next": null
}返りうるステータス: 200304400401404429
チャンネル 所属グループのチャンネルとチャット:読み取り、書き込み、既読化。
GET /v2/communities/{id}/channelsグループのうち、自分が見られるチャンネル。並び順どおり。
フィードチャンネル(kind: feed)は、オンの間だけここに表示されます。その投稿は/communities/{id}/postsから取得します。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/channels"レスポンス Channel の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a",
"kind": "chat",
"name": "harvest",
"topic": "What came in this week",
"category": {
"id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
"name": "Garden",
"symbol": {
"emoji": null,
"icon": null,
"image": null,
"color": null,
"shape": null
}
},
"unread": 3,
"permissions": [
"view",
"send",
"react"
],
"symbol": {
"emoji": "🌻",
"icon": null,
"image": null,
"color": "amber",
"shape": "circle"
}
}
],
"next": null
}返りうるステータス: 200304400401404429
GET /v2/channels/{id}/messagesチャットチャンネルのメッセージ。新しい順。
権限 read ページ送りあり ETagあり v2.15以降 1ページあたり最大50件のメッセージ。ブロックしたアカウントやブロックされたアカウントのメッセージは含まれません。
パラメーター 名前 型 意味 idパス内 string必須 チャンネルのid。 cursorクエリ内 string任意 前回のレスポンスのnext。省略すると最初から。 threadクエリ内 string任意 スレッドを読み取るメッセージ:チャットの代わりに、そのメッセージと返信を返します。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/channels/0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a/messages"レスポンス ChannelMessage の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "61a2b3c4-d5e6-4f70-8192-a3b4c5d6e7f8",
"text": "@jon the first tomatoes are ripe 🍅",
"author": {
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"bot": false
},
"media": [
{
"url": "/api/media?id=b2d7e9f1-3c4a-4e8b-a1f0-6d5c4b3a2918",
"kind": "image",
"poster": null,
"ai": "without"
}
],
"replyTo": "72b3c4d5-e6f7-4081-92a3-b4c5d6e7f809",
"roleColor": "green",
"threadOf": null,
"threadCount": 3,
"card": null,
"buttons": [],
"cards": [],
"rows": [],
"reactions": [],
"createdAt": 1758631200000
}
],
"next": "MTc1ODYyNDAwMDAwMDo1ZjBjMmE5ZS04ZDQx"
}返りうるステータス: 200304400401404429
POST /v2/channels/{id}/messagesチャットチャンネルにメッセージを書き込みます。
@nameでメンバーに通知し、権限があれば@everyoneで全員に通知できます。1時間に6回まで。
パラメーター 名前 型 意味 idパス内 string必須 チャンネルのid。 text本文内 string任意 投稿、返信、またはメッセージの本文。 replyTo本文内 string任意 返信先となる、同じチャンネル内のメッセージのid。 media本文内 string[]任意 アプリでアップロードした画像のID、またはメディアライブラリのGIFや動画のID(2.14以降)。 thread本文内 string任意 スレッドで返信する先のチャットメッセージ。省略するとメッセージはチャットに送られます。 card本文内 object任意 カード{ title, text, color, fields: [{ name, value }] }。フィールドは最大10個。 buttons本文内 object[]任意 最大5個のボタン。それぞれ{ id, label, style }で、styleはprimary、secondary、dangerのいずれか。押されるとinteractionイベントが届きます。 cards本文内 object[]任意 最大 10 枚のカード(2.26 以降)。それぞれ card と同じで、url、author、footer、image、thumbnail、timestamp、inline 付きフィールドを追加できます。 rows本文内 object[]任意 最大 5 行(2.26 以降)。各行は最大 5 個のボタンとリンク、またはメニュー 1 つのリストです。カード、ボタン、メニュー を参照。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"text":"Who has seeds to swap?"}' \
"https://api.tellmelo.com/v2/channels/0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a/messages"レスポンス Made を1件返します。
例 {
"id": "0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a"
}返りうるステータス: 200400401403404429
POST /v2/channels/{id}/readチャットチャンネルを指定した時点まで既読にします。
パラメーター 名前 型 意味 idパス内 string必須 チャンネルのid。 at本文内 integer必須 既読にする時点(ミリ秒)。通常は最新メッセージのcreatedAt。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/channels/0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a/read"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
DELETE /v2/channel-messages/{id}チャットチャンネルの自分のメッセージを削除します。
自分のメッセージのみ。ほかの人のメッセージは、groups 権限を持つ運営が削除します。
パラメーター 名前 型 意味 idパス内 string必須 チャットチャンネルのメッセージのid。
curl -X DELETE \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/channel-messages/61a2b3c4-d5e6-4f70-8192-a3b4c5d6e7f8"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
PUT /v2/channel-messages/{id}/reactions/{emoji}チャットチャンネルのメッセージに絵文字でリアクションします。
各絵文字は1アカウントにつき1回、1つのメッセージに最大20種類まで。カスタム絵文字は、そのアカウントが書き込める場合のみ使えます。グループではreact権限が必要で、封印メッセージにはリアクションできません。レスポンスにはメッセージのすべてのリアクションが含まれます。
パラメーター 名前 型 意味 idパス内 string必須 チャットチャンネルのメッセージのid。 emojiパス内 string必須 パス内でエンコードした絵文字:標準の絵文字(🌻なら%F0%9F%8C%BB)または:name:形式の独自絵文字。
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/channel-messages/61a2b3c4-d5e6-4f70-8192-a3b4c5d6e7f8/reactions/🌻"レスポンス Reaction の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"emoji": "🌻",
"count": 3,
"mine": true
}
],
"next": null
}返りうるステータス: 200400401403404429
DELETE /v2/channel-messages/{id}/reactions/{emoji}チャットチャンネルのメッセージへの自分のリアクションを取り消します。
各絵文字は1アカウントにつき1回、1つのメッセージに最大20種類まで。カスタム絵文字は、そのアカウントが書き込める場合のみ使えます。グループではreact権限が必要で、封印メッセージにはリアクションできません。レスポンスにはメッセージのすべてのリアクションが含まれます。
パラメーター 名前 型 意味 idパス内 string必須 チャットチャンネルのメッセージのid。 emojiパス内 string必須 パス内でエンコードした絵文字:標準の絵文字(🌻なら%F0%9F%8C%BB)または:name:形式の独自絵文字。
curl -X DELETE \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/channel-messages/61a2b3c4-d5e6-4f70-8192-a3b4c5d6e7f8/reactions/🌻"レスポンス Reaction の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"emoji": "🌻",
"count": 3,
"mine": true
}
],
"next": null
}返りうるステータス: 200400401403404429
GET /v2/communities/{id}/voiceグループのボイスチャンネルに今いる人。チャンネルごと。
閲覧できるチャンネルのみ。メディアサーバーが動いていない場合、リストは空です。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/voice"レスポンス VoiceRoom の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"channel": "0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a",
"people": [
{
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"muted": false,
"deaf": false,
"camera": false,
"screen": true
}
]
}
],
"next": null
}返りうるステータス: 200304400401404429
グループの管理 アプリのグループ設定でできることを、groups 権限で行えます。自分のアカウントで何ができるかは、アプリと同じくグループが決めます:運営、ロール、その順位。
POST /v2/communities/{id}/emojisグループに絵文字を追加します。
グループのチャンネルを管理できる人のみ。画像は自分の独自絵文字と同じようにアップロードします(POST /me/emojis/pictures)。名前はすべての絵文字を通して重複できません。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。 name本文内 string必須 絵文字を:name:として書くときの名前。 picture本文内 string必須 POST /me/emojis/picturesで返されたid。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"name":"seedling","picture":"8c7b6a59-4837-4261-9f5e-d4c3b2a1f0e9"}' \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/emojis"レスポンス GroupEmoji の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"name": "seedling",
"url": "/api/media?id=8c7b6a59-4837-4261-9f5e-d4c3b2a1f0e9",
"animated": false
}
],
"next": null
}返りうるステータス: 200400401403404429
DELETE /v2/communities/{id}/emojis/{name}グループの絵文字を削除します。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。 nameパス内 string必須 絵文字の名前。コロンなし。
curl -X DELETE \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/emojis/seedling"レスポンス GroupEmoji の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"name": "seedling",
"url": "/api/media?id=8c7b6a59-4837-4261-9f5e-d4c3b2a1f0e9",
"animated": false
}
],
"next": null
}返りうるステータス: 200400401403404429
POST /v2/communities/{id}/rolesロールを作成します。
自分の最上位ロールより下のロールと、自分が持っている権限のみ。運営はすべてのロールより上です。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。 name本文内 string任意 ロールの名前。@everyoneの名前は変わりません。 color本文内 string任意 色:名前(indigo、violet、rose、amber、green、teal)または#rrggbb形式の独自の色。空にすると色なし。 permissions本文内 string[]任意 権限:view、send、attach、react、post_feed、invite、mention_everyone、moderate、timeout_members、kick_members、ban_members、manage_channels、manage_roles。 selfable本文内 boolean任意 true:メンバーが自分でロールを付けられます。参加以上の権限を持たないロールのみ(view、send、attach、voice_connect、voice_speak、voice_video)。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"name":"Gardeners","color":"#e53935","permissions":["view","send","invite"],"selfable":false}' \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/roles"レスポンス Made を1件返します。
例 {
"id": "0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a"
}返りうるステータス: 200400401403404429
PUT /v2/roles/{id}ロールの名前、色、権限を変更します。
名前、色、権限を置き換えます。省略した項目は空になります。
自分の最上位ロールより下のロールと、自分が持っている権限のみ。運営はすべてのロールより上です。
パラメーター 名前 型 意味 idパス内 string必須 ロールのid。 name本文内 string任意 ロールの名前。@everyoneの名前は変わりません。 color本文内 string任意 色:名前(indigo、violet、rose、amber、green、teal)または#rrggbb形式の独自の色。空にすると色なし。 permissions本文内 string[]任意 権限:view、send、attach、react、post_feed、invite、mention_everyone、moderate、timeout_members、kick_members、ban_members、manage_channels、manage_roles。 selfable本文内 boolean任意 true:メンバーが自分でロールを付けられます。参加以上の権限を持たないロールのみ(view、send、attach、voice_connect、voice_speak、voice_video)。
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"name":"Gardeners","color":"#e53935","permissions":["view","send","invite"],"selfable":false}' \
"https://api.tellmelo.com/v2/roles/4e5f6a7b-8c9d-4e0f-a1b2-c3d4e5f6a7b8"レスポンス Made を1件返します。
例 {
"id": "0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a"
}返りうるステータス: 200400401403404429
DELETE /v2/roles/{id}ロールを削除します。
パラメーター 名前 型 意味 idパス内 string必須 ロールのid。
curl -X DELETE \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/roles/4e5f6a7b-8c9d-4e0f-a1b2-c3d4e5f6a7b8"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
PUT /v2/communities/{id}/roles/orderロールの順位を設定します。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。 roles本文内 string[]必須 自分の最上位ロールより下のすべてのロールのid。最上位が先頭。運営の場合は@everyone以外のすべて。
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/roles/order"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
PUT /v2/roles/{id}/members/{member}メンバーにロールを付与、または解除します。
パラメーター 名前 型 意味 idパス内 string必須 ロールのid。 memberパス内 string必須 メンバーのアカウントのid。 active本文内 boolean任意 falseでロールを外し、それ以外は付与します。
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"active":true}' \
"https://api.tellmelo.com/v2/roles/4e5f6a7b-8c9d-4e0f-a1b2-c3d4e5f6a7b8/members/d4c3b2a1-6e5f-4a7b-9c8d-1e2f3a4b5c6d"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
POST /v2/communities/{id}/channelsチャットチャンネルを作成します。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。 name本文内 string任意 名前(#なし)。空にすると、アプリが各言語で付ける名前になります。 topic本文内 string任意 チャンネルの上部に表示されるトピック。 category本文内 string任意 チャンネルを入れるカテゴリーのid。空にするとカテゴリーなし。 emoji本文内 string任意 アイコンにする絵文字。 icon本文内 string任意 アプリのアイコンセットから、名前で指定するシンボル。homehashmegaphonevolumemessagehelpinfobellcalendarbookbookmarkpinshieldstarheartsparklesflamezaptrophygiftrocketlightbulbcodewrenchbriefcasegraduationpalettecamerafilmmusicgamepaddumbbellleafflowerpawsunmooncloudglobemapcoffeepizzasmile image本文内 string任意 /media/emojiでアップロードした画像のID。color本文内 string任意 タイルの色:名前(brand、indigo、violet、rose、amber、green、teal、red)または#rrggbb形式の独自の色。 shape本文内 string任意 タイルの形。省略すると円。circlesquaretrianglediamondhexagonoctagonshieldstar
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"name":"harvest","emoji":"🌻","color":"amber"}' \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/channels"レスポンス Made を1件返します。
例 {
"id": "0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a"
}返りうるステータス: 200400401403404429
PUT /v2/channels/{id}チャンネルの名前、トピック、カテゴリーを変更します。
名前、トピック、カテゴリーを置き換えます。省略した項目は空になります。
パラメーター 名前 型 意味 idパス内 string必須 チャンネルのid。 name本文内 string任意 名前(#なし)。空にすると、アプリが各言語で付ける名前になります。 topic本文内 string任意 チャンネルの上部に表示されるトピック。 category本文内 string任意 チャンネルを入れるカテゴリーのid。空にするとカテゴリーなし。 emoji本文内 string任意 アイコンにする絵文字。 icon本文内 string任意 アプリのアイコンセットから、名前で指定するシンボル。homehashmegaphonevolumemessagehelpinfobellcalendarbookbookmarkpinshieldstarheartsparklesflamezaptrophygiftrocketlightbulbcodewrenchbriefcasegraduationpalettecamerafilmmusicgamepaddumbbellleafflowerpawsunmooncloudglobemapcoffeepizzasmile image本文内 string任意 /media/emojiでアップロードした画像のID。color本文内 string任意 タイルの色:名前(brand、indigo、violet、rose、amber、green、teal、red)または#rrggbb形式の独自の色。 shape本文内 string任意 タイルの形。省略すると円。circlesquaretrianglediamondhexagonoctagonshieldstar
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"name":"harvest","emoji":"🌻","color":"amber"}' \
"https://api.tellmelo.com/v2/channels/0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a"レスポンス Made を1件返します。
例 {
"id": "0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a"
}返りうるステータス: 200400401403404429
DELETE /v2/channels/{id}チャットチャンネルをメッセージごと削除します。
フィードチャンネルは削除できず、オフにすることだけできます。
パラメーター 名前 型 意味 idパス内 string必須 チャンネルのid。
curl -X DELETE \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/channels/0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
PUT /v2/communities/{id}/channels/orderカテゴリーとチャットチャンネルの並び順を設定します。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。 categories本文内 string[]必須 グループのすべてのカテゴリーのidを、新しい並び順で。 channels本文内 string[]必須 グループのすべてのチャットチャンネルのidを、新しい並び順で。
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/channels/order"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
PUT /v2/communities/{id}/channels/shapeグループのすべてのチャンネルアイコンの形を設定します。
グループの運営のみ。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。 shape本文内 string任意 グループのすべてのアイコンの形。省略すると、各チャンネルが個別の形を持ちます。circlesquaretrianglediamondhexagonoctagonshieldstar
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/channels/shape"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
GET /v2/channels/{id}/overridesチャンネル内で、グループ全体とは異なるロールの権限。
パラメーター 名前 型 意味 idパス内 string必須 チャンネルのid。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/channels/0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a/overrides"レスポンス ChannelOverride の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"role": "4e5f6a7b-8c9d-4e0f-a1b2-c3d4e5f6a7b8",
"member": null,
"allow": [
"send"
],
"deny": []
}
],
"next": null
}返りうるステータス: 200304400401403404429
PUT /v2/channels/{id}/overrides/{role}チャンネル内でのロールの権限を個別に設定します。
自分の最上位ロールと同じか、それより上のロールには使えません。
パラメーター 名前 型 意味 idパス内 string必須 チャンネルのid。 roleパス内 string必須 ロールのid。 allow本文内 string[]任意 このロールにここで追加で許可すること:チャットではview、send、attach、react、mention_everyone、moderate、フィードチャンネルではviewとpost_feed。 deny本文内 string[]任意 このロールにここで許可しないこと(同じ権限から選択)。両方のリストを空にすると、個別設定が解除されます。
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"allow":["view"],"deny":["send"]}' \
"https://api.tellmelo.com/v2/channels/0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a/overrides/4e5f6a7b-8c9d-4e0f-a1b2-c3d4e5f6a7b8"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
POST /v2/communities/{id}/categoriesチャンネル用のカテゴリーを作成します。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。 name本文内 string必須 カテゴリーの名前。 emoji本文内 string任意 アイコンにする絵文字。 icon本文内 string任意 アプリのアイコンセットから、名前で指定するシンボル。homehashmegaphonevolumemessagehelpinfobellcalendarbookbookmarkpinshieldstarheartsparklesflamezaptrophygiftrocketlightbulbcodewrenchbriefcasegraduationpalettecamerafilmmusicgamepaddumbbellleafflowerpawsunmooncloudglobemapcoffeepizzasmile image本文内 string任意 /media/emojiでアップロードした画像のID。color本文内 string任意 タイルの色:名前(brand、indigo、violet、rose、amber、green、teal、red)または#rrggbb形式の独自の色。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"name":"Garden","emoji":"🌻","color":"amber"}' \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/categories"レスポンス Made を1件返します。
例 {
"id": "0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a"
}返りうるステータス: 200400401403404429
PUT /v2/categories/{id}カテゴリーの名前を変更します。
パラメーター 名前 型 意味 idパス内 string必須 カテゴリーのid。 name本文内 string必須 カテゴリーの名前。 emoji本文内 string任意 アイコンにする絵文字。 icon本文内 string任意 アプリのアイコンセットから、名前で指定するシンボル。homehashmegaphonevolumemessagehelpinfobellcalendarbookbookmarkpinshieldstarheartsparklesflamezaptrophygiftrocketlightbulbcodewrenchbriefcasegraduationpalettecamerafilmmusicgamepaddumbbellleafflowerpawsunmooncloudglobemapcoffeepizzasmile image本文内 string任意 /media/emojiでアップロードした画像のID。color本文内 string任意 タイルの色:名前(brand、indigo、violet、rose、amber、green、teal、red)または#rrggbb形式の独自の色。
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"name":"Garden","emoji":"🌻","color":"amber"}' \
"https://api.tellmelo.com/v2/categories/9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"レスポンス Made を1件返します。
例 {
"id": "0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a"
}返りうるステータス: 200400401403404429
DELETE /v2/categories/{id}カテゴリーを削除します。
中のチャンネルはカテゴリーなしで残ります。
パラメーター 名前 型 意味 idパス内 string必須 カテゴリーのid。
curl -X DELETE \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/categories/9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
PUT /v2/communities/{id}/feedグループのフィードチャンネルをオン・オフします。
オフにしても投稿は保存されたままですが、投稿者本人にしか表示されません。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。 on本文内 boolean必須 trueでフィードチャンネルをオン、falseでオフにします。
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/feed"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
GET /v2/communities/{id}/invitesグループの有効な招待リンク。
運営はすべて、それ以外の人は自分の招待のみ表示されます。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/invites"レスポンス InviteLink の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"code": "k7Qm2xPa",
"url": "https://tellmelo.com/groups?join=k7Qm2xPa",
"createdBy": {
"id": "d4c3b2a1-6e5f-4a7b-9c8d-1e2f3a4b5c6d",
"handle": "jon",
"name": "Jon",
"bot": false
},
"createdAt": 1758624000000,
"expiresAt": 1759228800000,
"uses": 3,
"maxUses": 10
}
],
"next": null
}返りうるステータス: 200304400401403404429
POST /v2/communities/{id}/invites招待リンクを作成します。
リンクは招待できる間だけ有効で、退出すると無効になります。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。 days本文内 integer任意 リンクの有効日数。省略すると、無効にするまで有効です。1730 uses本文内 integer任意 リンクを使える回数。省略すると無制限です。151025100
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"days":7,"uses":10}' \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/invites"レスポンス Made を1件返します。
例 {
"id": "0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a"
}返りうるステータス: 200400401403404429
DELETE /v2/invites/{code}招待リンクを無効にします。
パラメーター 名前 型 意味 codeパス内 string必須 招待リンクのコード。アドレスの末尾部分です。
curl -X DELETE \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/invites/k7Qm2xPa"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
POST /v2/channel-messages/{id}/removeほかのメンバーのメッセージをチャンネルから削除します。
アプリと同じく、グループのログに記録され、1時間に60件までです。
パラメーター 名前 型 意味 idパス内 string必須 チャットチャンネルのメッセージのid。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/channel-messages/61a2b3c4-d5e6-4f70-8192-a3b4c5d6e7f8/remove"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
POST /v2/communities/{id}/posts/{post}/removeグループから投稿を削除します。
アプリと同じく、グループのログに記録され、1時間に60件までです。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。 postパス内 string必須 投稿のid。 reason本文内 string必須 メンバーに表示される理由。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"reason":"Advertising for another site, despite rule 2."}' \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/posts/post/remove"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
DELETE /v2/communities/{id}/members/{member}メンバーをグループからキックします。
2.16からはキックです:メンバーは再び参加できます。参加させたくない場合はBANします。
その権限があり、自分の最上位ロールより下のメンバーに対してのみ。管理者には作成者のみ。
アプリと同じく、グループのログに記録され、1時間に60件までです。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。 memberパス内 string必須 メンバーのアカウントのid。 reason本文内 string必須 メンバーに表示される理由。
curl -X DELETE \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"reason":"Advertising for another site, despite rule 2."}' \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/members/d4c3b2a1-6e5f-4a7b-9c8d-1e2f3a4b5c6d"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
PUT /v2/communities/{id}/members/{member}/timeoutメンバーをミュートします。
新しいタイムアウトは、実行中のタイムアウトと置き換わります。退出して再参加しても終わりません。
その権限があり、自分の最上位ロールより下のメンバーに対してのみ。管理者には作成者のみ。
アプリと同じく、グループのログに記録され、1時間に60件までです。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。 memberパス内 string必須 メンバーのアカウントのid。 seconds本文内 integer必須 期間(秒)。60300600360086400604800 reason本文内 string任意 メンバーに表示される理由。任意。
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"seconds":600}' \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/members/d4c3b2a1-6e5f-4a7b-9c8d-1e2f3a4b5c6d/timeout"レスポンス Until を1件返します。
例 {
"until": 1758624600000
}返りうるステータス: 200400401403404429
DELETE /v2/communities/{id}/members/{member}/timeoutタイムアウトを解除します。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。 memberパス内 string必須 メンバーのアカウントのid。
curl -X DELETE \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/members/d4c3b2a1-6e5f-4a7b-9c8d-1e2f3a4b5c6d/timeout"レスポンス Until を1件返します。
例 {
"until": 1758624600000
}返りうるステータス: 200400401403404429
GET /v2/communities/{id}/bansグループで有効なBAN。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/bans"レスポンス Ban の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"member": {
"id": "d4c3b2a1-6e5f-4a7b-9c8d-1e2f3a4b5c6d",
"handle": "jon",
"name": "Jon",
"bot": false
},
"until": 1759228800000,
"createdAt": 1758624000000,
"by": "Mara 🌻"
}
],
"next": null
}返りうるステータス: 200304400401403404429
PUT /v2/communities/{id}/bans/{member}メンバーをBANします。
daysがない場合、BANは解除されるまで続きます。
その権限があり、自分の最上位ロールより下のメンバーに対してのみ。管理者には作成者のみ。
アプリと同じく、グループのログに記録され、1時間に60件までです。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。 memberパス内 string必須 メンバーのアカウントのid。 days本文内 integer任意 期間(日)。省略すると無期限のBANになります。1730 reason本文内 string必須 メンバーに表示される理由。
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"days":7,"reason":"Advertising for another site, despite rule 2."}' \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/bans/d4c3b2a1-6e5f-4a7b-9c8d-1e2f3a4b5c6d"レスポンス Until を1件返します。
例 {
"until": 1758624600000
}返りうるステータス: 200400401403404429
DELETE /v2/communities/{id}/bans/{member}BANを解除します。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。 memberパス内 string必須 メンバーのアカウントのid。
curl -X DELETE \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/bans/d4c3b2a1-6e5f-4a7b-9c8d-1e2f3a4b5c6d"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
GET /v2/communities/{id}/log運営のログ:誰が何をなぜ削除したか。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60/log"レスポンス LogEntry の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "8f7e6d5c-4b3a-4291-8f7e-6d5c4b3a2918",
"action": "message_removed",
"member": {
"id": "d4c3b2a1-6e5f-4a7b-9c8d-1e2f3a4b5c6d",
"handle": "jon",
"name": "Jon",
"bot": false
},
"reason": "",
"by": "Mara 🌻",
"channel": null,
"createdAt": 1758710400000
}
],
"next": null
}返りうるステータス: 200304400401403404429
POST /v2/communitiesグループを作成します。idが返され、自分が創設者になります。
groups権限が必要です。指定しない場合、グループはinternalで自由に参加できます。非表示グループは招待制のみです。メンバーがグループを作成できるかどうかは運営者が決めます。
パラメーター 名前 型 意味 name本文内 string必須 名前。最大60文字。 description本文内 string任意 説明。最大240文字。 handle本文内 string任意 @#メンションとリンクに使う短い名前:3〜30文字の小文字英字、数字、_。 tags本文内 string[]任意 グループのテーマを表す#タグ。最大5個。 joinPolicy本文内 string任意 参加方法:openは自由参加、applicationは申請制、inviteは招待制のみ。openapplicationinvite visibility本文内 string任意 グループを見られる人:openは全員、internalは内容をメンバーのみ、hiddenはグループ自体をメンバーのみ。openinternalhidden
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"name":"Seed swap","handle":"seedswap","tags":["garden","seeds"],"joinPolicy":"open","visibility":"open"}' \
"https://api.tellmelo.com/v2/communities"レスポンス Made を1件返します。
例 {
"id": "0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a"
}返りうるステータス: 200400401403429
PUT /v2/communities/{id}自分が運営するグループを変更します。指定しなかった項目はそのままです。
groups権限と、グループの運営権限が必要です。運営権限の譲渡、解散、スパーク特典はアプリ内でのみ行えます。
パラメーター 名前 型 意味 idパス内 string必須 グループのid。 name本文内 string任意 名前。最大60文字。 description本文内 string任意 説明。最大240文字。 handle本文内 string任意 @#メンションとリンクに使う短い名前:3〜30文字の小文字英字、数字、_。 tags本文内 string[]任意 グループのテーマを表す#タグ。最大5個。 joinPolicy本文内 string任意 参加方法:openは自由参加、applicationは申請制、inviteは招待制のみ。openapplicationinvite visibility本文内 string任意 グループを見られる人:openは全員、internalは内容をメンバーのみ、hiddenはグループ自体をメンバーのみ。openinternalhidden image本文内 string任意 グループ画像にする、アップロード済み画像(POST /me/pictures)のid。空にすると削除されます。 banner本文内 string任意 グループのカバー画像にする、アップロード済み画像のid。空にすると削除されます。
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"name":"Seed swap","handle":"seedswap","tags":["garden","seeds"],"joinPolicy":"open","visibility":"open"}' \
"https://api.tellmelo.com/v2/communities/c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
ボット ボットのグループで起きていることをリアルタイムで:ストリーム、ページごと、または指定したアドレスへの配信。
GET /v2/eventsボットのグループで発生したイベントを、指定したイベント以降からページごとに取得します。
ボットのトークンのみ。チャンネルのイベントは、ボットがそのチャンネルを見られる場合のみ。
イベントは1日保存されます。nextは最後のイベントの番号で、次のページを取得するときにsinceとして使います。
パラメーター 名前 型 意味 sinceクエリ内 string任意 ボットがすでに受け取った最後のイベントの番号。省略すると、ストリームは今から、リストは最も古いものから始まります。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/events?since=0"レスポンス BotEvent の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "4711",
"type": "message.created",
"community": "c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60",
"channel": "0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a",
"createdAt": 1758634800000,
"data": {
"message": {
"id": "61a2b3c4-d5e6-4f70-8192-a3b4c5d6e7f8",
"text": "/dice 6",
"author": {
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"bot": false
},
"media": 0,
"replyTo": null,
"threadOf": null,
"createdAt": 1758634800000
}
}
}
],
"next": null
}返りうるステータス: 200401429
GET /v2/events/streamボットのグループで発生したイベントを、発生と同時に取得します(Server-Sent Events)。
接続は開いたままになり、10分後に閉じます。クライアントは再接続し、Last-Event-IDを送ります。
ボットのトークンのみ。チャンネルのイベントは、ボットがそのチャンネルを見られる場合のみ。
パラメーター 名前 型 意味 sinceクエリ内 string任意 ボットがすでに受け取った最後のイベントの番号。省略すると、ストリームは今から、リストは最も古いものから始まります。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/events/stream?since=0"レスポンス BotEvent を1件返します。
例 {
"id": "4711",
"type": "message.created",
"community": "c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60",
"channel": "0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a",
"createdAt": 1758634800000,
"data": {
"message": {
"id": "61a2b3c4-d5e6-4f70-8192-a3b4c5d6e7f8",
"text": "/dice 6",
"author": {
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"bot": false
},
"media": 0,
"replyTo": null,
"threadOf": null,
"createdAt": 1758634800000
}
}
}返りうるステータス: 200304401429
GET /v2/me/commandsボットのコマンド。
ボットのトークンのみ。チャンネルのイベントは、ボットがそのチャンネルを見られる場合のみ。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/me/commands"レスポンス BotCommand の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"name": "dice",
"description": "Rolls a die"
}
],
"next": null
}返りうるステータス: 200304401429
PUT /v2/me/commandsボットのコマンドをまとめて設定します。
すべてのコマンドを置き換えます。空のリストを送るとすべて削除されます。ボットが見られるチャットでは、入力欄で「/」のあとに候補として表示されます。
パラメーター 名前 型 意味 commands本文内 object[]必須 最大25個のコマンド。それぞれ{ name, description }。
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"commands":[{"name":"dice","description":"Rolls a die"}]}' \
"https://api.tellmelo.com/v2/me/commands"レスポンス BotCommand の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"name": "dice",
"description": "Rolls a die"
}
],
"next": null
}返りうるステータス: 200400401403429
POST /v2/interactions/{id}/replyコマンドやボタンに応答します。
commandまたはinteractionイベントから15分以内。privateを付けると、コマンドやボタンを使った人にだけ返答が表示されます。
パラメーター 名前 型 意味 idパス内 string必須 イベントのID(data.interaction)。 text本文内 string任意 投稿、返信、またはメッセージの本文。 private本文内 boolean任意 true:コマンドやボタンを使った本人だけが、1日間応答を見られます。card本文内 object任意 カード{ title, text, color, fields: [{ name, value }] }。フィールドは最大10個。 buttons本文内 object[]任意 最大5個のボタン。それぞれ{ id, label, style }で、styleはprimary、secondary、dangerのいずれか。押されるとinteractionイベントが届きます。 cards本文内 object[]任意 最大 10 枚のカード(2.26 以降)。それぞれ card と同じで、url、author、footer、image、thumbnail、timestamp、inline 付きフィールドを追加できます。 rows本文内 object[]任意 最大 5 行(2.26 以降)。各行は最大 5 個のボタンとリンク、またはメニュー 1 つのリストです。カード、ボタン、メニュー を参照。 update本文内 boolean任意 true:新しいメッセージを書く代わりに、ボタンやメニューが使われたメッセージを変更します(2.26 以降)。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"text":"You rolled a 4.","private":true}' \
"https://api.tellmelo.com/v2/interactions/9b8c7d6e-5f4a-4b3c-8d2e-1f0a9b8c7d6e/reply"レスポンス Made を1件返します。
例 {
"id": "0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a"
}返りうるステータス: 200400401403404429
POST /v2/channels/{id}/voice音楽や音声を流すために、ボイスチャンネルの席に入ります。
ボットのトークンのみ、チャンネルでのボットのロールが許す範囲で使えます。プログラムはLiveKit SDKで接続し、マイクとして音声を送ります。音量はほかの人がそれぞれ調整します。
パラメーター 名前 型 意味 idパス内 string必須 チャンネルのid。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/channels/0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a/voice"レスポンス VoiceSeat を1件返します。
例 {
"url": "wss://voice.example.org",
"token": "eyJhbGciOiJIUzI1NiJ9…",
"iceServers": [
{
"urls": [
"stun:turn.example.org:3478"
]
}
],
"speak": true,
"video": false
}返りうるステータス: 200400401403404429
見つける トレンド、検索、インスタンス独自の絵文字。
GET /v2/tagsいま話題のタグ。
スコア順で最大10件のトレンドタグ:1回の使用で1点、3日ごとに半減し、1アカウントにつき1日最大3点まで。postsは四捨五入したスコアです。limitはリストを短くするだけです。チームが注目に指定したタグは、上位に表示されることがあります。
パラメーター 名前 型 意味 limitクエリ内 integer任意 1ページあたりの件数:デフォルト20件、最大50件。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/tags?limit=10"レスポンス Tag の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"tag": "garden",
"posts": 58
}
],
"next": null
}返りうるステータス: 200304401429
GET /v2/search投稿、名前、ユーザー名、タグを横断して検索します。
公開コンテンツのみを検索します:グループ外の投稿、プロフィール、タグ。limitは種類ごとに適用されます。
レスポンスに含まれる投稿はすべて、アプリと同じように自分のアカウントのインプレッションとして数えられます。1件の投稿につき1日1回、自分の投稿は数えません。
パラメーター 名前 型 意味 qクエリ内 string必須 検索する語句。 typeクエリ内 string任意 結果の種類。省略するとすべての種類。allpostsprofilestags limitクエリ内 integer任意 1ページあたりの件数:デフォルト20件、最大50件。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/search?q=garden&type=posts"レスポンス SearchResult を1件返します。
例 {
"posts": [
{
"id": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"text": "The bees are back in the garden 🐝 #garden",
"kind": "poll",
"author": {
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"verified": true,
"accountKind": "person"
},
"community": {
"id": "c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60",
"name": "Urban Gardening"
},
"media": [
{
"url": "/api/media?id=b2d7e9f1-3c4a-4e8b-a1f0-6d5c4b3a2918",
"kind": "image",
"poster": null,
"ai": "without"
}
],
"poll": {
"options": [
{
"text": "Lavender",
"votes": 12
},
{
"text": "Sunflowers",
"votes": 7
},
{
"text": "Clover",
"votes": 3
}
],
"total": 22,
"multiple": false,
"endsAt": null,
"running": true,
"resultsVisible": true,
"myVotes": [
0
]
},
"quotes": null,
"continues": null,
"counts": {
"replies": 4,
"likes": 31,
"reposts": 2
},
"pinned": false,
"giftDrop": {
"item": "plan",
"quantity": 3,
"places": 10,
"left": 4,
"audience": "followers",
"newAccounts": false,
"status": "open",
"claimed": true
},
"createdAt": 1758624000000
}
],
"profiles": [
{
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"verified": true,
"accountKind": "person"
}
],
"tags": [
{
"tag": "garden",
"posts": 58
}
]
}返りうるステータス: 200304400401429
GET /v2/emojisインスタンス独自の絵文字と、その画像のアドレス。
テキスト内の絵文字は:name:と表記されます。このリストの画像に置き換えてください。不明な名前はテキストのままです。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/emojis"レスポンス Emoji の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"name": "tellmelo",
"url": "/api/media?id=e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b"
}
],
"next": null
}返りうるステータス: 200304401429
自分のアカウント 自分のプロフィール、フィード、独自の絵文字、Webhook。
GET /v2/me自分のプロフィール。ほかのパスで必要なidを含みます。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/me"レスポンス Profile を1件返します。
例 {
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"verified": true,
"accountKind": "person",
"about": "Beekeeper, allotment, too many seeds. :tellmelo:",
"website": "https://mara-imkerei.example/",
"websiteVerified": true,
"followers": 148,
"createdAt": 1750848000000
}返りうるステータス: 200304401429
GET /v2/feed自分のフィード。アプリでの表示と同じ構成です。
並び順が常に変わるため、ETagはありません。取得を始めたリストは、最後まで同じ内容です。
レスポンスに含まれる投稿はすべて、アプリと同じように自分のアカウントのインプレッションとして数えられます。1件の投稿につき1日1回、自分の投稿は数えません。
パラメーター 名前 型 意味 tabクエリ内 string任意 フィードの種類:for-you、following、latest、bookmarks。デフォルトはlatest。for-youfollowinglatestbookmarks tagクエリ内 string任意 このタグに関する投稿のみ:タグ付きで書かれたもの、またはサーバーが認識したもの。省略するとフィルターなし。 limitクエリ内 integer任意 1ページあたりの件数:デフォルト20件、最大50件。 cursorクエリ内 string任意 前回のレスポンスのnext。省略すると最初から。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/feed?tab=following&limit=20"レスポンス Post の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"text": "The bees are back in the garden 🐝 #garden",
"kind": "poll",
"author": {
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"verified": true,
"accountKind": "person"
},
"community": {
"id": "c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60",
"name": "Urban Gardening"
},
"media": [
{
"url": "/api/media?id=b2d7e9f1-3c4a-4e8b-a1f0-6d5c4b3a2918",
"kind": "image",
"poster": null,
"ai": "without"
}
],
"poll": {
"options": [
{
"text": "Lavender",
"votes": 12
},
{
"text": "Sunflowers",
"votes": 7
},
{
"text": "Clover",
"votes": 3
}
],
"total": 22,
"multiple": false,
"endsAt": null,
"running": true,
"resultsVisible": true,
"myVotes": [
0
]
},
"quotes": null,
"continues": null,
"counts": {
"replies": 4,
"likes": 31,
"reposts": 2
},
"pinned": false,
"giftDrop": {
"item": "plan",
"quantity": 3,
"places": 10,
"left": 4,
"audience": "followers",
"newAccounts": false,
"status": "open",
"claimed": true
},
"createdAt": 1758624000000
}
],
"next": "MTc1ODYyNDAwMDAwMDo1ZjBjMmE5ZS04ZDQx"
}返りうるステータス: 200400401429
POST /v2/me/pictures画像をバイト列としてアップロードします。idとurlが返されます。そのidをプロフィール画像、カバー画像、または投稿に使います。
PNG、JPEG、WebP、GIFに対応し、先頭のバイトで判別します。メタデータを除いて保存し直されます。どこにも使われていない画像はあとで削除されます。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/octet-stream" \
--data-binary @picture.png \
"https://api.tellmelo.com/v2/me/pictures"レスポンス Picture を1件返します。
例 {
"id": "8c7b6a59-4837-4261-9f5e-d4c3b2a1f0e9",
"url": "/api/media?id=8c7b6a59-4837-4261-9f5e-d4c3b2a1f0e9"
}返りうるステータス: 200401403429
PUT /v2/me/profileプロフィールを変更します:名前、自己紹介、プロフィール画像、カバー画像、プロフィールカラー。指定しなかった項目はそのままです。
profile権限が必要です。@ユーザー名は、パスワードを使ってPUT /me/usernameで変更します。
パラメーター 名前 型 意味 name本文内 string任意 表示名。最大60文字。 about本文内 string任意 自己紹介のテキスト。 avatar本文内 string任意 プロフィール画像にする、アップロード済み画像のid。空にすると削除されます。 banner本文内 string任意 カバー画像にする、アップロード済み画像のid。空にすると削除されます。 color本文内 string任意 プロフィールカラー(プランが必要)。nullで削除されます。indigovioletrosecoralamberlimegreentealskyslatesandnight
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"name":"Mara 🌻","about":"Gardening in the city.","avatar":"8c7b6a59-4837-4261-9f5e-d4c3b2a1f0e9"}' \
"https://api.tellmelo.com/v2/me/profile"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403429
GET /v2/me/emojis自分の独自絵文字。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/me/emojis"レスポンス OwnEmoji の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"name": "sunflower",
"url": "/api/media?id=8c7b6a59-4837-4261-9f5e-d4c3b2a1f0e9",
"animated": false,
"resting": false
}
],
"next": null
}返りうるステータス: 200304401429
POST /v2/me/emojis/pictures独自絵文字の画像を、バイト列としてアップロードします。
動く絵文字にはプランが必要です。変換後に大きすぎる画像は受け付けられません。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/octet-stream" \
--data-binary @picture.png \
"https://api.tellmelo.com/v2/me/emojis/pictures"レスポンス EmojiPicture を1件返します。
例 {
"id": "8c7b6a59-4837-4261-9f5e-d4c3b2a1f0e9",
"url": "/api/media?id=8c7b6a59-4837-4261-9f5e-d4c3b2a1f0e9",
"animated": false
}返りうるステータス: 200401403429
POST /v2/me/emojis独自絵文字を作成します。自分の絵文字がすべて返されます。
作成できる絵文字の数は、プランによって異なります。
パラメーター 名前 型 意味 name本文内 string必須 絵文字を:name:として書くときの名前。 picture本文内 string必須 POST /me/emojis/picturesで返されたid。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"name":"sunflower","picture":"8c7b6a59-4837-4261-9f5e-d4c3b2a1f0e9"}' \
"https://api.tellmelo.com/v2/me/emojis"レスポンス OwnEmoji の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"name": "sunflower",
"url": "/api/media?id=8c7b6a59-4837-4261-9f5e-d4c3b2a1f0e9",
"animated": false,
"resting": false
}
],
"next": null
}返りうるステータス: 200400401403429
DELETE /v2/me/emojis/{name}独自絵文字を削除します。残りの絵文字が返されます。
パラメーター 名前 型 意味 nameパス内 string必須 絵文字の名前。コロンなし。
curl -X DELETE \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/me/emojis/sunflower"レスポンス OwnEmoji の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"name": "sunflower",
"url": "/api/media?id=8c7b6a59-4837-4261-9f5e-d4c3b2a1f0e9",
"animated": false,
"resting": false
}
],
"next": null
}返りうるステータス: 200400401403404429
PUT /v2/me/emojis/sharingフォロワーが自分の絵文字を自身のテキストで使えるかを設定します。
パラメーター 名前 型 意味 shared本文内 boolean必須 trueで絵文字をフォロワーと共有し、falseで共有しません。
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"shared":true}' \
"https://api.tellmelo.com/v2/me/emojis/sharing"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403429
GET /v2/me/webhooks自分のWebhookとその状態。
webhooks権限が必要です。Webhookは団体向けプランか、パートナーとして利用できます。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/me/webhooks"レスポンス Webhook の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "1f2e3d4c-5b6a-4798-8a7b-6c5d4e3f2a1b",
"url": "https://example.org/tellmelo-hook",
"kinds": [
"reply",
"mention"
],
"active": true,
"lastStatus": 200,
"lastAt": 1758624000000,
"failures": 0
}
],
"next": null
}返りうるステータス: 200304401403429
POST /v2/me/webhooksWebhookを作成します。idと署名用のシークレットが返されます(この一度だけ)。
配信はすべてシークレットで署名されます(X-Tellmelo-Signature)。シークレットは再表示されないので、保管しておいてください。
パラメーター 名前 型 意味 url本文内 string必須 ローカルネットワーク外のHTTPSアドレス。認証情報は含めないでください。 kinds本文内 string[]必須 Webhookに通知する内容。利用できる種類はプランとパートナー契約によって異なります。replymentiongroup_mentionfollowlikerepostmessagequota_changedquota_giftdrop_claimeddrop_empty
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.org/tellmelo-hook","kinds":["reply","mention"]}' \
"https://api.tellmelo.com/v2/me/webhooks"レスポンス WebhookCreated を1件返します。
例 {
"id": "1f2e3d4c-5b6a-4798-8a7b-6c5d4e3f2a1b",
"secret": "whsec_3f9a…"
}返りうるステータス: 200400401403429
DELETE /v2/me/webhooks/{id}Webhookを削除します。
パラメーター 名前 型 意味 idパス内 string必須 Webhookのid。
curl -X DELETE \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/me/webhooks/1f2e3d4c-5b6a-4798-8a7b-6c5d4e3f2a1b"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
POST /v2/me/webhooks/{id}/testWebhookにテストを送信します。
パラメーター 名前 型 意味 idパス内 string必須 Webhookのid。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/me/webhooks/1f2e3d4c-5b6a-4798-8a7b-6c5d4e3f2a1b/test"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
PUT /v2/me/username@名前を変更します。パスワードが必要です。変更の間隔の制限はアプリと同じです。
特に重要な操作 には、passwordにアカウントのパスワードが必要です。2段階認証がオンの場合、キーでは2つ目の要素を渡せないため、これらの操作はアプリでのみ可能です(second_factor_on)。間違ったパスワードは、ほかと同じ回数制限に数えられます。
パラメーター 名前 型 意味 username本文内 string必須 新しい@名前:英字、数字、アンダースコア。最大25文字。 password本文内 string必須 特に重要な操作に必要な、アカウントのパスワード。2段階認証がオンの場合、これらの操作はアプリ内でのみ行えます。
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"username":"mara_gardens","password":"the account’s password"}' \
"https://api.tellmelo.com/v2/me/username"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403429
GET /v2/me/settings自分の設定。それぞれの値と、未設定の場合はデフォルト値。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/me/settings"レスポンス Settings を1件返します。
例 {
"settings": {
"chatCompact": true
}
}返りうるステータス: 200304401429
PUT /v2/me/settings設定を変更します。指定しなかった項目はそのままです。変更した設定が返されます。
ログイン方法(phoneApproval、nearbySignIn)の変更には、passwordにパスワードが必要です。
パラメーター 名前 型 意味 settings本文内 object必須 変更する設定。名前はGET /me/settingsと同じです。 password本文内 string任意 特に重要な操作に必要な、アカウントのパスワード。2段階認証がオンの場合、これらの操作はアプリ内でのみ行えます。
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"settings":{"chatCompact":true},"password":"the account’s password"}' \
"https://api.tellmelo.com/v2/me/settings"レスポンス Settings を1件返します。
例 {
"settings": {
"chatCompact": true
}
}返りうるステータス: 200400401403429
通知 自分のアカウントに関する出来事。ページごと。
GET /v2/notifications自分の通知。新しい順。
権限 read ページ送りあり ETagあり v2.0以降 読み取っても既読にはなりません。既読にするにはPOST /notifications/readを使います。同じ投稿への同じ種類のイベントは1行にまとめられ、moreにその件数が示されます。
パラメーター 名前 型 意味 limitクエリ内 integer任意 1ページあたりの件数:デフォルト20件、最大50件。 cursorクエリ内 string任意 前回のレスポンスのnext。省略すると最初から。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/notifications?limit=20"レスポンス Notification の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "3f2e1d0c-9b8a-4765-8432-10fedcba9876",
"kind": "like",
"text": null,
"actor": {
"handle": "jon",
"name": "Jon"
},
"postId": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"read": false,
"more": 2,
"createdAt": 1758624300000,
"updatedAt": 1758624900000
}
],
"next": "MTc1ODYyNDAwMDAwMDo1ZjBjMmE5ZS04ZDQx"
}返りうるステータス: 200304401429
POST /v2/notifications/read通知を既読にします。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/notifications/read"レスポンス Ok を1件返します。
例 返りうるステータス: 200401403429
メッセージ 受信箱とトーク。トークは相手アカウントの名前で呼ばれます。
GET /v2/conversations受信箱:トークごとに1行。最新のものが先頭。
権限 read ページ送りあり ETagあり v2.0以降 パラメーター 名前 型 意味 limitクエリ内 integer任意 1ページあたりの件数:デフォルト20件、最大50件。 cursorクエリ内 string任意 前回のレスポンスのnext。省略すると最初から。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/conversations?limit=20"レスポンス Conversation の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"with": "d4c3b2a1-6e5f-4a7b-9c8d-1e2f3a4b5c6d",
"handle": "jon",
"name": "Jon",
"excerpt": "See you on Saturday at the market!",
"truncated": false,
"fromMe": true,
"lastMessageId": "7c6b5a49-3827-4165-9f0e-d1c2b3a49586",
"unread": 0,
"updatedAt": 1758624060000
}
],
"next": "MTc1ODYyNDAwMDAwMDo1ZjBjMmE5ZS04ZDQx"
}返りうるステータス: 200304401429
GET /v2/conversations/{with}/messages1つのトークのメッセージ。新しい順。
権限 read ページ送りあり ETagあり v2.0以降 読み取っても既読にはなりません。既読にするにはPOST /conversations/{with}/readを使います。
パラメーター 名前 型 意味 withパス内 string必須 相手アカウントのid。トーク自体にはidはありません。 limitクエリ内 integer任意 1ページあたりの件数:デフォルト20件、最大50件。 cursorクエリ内 string任意 前回のレスポンスのnext。省略すると最初から。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/conversations/a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05/messages?limit=20"レスポンス Message の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "7c6b5a49-3827-4165-9f0e-d1c2b3a49586",
"text": "See you on Saturday at the market!",
"from": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"to": "d4c3b2a1-6e5f-4a7b-9c8d-1e2f3a4b5c6d",
"read": true,
"media": [],
"replyTo": null,
"reactions": [],
"createdAt": 1758624060000
}
],
"next": "MTc1ODYyNDAwMDAwMDo1ZjBjMmE5ZS04ZDQx"
}返りうるステータス: 200304400401404429
POST /v2/conversations/{with}/messagesトークでメッセージを送信します。
アプリと同じルールが適用されます:自分をブロックした人には送れず、相手の設定も反映されます。
APIではメッセージに画像・GIF・動画を添付できません。アプリでのみ可能です。
パラメーター 名前 型 意味 withパス内 string必須 相手アカウントのid。トーク自体にはidはありません。 text本文内 string必須 投稿、返信、またはメッセージの本文。 replyTo本文内 string任意 このトークで、このメッセージが返信する以前のメッセージのid。2.2以降。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"text":"See you on Saturday at the market!"}' \
"https://api.tellmelo.com/v2/conversations/a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05/messages"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
POST /v2/conversations/{with}/readトークのすべてのメッセージを既読にします。
パラメーター 名前 型 意味 withパス内 string必須 相手アカウントのid。トーク自体にはidはありません。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/conversations/a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05/read"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
DELETE /v2/conversations/{with}/messages/{id}自分のメッセージを削除します。
自分のメッセージのみ、送信後24時間以内に限ります。
パラメーター 名前 型 意味 withパス内 string必須 相手アカウントのid。トーク自体にはidはありません。 idパス内 string必須 メッセージのID。
curl -X DELETE \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/conversations/a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05/messages/7c6b5a49-3827-4165-9f0e-d1c2b3a49586"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
PUT /v2/conversations/{with}/messages/{id}/reactions/{emoji}ダイレクトメッセージに絵文字でリアクションします。
各絵文字は1アカウントにつき1回、1つのメッセージに最大20種類まで。カスタム絵文字は、そのアカウントが書き込める場合のみ使えます。グループではreact権限が必要で、封印メッセージにはリアクションできません。レスポンスにはメッセージのすべてのリアクションが含まれます。
パラメーター 名前 型 意味 withパス内 string必須 相手アカウントのid。トーク自体にはidはありません。 idパス内 string必須 メッセージのID。 emojiパス内 string必須 パス内でエンコードした絵文字:標準の絵文字(🌻なら%F0%9F%8C%BB)または:name:形式の独自絵文字。
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/conversations/a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05/messages/7c6b5a49-3827-4165-9f0e-d1c2b3a49586/reactions/🌻"レスポンス Reaction の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"emoji": "🌻",
"count": 3,
"mine": true
}
],
"next": null
}返りうるステータス: 200400401403404429
DELETE /v2/conversations/{with}/messages/{id}/reactions/{emoji}ダイレクトメッセージへの自分のリアクションを取り消します。
各絵文字は1アカウントにつき1回、1つのメッセージに最大20種類まで。カスタム絵文字は、そのアカウントが書き込める場合のみ使えます。グループではreact権限が必要で、封印メッセージにはリアクションできません。レスポンスにはメッセージのすべてのリアクションが含まれます。
パラメーター 名前 型 意味 withパス内 string必須 相手アカウントのid。トーク自体にはidはありません。 idパス内 string必須 メッセージのID。 emojiパス内 string必須 パス内でエンコードした絵文字:標準の絵文字(🌻なら%F0%9F%8C%BB)または:name:形式の独自絵文字。
curl -X DELETE \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/conversations/a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05/messages/7c6b5a49-3827-4165-9f0e-d1c2b3a49586/reactions/🌻"レスポンス Reaction の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"emoji": "🌻",
"count": 3,
"mine": true
}
],
"next": null
}返りうるステータス: 200400401403404429
POST /v2/conversations/{with}/plannedメッセージを予約します。予約したメッセージのidが返されます。
予約メッセージを含むプランが必要です。ない場合は403が返ります。双方がエンドツーエンド暗号化を使っている場合は、アプリでのみ可能です。
パラメーター 名前 型 意味 withパス内 string必須 相手アカウントのid。トーク自体にはidはありません。 text本文内 string必須 投稿、返信、またはメッセージの本文。 sendAt本文内 integer必須 メッセージを送信する日時。1970年からのミリ秒。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"text":"Happy birthday! 🎂","sendAt":1758700000000}' \
"https://api.tellmelo.com/v2/conversations/a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05/planned"レスポンス Made を1件返します。
例 {
"id": "0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a"
}返りうるステータス: 200400401403404429
GET /v2/me/planned-messagesこれから送信される自分のメッセージ。時刻順。
パラメーター 名前 型 意味 withクエリ内 string任意 このアカウント宛てのメッセージのみ(アカウントのid)。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/me/planned-messages"レスポンス PlannedMessage の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "3b2a1c0d-9e8f-4a7b-b6c5-d4e3f2a1b0c9",
"to": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"text": "Happy birthday! 🎂",
"sendAt": 1758710400000,
"state": "waiting"
}
],
"next": null
}返りうるステータス: 200304401429
POST /v2/me/planned-messages/{id}/send保留中または失敗した予約メッセージを今すぐ送信します。
パラメーター 名前 型 意味 idパス内 string必須 予約したメッセージのid。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/me/planned-messages/3b2a1c0d-9e8f-4a7b-b6c5-d4e3f2a1b0c9/send"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
DELETE /v2/me/planned-messages/{id}送信前の予約メッセージを削除します。
パラメーター 名前 型 意味 idパス内 string必須 予約したメッセージのid。
curl -X DELETE \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/me/planned-messages/3b2a1c0d-9e8f-4a7b-b6c5-d4e3f2a1b0c9"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
関係 いいね、保存、リポスト、フォロー、参加、ブロック:1つのパスで、activeにより設定と取り消しを行います。2.19からは一覧も取得できます:フォロワー、フォロー中、自分のブロックとミュート。
POST /v2/relationskindに応じて、いいね、保存、リポスト、フォロー、参加、ブロック、ミュートを行います。
targetは、like、save、repostでは投稿、joinではグループ、follow、block、muteではアカウントです。active: falseで関係を取り消します。
パラメーター 名前 型 意味 kind本文内 string必須 関係の種類:like、save、repost、follow、join、block、mute(2.2以降)。likesaverepostfollowjoinblockmute target本文内 string必須 kindに応じて、投稿、プロフィール、またはグループのid。active本文内 boolean任意 trueで関係を設定し、falseで取り消します。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"kind":"like","target":"5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1","active":true}' \
"https://api.tellmelo.com/v2/relations"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403429
GET /v2/profiles/{handle}/followersプロフィールをフォローしている人。新しい順。
権限 read ページ送りあり ETagあり v2.19以降 パラメーター 名前 型 意味 handleパス内 string必須 プロフィールのユーザー名。大文字・小文字は区別しません。 limitクエリ内 integer任意 1ページあたりの件数:デフォルト20件、最大50件。 cursorクエリ内 string任意 前回のレスポンスのnext。省略すると最初から。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/profiles/mara/followers?limit=20"レスポンス ProfileBrief の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"verified": true,
"accountKind": "person"
}
],
"next": "MTc1ODYyNDAwMDAwMDo1ZjBjMmE5ZS04ZDQx"
}返りうるステータス: 200304400401404429
GET /v2/profiles/{handle}/followingプロフィールがフォローしている人。新しい順。
権限 read ページ送りあり ETagあり v2.19以降 パラメーター 名前 型 意味 handleパス内 string必須 プロフィールのユーザー名。大文字・小文字は区別しません。 limitクエリ内 integer任意 1ページあたりの件数:デフォルト20件、最大50件。 cursorクエリ内 string任意 前回のレスポンスのnext。省略すると最初から。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/profiles/mara/following?limit=20"レスポンス ProfileBrief の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"verified": true,
"accountKind": "person"
}
],
"next": "MTc1ODYyNDAwMDAwMDo1ZjBjMmE5ZS04ZDQx"
}返りうるステータス: 200304400401404429
GET /v2/me/relationsブロック、ミュート、またはメッセージのみブロックした相手。新しい順。
権限 read ページ送りあり ETagあり v2.19以降 自分のリストのみ。設定と取り消しはPOST /relationsで行います。
パラメーター 名前 型 意味 kindクエリ内 string必須 blockはブロック、muteはミュート、dm_blockはメッセージのみブロック。blockmutedm_blocklimitクエリ内 integer任意 1ページあたりの件数:デフォルト20件、最大50件。 cursorクエリ内 string任意 前回のレスポンスのnext。省略すると最初から。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/me/relations?kind=mute&limit=20"レスポンス ProfileBrief の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"verified": true,
"accountKind": "person"
}
],
"next": "MTc1ODYyNDAwMDAwMDo1ZjBjMmE5ZS04ZDQx"
}返りうるステータス: 200304400401429
コレクション 保存した投稿を自分のコレクションに整理します。1つの投稿を複数のコレクションに入れられます。コレクションから外しても保存は残ります。
GET /v2/me/collections自分のコレクションと、それぞれの投稿数。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/me/collections"レスポンス Collection の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "6d5c4b3a-2918-4e7f-a1b2-c3d4e5f60718",
"name": "Recipes",
"count": 12
}
],
"next": null
}返りうるステータス: 200304401429
POST /v2/me/collectionsコレクションを作成します。idが返されます。
作成できるコレクションの数はプランによって異なります。
パラメーター 名前 型 意味 name本文内 string必須 名前。最大40文字。アカウント内で重複不可(大文字・小文字は区別しません)。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"name":"Recipes"}' \
"https://api.tellmelo.com/v2/me/collections"レスポンス Made を1件返します。
例 {
"id": "0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a"
}返りうるステータス: 200400401403429
PUT /v2/me/collections/{id}コレクションの名前を変更します。
パラメーター 名前 型 意味 idパス内 string必須 コレクションのid。 name本文内 string必須 名前。最大40文字。アカウント内で重複不可(大文字・小文字は区別しません)。
curl -X PUT \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"name":"Baking"}' \
"https://api.tellmelo.com/v2/me/collections/6d5c4b3a-2918-4e7f-a1b2-c3d4e5f60718"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
DELETE /v2/me/collections/{id}コレクションを削除します。
中の投稿は保存されたまま残ります。
パラメーター 名前 型 意味 idパス内 string必須 コレクションのid。
curl -X DELETE \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/me/collections/6d5c4b3a-2918-4e7f-a1b2-c3d4e5f60718"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
GET /v2/me/collections/{id}/postsコレクションの投稿。「保存済み」タブと同じ表示です。
レスポンスに含まれる投稿はすべて、アプリと同じように自分のアカウントのインプレッションとして数えられます。1件の投稿につき1日1回、自分の投稿は数えません。
パラメーター 名前 型 意味 idパス内 string必須 コレクションのid。 limitクエリ内 integer任意 1ページあたりの件数:デフォルト20件、最大50件。 cursorクエリ内 string任意 前回のレスポンスのnext。省略すると最初から。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/me/collections/6d5c4b3a-2918-4e7f-a1b2-c3d4e5f60718/posts?limit=20"レスポンス Post の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"id": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"text": "The bees are back in the garden 🐝 #garden",
"kind": "poll",
"author": {
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"verified": true,
"accountKind": "person"
},
"community": {
"id": "c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60",
"name": "Urban Gardening"
},
"media": [
{
"url": "/api/media?id=b2d7e9f1-3c4a-4e8b-a1f0-6d5c4b3a2918",
"kind": "image",
"poster": null,
"ai": "without"
}
],
"poll": {
"options": [
{
"text": "Lavender",
"votes": 12
},
{
"text": "Sunflowers",
"votes": 7
},
{
"text": "Clover",
"votes": 3
}
],
"total": 22,
"multiple": false,
"endsAt": null,
"running": true,
"resultsVisible": true,
"myVotes": [
0
]
},
"quotes": null,
"continues": null,
"counts": {
"replies": 4,
"likes": 31,
"reposts": 2
},
"pinned": false,
"giftDrop": {
"item": "plan",
"quantity": 3,
"places": 10,
"left": 4,
"audience": "followers",
"newAccounts": false,
"status": "open",
"claimed": true
},
"createdAt": 1758624000000
}
],
"next": "MTc1ODYyNDAwMDAwMDo1ZjBjMmE5ZS04ZDQx"
}返りうるステータス: 200400401404429
POST /v2/me/collections/{id}/posts投稿をコレクションに入れる、または外します。
追加すると投稿も保存されます。表示中の投稿のみ。
パラメーター 名前 型 意味 idパス内 string必須 コレクションのid。 post本文内 string必須 投稿のid。 inside本文内 boolean任意 trueで投稿を入れ(デフォルト)、falseで外します。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"post":"5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1","inside":true}' \
"https://api.tellmelo.com/v2/me/collections/6d5c4b3a-2918-4e7f-a1b2-c3d4e5f60718/posts"レスポンス Ok を1件返します。
例 返りうるステータス: 200400401403404429
プレゼント パートナーの枠を確認してそこからプレゼントしたり、投稿にプレゼントを付けて管理したりできます。受け取りはアプリ内で人だけが行えます。
GET /v2/partner/quotaプレゼント用の枠の残り。
枠を持つパートナーのみ。それ以外は403が返ります。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/partner/quota"レスポンス Quota を1件返します。
例 {
"months": 120,
"sparks": 500,
"looks": [
{
"id": "frame-gold",
"name": "Goldring",
"kind": "frame",
"quantity": 25
}
]
}返りうるステータス: 200304401429
GET /v2/partner/gifts枠から誰にいつ何をプレゼントしたか。新しい順。
権限 read ページ送りあり ETagあり v2.12以降 枠を持つパートナーのみ。それ以外は403が返ります。
パラメーター 名前 型 意味 limitクエリ内 integer任意 1ページあたりの件数:デフォルト20件、最大50件。 cursorクエリ内 string任意 前回のレスポンスのnext。省略すると最初から。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/partner/gifts?limit=20"レスポンス QuotaGift の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"item": "plan",
"quantity": 3,
"itemId": null,
"recipient": {
"handle": "jon",
"name": "Jon"
},
"createdAt": 1758627600000
}
],
"next": "MTc1ODYyNDAwMDAwMDo1ZjBjMmE5ZS04ZDQx"
}返りうるステータス: 200304401429
POST /v2/partner/gifts枠からプランの月数やスパークをメンバーにプレゼントします。
枠を持つパートナーのみ。それ以外は403が返ります。
アプリと同じく、メンバーには誰からのギフトかが表示されます。1時間に60件まで。
パラメーター 名前 型 意味 handle本文内 string必須 プレゼントを贈るメンバーの@名前。@はあってもなくても構いません。 item本文内 string必須 planはプランの月数、sparksはスパーク、shopは在庫のルック(2.13以降)。plansparksshopquantity本文内 integer任意 数量:プレゼント1回につき最大12か月または35スパーク。 itemId本文内 string任意 shopの場合:枠のlooksに記載されたルックのID。プレゼント1回につき1個で、quantityは適用されません。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"handle":"jon","item":"plan","quantity":3,"itemId":"frame-gold"}' \
"https://api.tellmelo.com/v2/partner/gifts"レスポンス Quota を1件返します。
例 {
"months": 120,
"sparks": 500,
"looks": [
{
"id": "frame-gold",
"name": "Goldring",
"kind": "frame",
"quantity": 25
}
]
}返りうるステータス: 200400401403429
GET /v2/gift-drops投稿に付けたプレゼント:残りの枠数と支払い方法。
権限 read ページ送りあり ETagあり v2.12以降 パラメーター 名前 型 意味 limitクエリ内 integer任意 1ページあたりの件数:デフォルト20件、最大50件。 cursorクエリ内 string任意 前回のレスポンスのnext。省略すると最初から。
curl \
-H "Authorization: Bearer tm_key_…" \
"https://api.tellmelo.com/v2/gift-drops?limit=20"レスポンス OwnGiftDrop の1ページを、`items`と`next`として返します。
例 {
"items": [
{
"item": "plan",
"quantity": 3,
"places": 10,
"left": 4,
"audience": "followers",
"newAccounts": false,
"status": "open",
"claimed": false,
"postId": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"funding": "quota",
"createdAt": 1758624000000
}
],
"next": "MTc1ODYyNDAwMDAwMDo1ZjBjMmE5ZS04ZDQx"
}返りうるステータス: 200304401429
POST /v2/gift-drops受け取れるプレゼント付きの投稿を公開します。
オーナーと、その権限を持つチームメンバーは無料で、それ以外は自分の枠から使われます。支払いが必要なものはAPIが422で拒否します。支払いはアプリでのみ可能です。
プログラムが全枠を取ってしまわないよう、受け取りはアプリでのみ可能です。残りの枠数は投稿のgiftDropに入っています。
パラメーター 名前 型 意味 text本文内 string任意 投稿、返信、またはメッセージの本文。 community本文内 string任意 投稿先となるフィードチャンネルのグループのid。フィードチャンネルがオンで、投稿する権限が必要です。省略すると、どのグループにも属さない投稿になります。 item本文内 string必須 planはプランの月数、sparksはスパーク。plansparksquantity本文内 integer必須 1枠あたりの内容:最大12か月または35スパーク。 places本文内 integer必須 対象人数。最大10,000人。 audience本文内 string任意 受け取れる人:allは全員、followersはフォロワーのみ、groupはグループのメンバーのみ(communityと併用する場合のみ)。allfollowersgroup newAccounts本文内 boolean任意 trueで、作成から7日未満のアカウントも受け取れます。省略すると対象外です。
curl -X POST \
-H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"text":"Ten times three months of Supporter – first come, first served! 🎁","item":"plan","quantity":3,"places":10,"audience":"all","newAccounts":false}' \
"https://api.tellmelo.com/v2/gift-drops"レスポンス DropCreated を1件返します。
例 {
"id": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"funding": "quota"
}返りうるステータス: 200400401403429
オブジェクト すべてのオブジェクトをフィールドごとに説明します。[]はリストを表します。
Serviceルートのレスポンス:応答しているサービスと、このキーでできること。
フィールド 型 意味 namestring常にtellmelo。 versionstringAPIのバージョン。例:2.1。 scopestringこのキーでできること:readまたはread write。 rateLimitRateLimitこのキーのリクエスト枠。 docsstringこのドキュメントの場所。このインスタンス上のパス。 specstring機械可読な仕様の場所。
例 {
"name": "tellmelo",
"version": "2.28",
"scope": "read write",
"rateLimit": {
"limit": 120,
"remaining": 117
},
"docs": "/developers/docs",
"spec": "/api/v2/openapi.json"
}RateLimit現在の1分間における、このキーのリクエスト枠。
フィールド 型 意味 limitinteger1分あたりのリクエスト数。 remainingintegerこの1分間の残り数。
例 {
"limit": 120,
"remaining": 117
}Post投稿。どこでも同じ形式です。
フィールド 型 意味 idstring投稿のID。 textstringまたはnull 書かれたとおりのテキスト(アンケートのみ、または画像のみの投稿ではnull)。 kindstring投稿の種類。post — テキスト、画像、または引用を含む投稿。poll — アンケート付きの投稿。 authorProfileBrief投稿者。 communityCommunityBriefまたはnull 投稿が書かれたグループ(グループ外の場合はnull)。 mediaMedia[]投稿の画像。順番どおり。ない場合は空。 pollPollまたはnull アンケート(ない場合はnull)。 quotesstringまたはnull この投稿が引用する投稿のID。 continuesstringまたはnull この投稿が追記として続けている投稿のID。 countsCounts返信、いいね、リポスト。 pinnedboolean投稿者のプロフィールの一番上に固定されているかどうか。 giftDropGiftDropまたはnull 投稿の下で受け取れるプレゼント(ない場合はnull)。 createdAtinteger投稿された日時。
例 {
"id": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"text": "The bees are back in the garden 🐝 #garden",
"kind": "poll",
"author": {
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"verified": true,
"accountKind": "person"
},
"community": {
"id": "c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60",
"name": "Urban Gardening"
},
"media": [
{
"url": "/api/media?id=b2d7e9f1-3c4a-4e8b-a1f0-6d5c4b3a2918",
"kind": "image",
"poster": null,
"ai": "without"
}
],
"poll": {
"options": [
{
"text": "Lavender",
"votes": 12
},
{
"text": "Sunflowers",
"votes": 7
},
{
"text": "Clover",
"votes": 3
}
],
"total": 22,
"multiple": false,
"endsAt": null,
"running": true,
"resultsVisible": true,
"myVotes": [
0
]
},
"quotes": null,
"continues": null,
"counts": {
"replies": 4,
"likes": 31,
"reposts": 2
},
"pinned": false,
"giftDrop": {
"item": "plan",
"quantity": 3,
"places": 10,
"left": 4,
"audience": "followers",
"newAccounts": false,
"status": "open",
"claimed": true
},
"createdAt": 1758624000000
}Reply投稿への返信:フィールドが2つ多い投稿です。
Post のすべてのフィールドに加えて:
フィールド 型 意味 postIdstring会話全体の起点となる投稿。 parentIdstringまたはnull この返信が返信する先の返信(投稿に直接返信している場合はnull)。
例 {
"id": "9e4b1c7d-2a3f-4d5e-8b6c-0f1e2d3c4b5a",
"text": "Same here, the lavender is full of them.",
"kind": "post",
"author": {
"id": "d4c3b2a1-6e5f-4a7b-9c8d-1e2f3a4b5c6d",
"handle": "jon",
"name": "Jon",
"verified": false,
"accountKind": "person"
},
"community": null,
"media": [],
"poll": null,
"quotes": null,
"continues": null,
"counts": {
"replies": 0,
"likes": 3,
"reposts": 0
},
"pinned": false,
"giftDrop": null,
"createdAt": 1758624600000,
"postId": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"parentId": null
}ReplyVote返信への自分の投票と、そのスコア。
フィールド 型 意味 votestring自分の投票。up — アップ投票。down — ダウン投票。none — 投票なし。 scoreintegerアップ投票からダウン投票を引いた数。マイナスにもなります。
例 {
"vote": "up",
"score": 12
}PlannedReplyあとで送るよう予約した自分の返信。
フィールド 型 意味 idstring予約した返信のid。 parentIdstringまたはnull 返信先の返信(投稿に直接返信する場合はnull)。 textstringテキスト。 publishAtinteger公開される日時。 statestring状態。waiting — 予定の日時を待っています。failed — 送信できませんでした(投稿が削除された場合など)。
例 {
"id": "3b2a1c0d-9e8f-4a7b-b6c5-d4e3f2a1b0c9",
"parentId": null,
"text": "Count me in for Saturday!",
"publishAt": 1758710400000,
"state": "waiting"
}ReplySettings自分の投稿の返信設定。
フィールド 型 意味 audiencestring返信できる人。all — 全員。following — 自分がフォローしているアカウント。mentioned — 投稿でメンションされた人。nobody — 自分以外は誰も返信できません。 approvalboolean返信が自分の承認を待つかどうか。 slowstringスローモード。auto — 返信が多いと自動でオンになります。on — 常にオン。off — オフ。
例 {
"audience": "following",
"approval": false,
"slow": "auto"
}Counts投稿の返信数、いいね数、リポスト数。
フィールド 型 意味 repliesinteger返信。すべての階層の合計。 likesintegerいいね。 repostsintegerリポスト。
例 {
"replies": 4,
"likes": 31,
"reposts": 2
}Poll投稿のアンケート。
フィールド 型 意味 optionsPollOption[]選択肢。順番どおり。投票時のoptionは0から数えます。 totalinteger総投票数。常にあります。 multipleboolean複数の選択肢を選べるかどうか。 endsAtintegerまたはnull アンケートの終了日時(期限なしの場合はnull)。 runningbooleanまだ投票できるかどうか。 resultsVisibleboolean選択肢ごとの票数が表示されるかどうか(votesを参照)。 myVotesinteger[]自分が選んだ選択肢。0から数えます。
例 {
"options": [
{
"text": "Lavender",
"votes": 12
},
{
"text": "Sunflowers",
"votes": 7
},
{
"text": "Clover",
"votes": 3
}
],
"total": 22,
"multiple": false,
"endsAt": null,
"running": true,
"resultsVisible": true,
"myVotes": [
0
]
}PollOptionアンケートの選択肢1つ。
フィールド 型 意味 textstring選択肢。 votesintegerまたはnull 票数(結果が非公開の間はnull)。
例 {
"text": "Lavender",
"votes": 12
}ProfileBriefほかのオブジェクト内に表示されるプロフィール:投稿者として、検索結果として。
フィールド 型 意味 idstringアカウントのID:/relationsと/conversations/{with}で必要になるもの。 handlestringユーザー名。@なしで、メンバーが選んだとおりの表記です。 namestring表示名。:name:を含め、絵文字が入ることがあります。 verifiedbooleanアカウントが認証済みかどうか。 accountKindstringアカウントの種類。person — 個人。business — 企業。association — 団体。automated — ボットなどの自動化アカウント。bot — グループのボット。独自のキーを持つプログラムで動作します(2.18以降)。
例 {
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"verified": true,
"accountKind": "person"
}Profile単体のプロフィール。自己紹介とフォロワーを含みます。
ProfileBrief のすべてのフィールドに加えて:
フィールド 型 意味 aboutstringまたはnull 自己紹介(ない場合はnull)。 websitestringまたはnull プロフィールのウェブサイト(ない場合はnull)。2.3から。 websiteVerifiedbooleanウェブサイトがrel=meでこのプロフィールにリンクしているかどうか。毎週確認されます。2.3から。 followersintegerフォローしているアカウントの数。 createdAtintegerまたはnull アカウントの作成日時(メンバーが登録日を非表示にしている間はnull。2.9以降)。
例 {
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"verified": true,
"accountKind": "person",
"about": "Beekeeper, allotment, too many seeds. :tellmelo:",
"website": "https://mara-imkerei.example/",
"websiteVerified": true,
"followers": 148,
"createdAt": 1750848000000
}Membershipグループ内での自分のアカウントの立場とできること。
フィールド 型 意味 leaderstringまたはnull 自分がグループを作成したか、共同で管理しているか。それ以外はnull。founder — 作成者。manager — 共同管理者。 rolesstring[]自分のロールのid。最上位が先頭。 permissionsstring[]グループで自分ができること。 mutedUntilintegerまたはnull タイムアウトでここでミュートされる期限。ない場合はnull。
例 {
"leader": null,
"roles": [
"4e5f6a7b-8c9d-4e0f-a1b2-c3d4e5f6a7b8"
],
"permissions": [
"attach",
"invite",
"send",
"view"
],
"mutedUntil": null
}Personメンバーの簡易情報。
フィールド 型 意味 idstringアカウントのid。 handlestringユーザー名(@なし)。 namestring表示名。 botbooleanアカウントがボットかどうか(2.18以降)。
例 {
"id": "d4c3b2a1-6e5f-4a7b-9c8d-1e2f3a4b5c6d",
"handle": "jon",
"name": "Jon",
"bot": false
}Channelグループのチャンネル。
フィールド 型 意味 idstringid。kindstringチャンネルの種類。feed — フィードチャンネル。投稿は公開フィードにも表示されます。chat — チャット。voice — ボイスチャンネル。会話はアプリ内でのみできます。hub — グループのハブ:グループの紹介ページ。常にあり、メッセージはありません。 namestringまたはnull #なしの名前。アプリが各言語で付ける名前の場合はnull。topicstringトピック。ない場合は空。 categoryChannelCategoryまたはnull カテゴリー。ない場合はnull。 unreadintegerほかの人のメッセージのうち未読の数(最大100)。 permissionsstring[]このチャンネルで自分ができること。 symbolChannelSymbolチャンネルのアイコン。グループが形を指定している場合は、その形になっています。
例 {
"id": "0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a",
"kind": "chat",
"name": "harvest",
"topic": "What came in this week",
"category": {
"id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
"name": "Garden",
"symbol": {
"emoji": null,
"icon": null,
"image": null,
"color": null,
"shape": null
}
},
"unread": 3,
"permissions": [
"view",
"send",
"react"
],
"symbol": {
"emoji": "🌻",
"icon": null,
"image": null,
"color": "amber",
"shape": "circle"
}
}ChannelCategoryチャンネルが属するカテゴリー。
例 {
"id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
"name": "Garden",
"symbol": {
"emoji": null,
"icon": null,
"image": null,
"color": null,
"shape": null
}
}ChannelSymbolチャンネルまたはカテゴリーのアイコン:絵文字、シンボル、画像のうち最大1つ。なければ種類ごとの記号。
フィールド 型 意味 emojistringまたはnull 絵文字。ない場合はnull。 iconstringまたはnull アプリのアイコンセットにあるアイコンの名前。ない場合はnull。 imagestringまたはnull 独自の画像のアドレス。ない場合はnull。 colorstringまたはnull タイルの色。種類ごとの色の場合はnull。 shapestringまたはnull タイルの形。円の場合はnull。
例 {
"emoji": "🌻",
"icon": null,
"image": null,
"color": "amber",
"shape": "circle"
}ChannelMessageチャットチャンネルのメッセージ。
フィールド 型 意味 idstringid。textstringまたはnull テキスト(画像または音声のみのメッセージではnull)。 authorPerson書いた人。 mediaMedia[]画像とボイスメッセージ。ない場合は空。 replyTostringまたはnull 返信先のメッセージのid。返信でない場合はnull。 roleColorstringまたはnull 書いた人の、色を持つロールのうち最上位のロールの色。ない場合はnull。 threadOfstringまたはnull このメッセージが返信しているスレッドの元のメッセージ。チャットではnull。 threadCountintegerこのメッセージのスレッドの返信数。 cardobjectまたはnull ボットのカード:title、text、color、fields。それ以外はnull。 buttonsobject[]ボットのボタン:それぞれid、label、style。 cardsobject[]ボットのカード(2.26 以降):それぞれtitle、text、color、url、author、footer、image、thumbnail、timestamp、fields。 rowsobject[]ボットの行(2.26 以降):それぞれボタン(button)、リンク(link)、またはメニュー 1 つ(select)のリスト。 reactionsReaction[]メッセージの下の絵文字。2.22以降。 createdAtinteger書かれた日時。
例 {
"id": "61a2b3c4-d5e6-4f70-8192-a3b4c5d6e7f8",
"text": "@jon the first tomatoes are ripe 🍅",
"author": {
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"bot": false
},
"media": [
{
"url": "/api/media?id=b2d7e9f1-3c4a-4e8b-a1f0-6d5c4b3a2918",
"kind": "image",
"poster": null,
"ai": "without"
}
],
"replyTo": "72b3c4d5-e6f7-4081-92a3-b4c5d6e7f809",
"roleColor": "green",
"threadOf": null,
"threadCount": 3,
"card": null,
"buttons": [],
"cards": [],
"rows": [],
"reactions": [],
"createdAt": 1758631200000
}Reactionメッセージに付いた絵文字。
フィールド 型 意味 emojistring絵文字:描かれた絵文字、またはカスタム絵文字(:name:形式)。 countintegerこの絵文字でリアクションした人数。 mineboolean自分のアカウントがこの絵文字でリアクションしたかどうか。
例 {
"emoji": "🌻",
"count": 3,
"mine": true
}Roleグループのロール。
フィールド 型 意味 idstringid。namestringまたはnull 名前。@everyoneの場合はnull。 everyoneboolean全メンバーのロールである@everyoneかどうか。 colorstringまたはnull 色:indigo、violet、rose、amber、green、tealのいずれか。ない場合はnull。 permissionsstring[]ロールの権限。 membersintegerこのロールを持つ人数。@everyoneの場合は全メンバー。 editableboolean自分のアカウントで変更できるかどうか。 selfablebooleanメンバーが自分でロールを付けたり外したりできるかどうか。
例 {
"id": "4e5f6a7b-8c9d-4e0f-a1b2-c3d4e5f6a7b8",
"name": "Gardeners",
"everyone": false,
"color": "green",
"permissions": [
"attach",
"invite",
"send",
"view"
],
"members": 24,
"editable": true,
"selfable": false
}GroupMemberグループのメンバーとそのロール。
Person のすべてのフィールドに加えて:
フィールド 型 意味 leaderstringまたはnull メンバーがグループを作成したか、共同で管理しているか。それ以外はnull。founder — 作成者。manager — 共同管理者。 rolesstring[]メンバーのロールのid。最上位が先頭。 mutedUntilintegerまたはnull タイムアウトでメンバーがミュートされる期限(自分のアカウントがタイムアウトを付けられる場合)。それ以外はnull。
例 {
"id": "d4c3b2a1-6e5f-4a7b-9c8d-1e2f3a4b5c6d",
"handle": "jon",
"name": "Jon",
"bot": false,
"leader": null,
"roles": [
"4e5f6a7b-8c9d-4e0f-a1b2-c3d4e5f6a7b8"
],
"mutedUntil": null
}ChannelOverrideチャンネル内で、ロールまたは個々のメンバーにグループ全体とは異なる権限を与える設定。
フィールド 型 意味 rolestringまたはnull ロールのid。個別のメンバーについての設定の場合はnull(2.24以降)。 memberPersonまたはnull 対象となる個別のメンバー。ロールの場合はnull。2.24以降。 allowstring[]ここで追加で許可されること。 denystring[]ここで許可されないこと。
例 {
"role": "4e5f6a7b-8c9d-4e0f-a1b2-c3d4e5f6a7b8",
"member": null,
"allow": [
"send"
],
"deny": []
}Bellグループの通知ベル。
フィールド 型 意味 levelstring届く通知。all — フィードチャンネルのすべての新しい投稿と@everyone。important — フィードチャンネルでの運営の投稿と@everyone。off — @nameでメンションされたとき以外は何も届きません。
例 InviteLinkグループの招待リンク。
フィールド 型 意味 codestringコード。 urlstring共有用のアドレス。 createdByPersonまたはnull 作成した人。アカウントが削除されている場合はnull。 createdAtinteger作成された日時。 expiresAtintegerまたはnull 有効期限。期限がない場合はnull。 usesinteger使われた回数。 maxUsesintegerまたはnull 使える回数。無制限の場合はnull。
例 {
"code": "k7Qm2xPa",
"url": "https://tellmelo.com/groups?join=k7Qm2xPa",
"createdBy": {
"id": "d4c3b2a1-6e5f-4a7b-9c8d-1e2f3a4b5c6d",
"handle": "jon",
"name": "Jon",
"bot": false
},
"createdAt": 1758624000000,
"expiresAt": 1759228800000,
"uses": 3,
"maxUses": 10
}InvitePreview招待リンクの行き先。
フィールド 型 意味 communityInviteGroupグループ。 memberboolean自分のアカウントがすでにメンバーかどうか。
例 {
"community": {
"id": "c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60",
"name": "Urban Gardening",
"members": 312,
"rules": [
"Be kind.",
"No advertising."
]
},
"member": false
}InviteGroup招待リンクの先のグループ。
フィールド 型 意味 idstringid。namestring名前。 membersintegerメンバー数。 rulesstring[]参加時に同意するルール。ない場合は空。
例 {
"id": "c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60",
"name": "Urban Gardening",
"members": 312,
"rules": [
"Be kind.",
"No advertising."
]
}Joined招待リンクによる参加。
フィールド 型 意味 communitystringグループのid。
例 {
"community": "c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60"
}LogEntry運営ログの1項目。
フィールド 型 意味 idstringid。actionstring起きたこと。post_removed — 投稿。member_removed — メンバーの削除(2.16より前、90日間参加不可)。message_removed — チャットチャンネルのメッセージ。member_kicked — キック。member_banned — BAN。member_unbanned — BANの解除。member_timed_out — タイムアウト。timeout_lifted — タイムアウトの解除。voice_muted — ボイスチャンネルでミュート。voice_removed — ボイスチャンネルから切断。voice_moved — 別のボイスチャンネルに移動。bot_added — ボットがグループに追加されました(2.18以降)。bot_removed — ボットがグループから削除されました(2.18以降)。channel_changed — チャンネルの設定を変更。reasonに変更箇所が入ります(2.24以降)。 memberPerson対象となった人。 reasonstring理由。メッセージの場合や理由がない場合は空。 bystringまたはnull 実行した人の名前。アカウントが削除されている場合はnull。 channelstringまたはnull 設定が変更されたチャンネル。それ以外はnull。2.24以降。 createdAtinteger日時。
例 {
"id": "8f7e6d5c-4b3a-4291-8f7e-6d5c4b3a2918",
"action": "message_removed",
"member": {
"id": "d4c3b2a1-6e5f-4a7b-9c8d-1e2f3a4b5c6d",
"handle": "jon",
"name": "Jon",
"bot": false
},
"reason": "",
"by": "Mara 🌻",
"channel": null,
"createdAt": 1758710400000
}BanグループからのBAN。
フィールド 型 意味 memberPersonBANされた人。 untilintegerまたはnull 期限。解除されるまで続く場合はnull。 createdAtintegerまたはnull 開始日時。2.16より前のBANではnull。 bystringまたはnull BANした人の名前。不明な場合はnull。
例 {
"member": {
"id": "d4c3b2a1-6e5f-4a7b-9c8d-1e2f3a4b5c6d",
"handle": "jon",
"name": "Jon",
"bot": false
},
"until": 1759228800000,
"createdAt": 1758624000000,
"by": "Mara 🌻"
}UntilタイムアウトまたはBANが終わる日時。
フィールド 型 意味 untilintegerまたはnull 日時。無期限のBAN、または解除されたタイムアウトの場合はnull。
例 {
"until": 1758624600000
}Tagタグと、そのタグが付いた投稿の数。
フィールド 型 意味 tagstringタグ。#なし。 postsintegerこのタグが付いた最近の投稿の数。
例 {
"tag": "garden",
"posts": 58
}SearchResult3つのリスト。空の場合もあります。
例 {
"posts": [
{
"id": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"text": "The bees are back in the garden 🐝 #garden",
"kind": "poll",
"author": {
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"verified": true,
"accountKind": "person"
},
"community": {
"id": "c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60",
"name": "Urban Gardening"
},
"media": [
{
"url": "/api/media?id=b2d7e9f1-3c4a-4e8b-a1f0-6d5c4b3a2918",
"kind": "image",
"poster": null,
"ai": "without"
}
],
"poll": {
"options": [
{
"text": "Lavender",
"votes": 12
},
{
"text": "Sunflowers",
"votes": 7
},
{
"text": "Clover",
"votes": 3
}
],
"total": 22,
"multiple": false,
"endsAt": null,
"running": true,
"resultsVisible": true,
"myVotes": [
0
]
},
"quotes": null,
"continues": null,
"counts": {
"replies": 4,
"likes": 31,
"reposts": 2
},
"pinned": false,
"giftDrop": {
"item": "plan",
"quantity": 3,
"places": 10,
"left": 4,
"audience": "followers",
"newAccounts": false,
"status": "open",
"claimed": true
},
"createdAt": 1758624000000
}
],
"profiles": [
{
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"verified": true,
"accountKind": "person"
}
],
"tags": [
{
"tag": "garden",
"posts": 58
}
]
}Emojiこのインスタンスの絵文字。
フィールド 型 意味 namestringコロンの間に書かれる名前。 urlstring画像のアドレス。このインスタンスからの相対パスです。
例 {
"name": "tellmelo",
"url": "/api/media?id=e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b"
}Notification通知。1行に同じ種類の複数のイベントがまとめられることがあります。
フィールド 型 意味 idstring通知のID。 kindstring起きたこと。reply — 誰かが返信しました。like — 誰かが投稿にいいねしました。reply_like — 誰かが返信に高評価を付けました。reply_pick — 投稿者が自分の返信をハイライトしました。repost — 誰かが投稿をシェアしました。follow — 誰かにフォローされました。mention — 誰かにメンションされました。group_mention — 誰かが自分の運営するグループをメンションしました。textはグループ名です。channel_mention — 参加中のグループのチャットチャンネルで誰かが自分をメンションしました(@everyoneを含む)。メンバーはactor、文にはチャンネルとグループが入り、メッセージは入りません。message — 誰かからメッセージが届きました。scheduled — 予約投稿が公開されました。video — 動画の処理を待っていた自分の投稿が公開された、または下書きに戻りました。reminder — 保存した投稿のリマインダーの時間になりました。report — 送った通報の結果。moderation — アカウントに関する決定:警告、制限、異議申し立て。team — チームへの新しい作業(オーナー、管理者、モデレーターのみ)。reward — 招待の報酬がなくなりそう、またはなくなりました。gift — チームからのプレゼント:プラン、または自分や自分が運営するグループへのスパーク。present — メンバーからのプレゼント:スパークまたはプラン期間。メンバーはactorとして示されます。spark — スパークの期限がまもなく切れる、または運営するグループのスパークが特典に足りなくなりました。loyalty — 継続リズムについて:アクティブな週がカウントされた、またはあと1日足りない、報酬が新しく獲得された、またはなくなりそう。impact — 最初の12時間の投稿に対する1日後の反応を、1件の通知でお知らせします。discovery — 「見つける」プログラムへの招待、または掲載の開始・終了。group_post — ベルが鳴る設定のグループでの新しい投稿。group_moderation — グループの運営が自分の投稿、または自分をグループから削除しました。group_event — 参加予定のグループのイベントが始まります。group — メンバーがグループで自分に対して行ったこと:招待、承認または拒否、共同管理者に任命、グループの譲渡や解散、または自分のグループへの申請。メンバーはactor、グループ名は文の最後に入ります。coauthor — 誰かから投稿の共同執筆者として招待されました。partner — パートナープログラムからのリマインダー、またはパートナーバッジの終了。news — フォロー中の地域の新しい記事。pick — 自分の投稿が今週または今年の投稿の候補になった、または選ばれました。advent — アドベントカレンダーの新しい扉が開いた、扉が開けられた、または今日の扉がまだ待っています。melos — メンバーのMelosは、獲得も使用もしなければまもなく失効します。team_message — tellmeloチームが選ばれたメンバーに送ったメッセージ。ads — 企業・団体向け:依頼の割引コード、または依頼の仕組みについてのヒント。challenge — 新しい今週のチャレンジが始まりました。nudge — 1回のみ:まだ誰も返信していない投稿、または開催中のチャレンジ。signin — コンピューターから、今そこでログインしているかの確認が届きました。 textstringまたはnull 通報とモデレーションの場合のみ、関連するテキスト。それ以外はnull。 actorActor行った人。 postIdstringまたはnull 対象の投稿(投稿に関係しない場合はnull)。 readboolean既読かどうか。 moreinteger表示されているもの以外に、この行がまとめているイベントの数。 createdAtinteger最初に起きた日時。 updatedAtinteger最後にイベントがまとめられた日時。リストはこの順に並びます。
例 {
"id": "3f2e1d0c-9b8a-4765-8432-10fedcba9876",
"kind": "like",
"text": null,
"actor": {
"handle": "jon",
"name": "Jon"
},
"postId": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"read": false,
"more": 2,
"createdAt": 1758624300000,
"updatedAt": 1758624900000
}Actor通知のきっかけになった人。
フィールド 型 意味 handlestringユーザー名。 namestring表示名。
例 {
"handle": "jon",
"name": "Jon"
}Conversation受信箱の1行。
フィールド 型 意味 withstring相手アカウントのID:/conversations/{with}/messagesで必要になるもの。 handlestring相手のユーザー名。 namestring相手の表示名。 excerptstringまたはnull 最新メッセージの冒頭(テキストがない場合はnull)。 truncatedboolean冒頭が省略されているかどうか。 fromMeboolean最新メッセージが自分のものかどうか。 lastMessageIdstring最新メッセージのID。 unreadinteger相手のメッセージのうち、まだ読んでいない数。 updatedAtinteger最新メッセージが書かれた日時。
例 {
"with": "d4c3b2a1-6e5f-4a7b-9c8d-1e2f3a4b5c6d",
"handle": "jon",
"name": "Jon",
"excerpt": "See you on Saturday at the market!",
"truncated": false,
"fromMe": true,
"lastMessageId": "7c6b5a49-3827-4165-9f0e-d1c2b3a49586",
"unread": 0,
"updatedAt": 1758624060000
}Messageトーク内のメッセージ。
フィールド 型 意味 idstringメッセージのID。 textstringまたはnull テキスト(画像のみのメッセージではnull)。 fromstringメッセージを書いたアカウントのID。 tostringメッセージの宛先アカウントのID。 readboolean受信者が読んだかどうか。 mediaMedia[]メッセージの画像。ない場合は空。 replyTostringまたはnull このメッセージが返信している先のメッセージのid(返信でない場合はnull)。2.2以降。 reactionsReaction[]メッセージに付いた絵文字。2.22以降。 createdAtinteger送信日時。
例 {
"id": "7c6b5a49-3827-4165-9f0e-d1c2b3a49586",
"text": "See you on Saturday at the market!",
"from": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"to": "d4c3b2a1-6e5f-4a7b-9c8d-1e2f3a4b5c6d",
"read": true,
"media": [],
"replyTo": null,
"reactions": [],
"createdAt": 1758624060000
}PlannedMessageあとで送るよう予約した自分のメッセージ。
フィールド 型 意味 idstring予約したメッセージのid。 tostring受け取るアカウントのid。 textstringまたはnull テキスト。エンドツーエンド暗号化の場合はnull。 sendAtinteger送信される日時。 statestring状態。waiting — 予定の日時を待っています。held — プランが終了したため保留中です。自分で送信するか削除できます。failed — 送信できませんでした。
例 {
"id": "3b2a1c0d-9e8f-4a7b-b6c5-d4e3f2a1b0c9",
"to": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"text": "Happy birthday! 🎂",
"sendAt": 1758710400000,
"state": "waiting"
}ScheduledPostまだ公開されていない自分の投稿。
フィールド 型 意味 idstring投稿のid。 textstringまたはnull テキスト。 communityIdstringまたはnull 投稿されるグループ(グループ外の場合はnull)。 publishAtintegerまたはnull 公開される日時(ほかの何かを待っている間はnull)。 deleteAtintegerまたはnull 自動で削除される日時(null:削除されない)。 waitingForstring何を待っているか。time — 設定した日時。review — 確認用に書かれたテキストの承認。check — 自動モデレーションによるチェック。payment — プレゼントの支払い。 createdAtinteger書かれた日時。
例 {
"id": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"text": "Market day tomorrow – see you at the bee stand! #garden",
"communityId": null,
"publishAt": 1758710400000,
"deleteAt": null,
"waitingFor": "time",
"createdAt": 1758624000000
}Collection保存した投稿のコレクション。
フィールド 型 意味 idstringコレクションのid。 namestring名前。 countinteger含まれる投稿の数。
例 {
"id": "6d5c4b3a-2918-4e7f-a1b2-c3d4e5f60718",
"name": "Recipes",
"count": 12
}Eventプロフィールの今後の予定。
フィールド 型 意味 idstringイベントのid。 titlestringタイトル。 startsAtinteger開始。 endsAtintegerまたはnull 終了。終了がない場合はnull。 placestringまたはnull 場所。 descriptionstringまたはnull 説明。 signupsEventSignupsまたはnull 参加登録。登録がない場合はnull。
例 {
"id": "2a3b4c5d-6e7f-4809-9a1b-2c3d4e5f6a7b",
"title": "Seed swap",
"startsAt": 1758883200000,
"endsAt": 1758890400000,
"place": "Community garden",
"description": "Bring seeds, take seeds.",
"signups": {
"count": 14,
"going": true
}
}EventSignups参加登録した人数。
フィールド 型 意味 countinteger参加登録の数。 goingboolean自分が参加登録しているかどうか。
例 {
"count": 14,
"going": true
}EventSignup自分の予定に参加登録した人。
フィールド 型 意味 idstringアカウントのid。 handlestringハンドル。 namestring表示名。 atinteger参加登録した日時。
例 {
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"at": 1758624000000
}Pictureアップロードされた画像。
フィールド 型 意味 idstring画像のid。 urlstring画像を表示できる場所。
例 {
"id": "8c7b6a59-4837-4261-9f5e-d4c3b2a1f0e9",
"url": "/api/media?id=8c7b6a59-4837-4261-9f5e-d4c3b2a1f0e9"
}EmojiPictureアップロードされた絵文字の画像。
フィールド 型 意味 idstring画像のid。 urlstring画像を表示できる場所。 animatedboolean動くかどうか。
例 {
"id": "8c7b6a59-4837-4261-9f5e-d4c3b2a1f0e9",
"url": "/api/media?id=8c7b6a59-4837-4261-9f5e-d4c3b2a1f0e9",
"animated": false
}OwnEmoji自分の独自絵文字の1つ。
フィールド 型 意味 namestring名前。 urlstring画像。 animatedboolean動くかどうか。 restingbooleanプランで使える絵文字が現在少ないため休止中:残りますが、使えません。
例 {
"name": "sunflower",
"url": "/api/media?id=8c7b6a59-4837-4261-9f5e-d4c3b2a1f0e9",
"animated": false,
"resting": false
}GroupEmojiグループの絵文字。
フィールド 型 意味 namestring名前。 urlstring画像。 animatedboolean動くかどうか。
例 {
"name": "seedling",
"url": "/api/media?id=8c7b6a59-4837-4261-9f5e-d4c3b2a1f0e9",
"animated": false
}BotEventボットのグループで発生したイベント。
フィールド 型 意味 idstring昇順の番号。続きを取得するのに使います(since、Last-Event-ID)。 typestring起きたこと。message.created — メッセージが書かれました。message.deleted — メッセージが削除されました。reaction.added — 誰かがメッセージに絵文字でリアクションしました。reaction.removed — 誰かがリアクションを取り消しました。member.joined — 誰かが参加しました。member.left — 誰かが退出した、または削除されました。voice.joined — 誰かがボイスチャンネルに参加しました。command — 誰かがボットのコマンドを使いました。interaction — 誰かがボットのメッセージのボタンを押したか、メニューで選択しました。 communitystringグループ。 channelstringまたはnull チャンネル。グループ全体の場合はnull。 createdAtinteger起きた日時。 dataobject種類に応じた関連データ:message、member(reason付き)、command、interaction。
例 {
"id": "4711",
"type": "message.created",
"community": "c81d4e2a-0f3b-4a6c-9e57-1d2b3c4a5f60",
"channel": "0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a",
"createdAt": 1758634800000,
"data": {
"message": {
"id": "61a2b3c4-d5e6-4f70-8192-a3b4c5d6e7f8",
"text": "/dice 6",
"author": {
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"bot": false
},
"media": 0,
"replyTo": null,
"threadOf": null,
"createdAt": 1758634800000
}
}
}BotCommandボットのコマンド。
フィールド 型 意味 namestring名前(「/」なし)。 descriptionstringコマンドの機能。
例 {
"name": "dice",
"description": "Rolls a die"
}VoiceSeatボイスチャンネルの席。
フィールド 型 意味 urlstringメディアサーバー(LiveKit)のアドレス。 tokenstringこのチャンネル用のトークン。数分間有効です。 iceServersobject[]接続用のSTUNサーバーとTURNサーバー。 speakbooleanボットがそこで音声を送信できるかどうか。 videobooleanボットがそこで映像を送信できるかどうか。
例 {
"url": "wss://voice.example.org",
"token": "eyJhbGciOiJIUzI1NiJ9…",
"iceServers": [
{
"urls": [
"stun:turn.example.org:3478"
]
}
],
"speak": true,
"video": false
}Webhook自分のWebhookの1つ。
フィールド 型 意味 idstringWebhookのid。 urlstringアドレス。 kindsstring[]何について通知を受けるか。 activeboolean配信を受けるかどうか。連続して何度も失敗すると停止されます。 lastStatusintegerまたはnull 最後の配信のHTTPステータス。 lastAtintegerまたはnull 最後に配信した日時。 failuresinteger連続した失敗の回数。
例 {
"id": "1f2e3d4c-5b6a-4798-8a7b-6c5d4e3f2a1b",
"url": "https://example.org/tellmelo-hook",
"kinds": [
"reply",
"mention"
],
"active": true,
"lastStatus": 200,
"lastAt": 1758624000000,
"failures": 0
}WebhookCreated新しいWebhookとそのシークレット。
フィールド 型 意味 idstringWebhookのid。 secretstring署名用のシークレット。表示はこの1回だけです。
例 {
"id": "1f2e3d4c-5b6a-4798-8a7b-6c5d4e3f2a1b",
"secret": "whsec_3f9a…"
}GroupBotグループのボット。
フィールド 型 意味 idstringボットアカウントのid。 handlestringハンドル。 namestring名前。 descriptionstringボットの機能。所有者による説明。 permissionsstring[]グループでのボットのロールが許可していること。
例 {
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "gardenbot",
"name": "Garden bot",
"description": "Reminds the group of watering days.",
"permissions": [
"send",
"view"
]
}VoiceRoomボイスチャンネルと、そこにいる人。
例 {
"channel": "0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a",
"people": [
{
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"muted": false,
"deaf": false,
"camera": false,
"screen": true
}
]
}VoicePersonボイスチャンネルにいる人。
フィールド 型 意味 idstringアカウントのid。 handlestringハンドル。 namestring表示名。 mutedbooleanマイクがオフかどうか。 deafboolean何も聞こえない状態かどうか(本人が選択)。 camerabooleanカメラがオンかどうか。 screenboolean画面を共有しているかどうか。
例 {
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"handle": "mara",
"name": "Mara 🌻",
"muted": true,
"deaf": false,
"camera": false,
"screen": false
}GiftDrop投稿に付いたプレゼント。受け取った人の名前は含まれません。
フィールド 型 意味 itemstring1枠に含まれるもの。plan — プランの月数(サポーター)。sparks — スパーク。 quantityinteger1枠あたりの量:月数またはスパーク数。 placesinteger枠の総数。 leftintegerまだ受け取られていない数。 audiencestring受け取れる人。all — 全員。followers — 配る人のフォロワーのみ。group — 投稿のグループのメンバーのみ。 newAccountsboolean作成から7日未満のアカウントも受け取れるかどうか。 statusstring現在の状態。awaiting_payment — 支払い待ち。投稿はまだ公開されていません。open — まだ受け取れる枠があります。closed — 終了:すべて受け取り済み、支払いが返金された、または投稿が削除されました。 claimedboolean自分がすでに枠を確保しているかどうか(公開パスでは常にfalse)。
例 {
"item": "plan",
"quantity": 3,
"places": 10,
"left": 4,
"audience": "followers",
"newAccounts": false,
"status": "open",
"claimed": true
}OwnGiftDrop自分が投稿に付けたプレゼント。投稿と支払い方法を含みます。
GiftDrop のすべてのフィールドに加えて:
フィールド 型 意味 postIdstringプレゼントが付いている投稿。 fundingstring支払い方法。free — 無料。quota — 割り当て枠から。payment — 支払い済み。 createdAtinteger作成された日時。
例 {
"item": "plan",
"quantity": 3,
"places": 10,
"left": 4,
"audience": "followers",
"newAccounts": false,
"status": "open",
"claimed": false,
"postId": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"funding": "quota",
"createdAt": 1758624000000
}Quota枠の中身。
フィールド 型 意味 monthsintegerまだプレゼントできるプランの月数。 sparksintegerまだプレゼントできるスパーク。 looksQuotaLook[]まだプレゼントできるストック中のルック(2.13以降)。
例 {
"months": 120,
"sparks": 500,
"looks": [
{
"id": "frame-gold",
"name": "Goldring",
"kind": "frame",
"quantity": 25
}
]
}QuotaLookパートナーの在庫にあるルックと、その残り数(2.13以降)。
フィールド 型 意味 idstringルックのID。プレゼントするときはitemIdとして渡します。 namestringルックの名前。 kindstringルックの種類。frame — プロフィールフレーム。background — カバーエフェクト。card — プロフィールカード。 quantityinteger残り数。
例 {
"id": "frame-gold",
"name": "Goldring",
"kind": "frame",
"quantity": 25
}QuotaGift枠からのプレゼント。
フィールド 型 意味 itemstringプレゼントしたもの。plan — プランの月数(サポーター)。sparks — スパーク。shop — ストックのルック(2.13以降)。 quantityinteger量。 itemIdstringまたはnull itemがshopの場合はプレゼントしたルック、それ以外はnull。recipientActor贈った相手。 createdAtinteger日時。
例 {
"item": "plan",
"quantity": 3,
"itemId": null,
"recipient": {
"handle": "jon",
"name": "Jon"
},
"createdAt": 1758627600000
}Embedほかのウェブサイト用のアドレス。キーなしで使えます。
フィールド 型 意味 pagestring<iframe>用のプレーヤー。filestring独自のプレーヤー用のMP4ファイル。 posterstringプレビュー画像。 codestring埋め込み用の完成したコード。
例 {
"page": "https://tellmelo.com/media-embed/b2d7e9f1-3c4a-4e8b-a1f0-6d5c4b3a2918",
"file": "https://tellmelo.com/media-embed/b2d7e9f1-3c4a-4e8b-a1f0-6d5c4b3a2918/file",
"poster": "https://tellmelo.com/media-embed/b2d7e9f1-3c4a-4e8b-a1f0-6d5c4b3a2918/poster",
"code": "<iframe src=\"https://tellmelo.com/media-embed/b2d7e9f1-3c4a-4e8b-a1f0-6d5c4b3a2918\" width=\"480\" height=\"300\" title=\"Happy bees\" style=\"border:0;max-width:100%\" loading=\"lazy\" allowfullscreen></iframe>"
}UploadStarted開始したアップロード。
フィールド 型 意味 uploadstringこのアップロードのID。 pieceinteger1つの断片の最大サイズ(バイト)。
例 {
"upload": "e7c1a2b3-4d5e-4f60-8a9b-0c1d2e3f4a5b",
"piece": 4194304
}UploadPiece受信したデータの一部。
フィールド 型 意味 receivedinteger届いたバイト数。 itemMediaItemまたはnull 最後の断片の後は新しいGIFまたは動画、それ以外はnull。
例 {
"received": 4194304,
"item": null
}Created何かを作成した書き込みのレスポンス。
フィールド 型 意味 idstring作成されたもののID。 scheduledForintegerまたはnull 公開が予約された場合の公開日時(それ以外はnull)。 deleteAtintegerまたはnull 自動削除が設定された場合の削除日時(それ以外はnull)。
例 {
"id": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"scheduledFor": null,
"deleteAt": null
}DropCreatedプレゼント付きの投稿を作成したときのレスポンス。
フィールド 型 意味 idstring新しい投稿のid。 fundingstringプレゼントの支払い方法。free — 無料。quota — 割り当て枠から。
例 {
"id": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"funding": "quota"
}Made作成または変更されたもの。
フィールド 型 意味 idstringid。招待リンクの場合はそのコード。
例 {
"id": "0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a"
}Actionカタログのアクション。
フィールド 型 意味 namestringアクションの名前。POST /actions/{name}に使います。 scopestringアクションに必要なキーの権限。 passwordbooleanpasswordでパスワードも送るかどうか。fieldsstring[]アクションが読み取るフィールド。アプリが送るのと同じもので、コードから読み取ったものです(型はありません)。確実に読み取れない場合は空です。
例 {
"name": "collection.new",
"scope": "write",
"password": false,
"fields": [
"name"
]
}ActionAnswer汎用ルートのレスポンス。
フィールド 型 意味 resultobjectまたはnull アプリが受け取るのと同じ、アクション自体の応答。
例 {
"result": {
"id": "f3a9c2e1-7b6d-4e5f-9a8b-1c2d3e4f5a6b"
}
}PostOfTheWeek今週の投稿、または表示するものなし。
フィールド 型 意味 roundPickRoundまたはnull ラウンド。表示するものがない場合はnull。
例 {
"round": {
"id": "r1",
"kind": "week",
"open": true,
"opensAt": 1763200000000,
"closesAt": 1763458800000,
"nominees": [
{
"post": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"author": "mara",
"text": "Our first harvest 🌻",
"mine": false
}
],
"vote": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"mayVote": true,
"winner": null
}
}PickRound今週の投稿のラウンド。
フィールド 型 意味 idstringラウンドのID。投票に使います。 kindstringラウンドで選ぶもの。week — 今週の投稿。year — 今年の投稿。 openboolean投票を受け付けているかどうか。 opensAtintegerラウンドが始まった日時(1970年からのミリ秒)。 closesAtintegerラウンドが終わる日時(1970年からのミリ秒)。 nomineesPickNominee[]候補の投稿。 votestringまたはnull 自分が投票した投稿、またはnull。 mayVoteboolean投票できるかどうか。新しいアカウントは数日待つ必要があります。 winnerPickNomineeまたはnull ラウンド終了後に選ばれた投稿。それ以外はnull。
例 {
"id": "r1",
"kind": "week",
"open": true,
"opensAt": 1763200000000,
"closesAt": 1763458800000,
"nominees": [],
"vote": null,
"mayVote": true,
"winner": null
}PickNomineeラウンドの投稿。
フィールド 型 意味 poststring投稿のID。 authorstring投稿者の@ネーム。 textstring投稿のテキスト。 mineboolean自分の投稿かどうか。
例 {
"post": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1",
"author": "mara",
"text": "Our first harvest 🌻",
"mine": false
}PickVote変更後の自分の投票。
フィールド 型 意味 votestringまたはnull 投票する投稿。投票を取り消した後はnull。
例 {
"vote": "5f0c2a9e-8d41-4b7a-9c3e-2e61d0f4a7b1"
}PickEligible自分の投稿が選ばれる対象かどうか。
フィールド 型 意味 eligibleboolean自分の投稿が選ばれる対象になるかどうか。
例 Settings自分の設定。
フィールド 型 意味 settingsobject設定の名前と値。
例 {
"settings": {
"chatCompact": true
}
}OwnStatus自分で選んだステータス。
フィールド 型 意味 presencestring選んだ状態。online — オンライン。入力が 10 分ないと退席中。idle — 変更するまで退席中。dnd — 取り込み中:プッシュ通知も音もなし。invisible — オフライン表示:他の人にはオフラインに見えます。 statusStatusTextまたはnull 自分のステータス。なければ null。
例 {
"presence": "dnd",
"status": {
"emoji": "🌱",
"text": "Planting tomatoes",
"until": 1758710400000
}
}StatusTextステータス:一定期間の、絵文字付きの短い言葉。
フィールド 型 意味 emojistringまたはnull 前の絵文字。なければ null。 textstring言葉。 untilintegerまたはnull 有効期限(ミリ秒)。無期限なら null。
例 {
"emoji": "🌱",
"text": "Planting tomatoes",
"until": 1758710400000
}MemberStatusメンバーについて見えるもの。
フィールド 型 意味 idstringアカウントの id。 presencestringメンバーの現在の在席状況。online — オンライン。idle — 退席中。dnd — 取り込み中。offline — オフライン、オフライン表示、またはオンライン表示をオフにしています。 statusStatusTextまたはnull その人のステータス。なければ null。 activityActivityまたはnull プレイ中のゲーム。なし、または表示していなければ null。
例 {
"id": "a3e1f7c2-54b9-4d0e-8f16-7b2c9d4e1a05",
"presence": "online",
"status": {
"emoji": "🌱",
"text": "Planting tomatoes",
"until": 1758710400000
},
"activity": {
"source": "rich",
"name": "Factorio",
"game": {
"id": "7c1d9e2f-3a4b-4c5d-8e6f-1a2b3c4d5e6f",
"logo": "/api/media?id=4f3e2d1c-0b9a-4876-9543-210fedcba987"
},
"details": "Building a rail network",
"state": "Multiplayer",
"startedAt": 1758620400000,
"endsAt": null,
"largeImage": null,
"largeText": null,
"smallImage": null,
"smallText": null,
"party": {
"size": 2,
"max": 4
},
"buttons": [
{
"label": "Get the game",
"url": "https://example.org/game"
}
]
}
}Playingいまプレイしているゲーム。
フィールド 型 意味 activityActivityまたはnull ゲーム。なければ null。
例 {
"activity": {
"source": "rich",
"name": "Factorio",
"game": {
"id": "7c1d9e2f-3a4b-4c5d-8e6f-1a2b3c4d5e6f",
"logo": "/api/media?id=4f3e2d1c-0b9a-4876-9543-210fedcba987"
},
"details": "Building a rail network",
"state": "Multiplayer",
"startedAt": 1758620400000,
"endsAt": null,
"largeImage": null,
"largeText": null,
"smallImage": null,
"smallText": null,
"party": {
"size": 2,
"max": 4
},
"buttons": [
{
"label": "Get the game",
"url": "https://example.org/game"
}
]
}
}Activity誰かがプレイしているゲーム。
フィールド 型 意味 sourcestring表示の出どころ。manual — 手動で入力。detected — デスクトップアプリがプログラムから認識。rich — ゲーム自身が報告。 namestringゲーム名。 gameActivityGameまたはnull カタログのゲーム。ゲームのない名前なら null。 detailsstringまたはnull ゲームが報告する 1 行目。なければ null。 statestringまたはnull 2 行目。なければ null。 startedAtintegerまたはnull プレイ開始時刻(ミリ秒)。なければ null。 endsAtintegerまたはnull 終了時刻(ラウンドなど、ミリ秒)。なければ null。 largeImagestringまたはnull 大きい画像のアドレス。なければ null。 largeTextstringまたはnull 大きい画像のテキスト。なければ null。 smallImagestringまたはnull 小さい画像のアドレス。なければ null。 smallTextstringまたはnull 小さい画像のテキスト。なければ null。 partyActivityPartyまたはnull ゲーム内のパーティー。なければ null。 buttonsActivityButton[]ウェブアドレス付きのボタン最大 2 つ。
例 {
"source": "rich",
"name": "Factorio",
"game": {
"id": "7c1d9e2f-3a4b-4c5d-8e6f-1a2b3c4d5e6f",
"logo": "/api/media?id=4f3e2d1c-0b9a-4876-9543-210fedcba987"
},
"details": "Building a rail network",
"state": "Multiplayer",
"startedAt": 1758620400000,
"endsAt": null,
"largeImage": null,
"largeText": null,
"smallImage": null,
"smallText": null,
"party": {
"size": 2,
"max": 4
},
"buttons": [
{
"label": "Get the game",
"url": "https://example.org/game"
}
]
}ActivityGameカタログのゲーム。
フィールド 型 意味 idstringゲームの id。 logostringまたはnull ロゴのアドレス。なければ null。
例 {
"id": "7c1d9e2f-3a4b-4c5d-8e6f-1a2b3c4d5e6f",
"logo": "/api/media?id=4f3e2d1c-0b9a-4876-9543-210fedcba987"
}ActivityPartyゲーム内のパーティー(例:「2/4」)。
フィールド 型 意味 sizeinteger現在の人数。 maxinteger最大人数。
例 Game名前で見つかったゲーム。
フィールド 型 意味 idstringまたはnull ゲームの id。Steam ストアのゲームでまだ誰も選んでいないものは null。 namestring名前。 logostringまたはnull ロゴのアドレス。なければ null。
例 {
"id": "7c1d9e2f-3a4b-4c5d-8e6f-1a2b3c4d5e6f",
"name": "Factorio",
"logo": "/api/media?id=4f3e2d1c-0b9a-4876-9543-210fedcba987"
}あなたのゲームのプレイ状況表示 あなたのゲームは、デスクトップアプリ(1.15.0 以降)を通じて、誰かがいまゲーム内で何をしているかを表示できます。モードの行、状態の行、時間、パーティー、画像、最大 2 つのボタンで、Discord と同じです。そのためアプリは同じコンピューター上でのみ待ち受け、どれもあなたのサーバーを通りません。
開発者ウィンドウの「ゲーム」でゲームを作成します。名前、ロゴ、プログラム名、画像を登録し、画像にはそれぞれ小文字・数字・_ からなるキーを付けます。そこでの id があなたの client_id です。 アプリに接続します。Windows では \\.\pipe\tellmelo-ipc-0、それ以外では XDG_RUNTIME_DIR(または一時フォルダー)内のソケット tellmelo-ipc-0 を使います。最初に v: 1 と client_id を付けたハンドシェイク(op 0)を送ると、アプリは READY で応答します。 ゲーム内で何かが変わるたびに、args.activity 付きの SET_ACTIVITY(op 1)を送ります。アプリは 15 秒以内に伝えます。activity: null を送るか接続を閉じると取り消されます。 ゲームを審査に出します。チームが承認するまでは、あなただけに表示されます。後で名前、ロゴ、プログラム名を変えると、もう一度審査されます。 読み取られるのは details と state(各 128 文字まで)、timestamps.start と end(秒またはミリ秒)、assets.large_image と small_image(ウェブアドレスではなく画像のキー)と large_text・small_text、[現在, 最大] 形式の party.size(999 まで)、そして buttons(最大 2 つ、それぞれ label(32 文字まで)と https アドレス)です。 フレームは Discord と同じです。8 バイトのヘッダー(op と長さ、それぞれ 32 ビット・リトルエンディアン)の後に JSON が続き、最大 64 KB。op 0 はハンドシェイク、1 はメッセージ、2 は切断、3 は ping、4 は pong。すでに Discord に対応しているゲームなら、接続先と tellmelo での id を変えるだけです。 アプリに接続できるのは、同じコンピューター上の同じユーザーのプログラムだけです。合わない部分は拒否されず、省かれます。本人が「プレイ中のゲームを表示」をオンにしている場合のみ、プロフィールを見られる人にだけ表示され、アプリから 3 分間連絡がなければ終了します。 Node.js による完全な例:
// Node 18 or newer, in or beside the game: tells tellmelo what the player does.
import net from 'node:net';
import path from 'node:path';
import os from 'node:os';
const CLIENT_ID = 'your-game-id'; // Developer window → Games
const where = process.platform === 'win32'
? '\\.\pipe\tellmelo-ipc-0'
: path.join(process.env.XDG_RUNTIME_DIR || os.tmpdir(), 'tellmelo-ipc-0');
const frame = (op, body) => {
const json = Buffer.from(JSON.stringify(body));
const head = Buffer.alloc(8);
head.writeUInt32LE(op, 0);
head.writeUInt32LE(json.length, 4);
return Buffer.concat([head, json]);
};
const socket = net.connect(where, () => socket.write(frame(0, { v: 1, client_id: CLIENT_ID })));
socket.once('data', () => {
// READY came: from now on, as often as something changes in the game.
socket.write(frame(1, {
cmd: 'SET_ACTIVITY',
nonce: String(Date.now()),
args: {
pid: process.pid,
activity: {
details: 'Ranked match',
state: 'In a group',
party: { size: [2, 4] },
timestamps: { start: Math.floor(Date.now() / 1000) },
assets: { large_image: 'map_forest', large_text: 'Forest', small_image: 'rank_gold', small_text: 'Gold' },
buttons: [{ label: 'Get the game', url: 'https://example.org' }],
},
},
}));
});
// Closing the connection (or activity: null) takes it back.機械可読な仕様 このページの元になっている表は、OpenAPI形式でhttps://api.tellmelo.com/v2/openapi.jsonにあります。
https://api.tellmelo.com/v2/openapi.jsonほかのウェブサイトでのGIFと動画 メンバーが共有し、ほかのウェブサイトでの表示も許可したものは、どのウェブサイトでも表示できます。anywhere=trueで検索すると見つかり、そのembedにアドレスが入っています。メンバーが許可を取り消すと、数分以内にそこから消えます。
分割アップロード まず開始し、その後ファイルを分割して送信します。大きなファイルはpieceバイトずつに分割し、それぞれの位置をoffsetで指定します。最後の断片の後に、完成したGIFまたは動画が返ります。
curl -X POST -H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/json" \
-d '{"kind":"gif","size":2400000,"name":"Happy bees","shared":true,"anywhere":true}' \
"https://api.tellmelo.com/v2/media/uploads"
→ { "upload": "e7c1a2b3-4d5e-4f60-8a9b-0c1d2e3f4a5b", "piece": 4194304 }
curl -X PUT -H "Authorization: Bearer tm_key_…" \
-H "Content-Type: application/octet-stream" \
--data-binary @bees.gif \
"https://api.tellmelo.com/v2/media/uploads/e7c1a2b3-4d5e-4f60-8a9b-0c1d2e3f4a5b?offset=0"
→ { "received": 2400000, "item": { "id": "…", "embed": { … } } }埋め込み プレーヤーはGIFをループで、動画を操作ボタン付きで表示し、その下に名前と共有した人を表示します。embed.codeのコードをページに貼り付けてください:
<iframe src="https://tellmelo.com/media-embed/b2d7e9f1-3c4a-4e8b-a1f0-6d5c4b3a2918" width="480" height="300" title="Happy bees" style="border:0;max-width:100%" loading="lazy" allowfullscreen></iframe>oEmbedに対応したフォーラムやプログラムは、プレーヤーのアドレスを渡すと自動でコードを取得します:
https://tellmelo.com/api/oembed?url=https%3A%2F%2Ftellmelo.com%2Fmedia-embed%2Fb2d7e9f1-3c4a-4e8b-a1f0-6d5c4b3a2918キーは自分のサーバーに置き、ウェブページのコードには絶対に入れないでください。検索とアップロードは自分のサーバー経由で行います。embedのアドレスにはキーは不要です。
ウェブサイト用のGIFピッカー サイトキー(開発者エリア → ウェブサイト用のGIFピッカー )を使うと、ウェブサイトに完成した検索機能を追加できます。ページに2行追加するだけで、ボタンをクリックすると開きます。キーは公開されており、登録したアドレスでのみ有効です。ピッカーには、メンバーがほかのウェブサイトでの表示を許可したものだけが表示されます。
<script src="https://tellmelo.com/picker.js" data-key="tmsk_…" defer></script>
<button type="button" data-tellmelo-picker>GIF</button>何かが選ばれると、ボタンはtellmelo:pickをそのアイテムとともに発火します:埋め込み用のcode、file、poster、name、author。data-target="#field"を付けるとcodeをテキストフィールドに直接入れ、data-kind="video"を付けると動画を検索します。ファイルを自分で埋め込む場合は、共有した人の名前を表示してください。
document.addEventListener('tellmelo:pick', (event) => {
const { code, file, name, author } = event.detail;
});tellmeloでログイン ほかのサイトは、OpenID Connect(PKCE付き認可コード)を使って、メンバーがtellmeloアカウントでログインできるようにできます。サイトが受け取るのは、ユーザー名、確認済みのメールアドレス、メンバーごとのサイト専用ID(sub)だけです。
アプリは「開発者エリア → tellmeloでログイン」から申請します。チームがすべてのアプリを審査します。承認後、そこでクライアントIDを確認でき、サーバーのあるアプリではクライアントシークレットを作成します。シークレットは一度だけ表示されます。
ライブラリに必要な情報はすべてディスカバリードキュメントにあります:
https://tellmelo.com/.well-known/openid-configurationメンバーを/oauth/authorizeに送ります。パラメーターはresponse_type=code、client_id、redirect_uri(登録したとおり正確に)、scope=openid profile email、state、nonce、code_challengeとcode_challenge_method=S256です。 1分以内に/oauth/tokenでコードを交換します:grant_type=authorization_code、code、redirect_uri、code_verifier。サーバーのあるアプリは、Basic認証またはフォームでシークレットも送ります。 IDトークン(RS256、鍵は/oauth/jwks)にはsubが含まれ、profileではpreferred_usernameも、emailではemailとemail_verifiedも含まれます。アクセストークンの有効期間は10分で、/oauth/userinfoの読み取りにのみ使えます。 https://tellmelo.com/oauth/authorize?response_type=code&client_id=tm_…
&redirect_uri=https%3A%2F%2Fexample.com%2Fcallback&scope=openid%20profile%20email
&state=…&nonce=…&code_challenge=…&code_challenge_method=S256
curl -u "tm_…:tms_…" https://tellmelo.com/oauth/token \
-d grant_type=authorization_code -d code=… \
-d redirect_uri=https://example.com/callback -d code_verifier=…{
"iss": "https://example.social",
"sub": "Xq3vR0b8yJm1cW4tZ2kPn6sLd9fHa7gE5uTo0iBeVxY",
"aud": "tm_5f2c9e1a7b3d4c6e8f0a1b2c",
"iat": 1760432400,
"exp": 1760433000,
"nonce": "n-0S6_WzA2Mj",
"at_hash": "HK6E_P6Dh8Y93mRNtsDB1Q",
"preferred_username": "anna",
"email": "anna@example.com",
"email_verified": true
}リフレッシュトークンはありません。tellmeloはログインのみを行い、継続的なアクセスは付与しません。メンバーがサイトを削除するか、チームがアプリを停止すると、/oauth/userinfoはすぐに401を返します。prompt=noneはページを表示せずに確認し、prompt=consentは再度確認を求めます。
守ってほしいこと ほかの場所と同じルールが適用されます:嫌がらせ禁止、スパム禁止、権利のない他人のコンテンツの使用禁止。キーを使って投稿された内容には、キーの持ち主が責任を負います。
ほかのメンバーのGIFや動画を自分のウェブサイトに表示できるのは、embedが付いている場合のみで、これらのアドレスを使い、シェアした人の名前を添えてください。利用できなくなったものは表示をやめてください。ファイルを自分のコレクションにコピーしないでください。