Download OpenAPI specification:
RheelのChat API仕様です。主に以下の2種類のエンドポイントを提供し、 認証方式によって利用方法が異なります。
Server Request 管理者(あるいはバックエンドサーバー)が、管理画面で発行したアプリケーション独自のAPI Key を用いた、ユーザー管理 (ユーザー作成・削除など) やセッショントークンの発行などを行う際のエンドポイントです。
User Request セッショントークン発行のエンドポイントを介して取得したセッショントークンを用いた、メッセージの投稿やチャンネルの閲覧・参加などのエンドポイントです。

管理画面からアプリケーション独自の API Key を取得します。 これはサーバーサイド(管理系)の認証に使用します。
エンドユーザーがログインすると、上記の API Key を用いてユーザーごとに セッショントークンを発行します。
ユーザーは、フロントエンド (Web クライアントやモバイルアプリなど) から セッショントークンを利用してチャットサービスにアクセスし、メッセージの送受信や チャンネルの閲覧・参加を行います。
Webhookのイベントやユーザーの作成・削除、権限管理などについて、詳しくはヘルプページをご覧ください。
ユーザー一覧を取得します。
| limit | integer <int32> Default: 20 |
| offset | integer <int32> Default: 0 |
{- "users": [
- {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "metadata": {
- "property1": null,
- "property2": null
}
}
], - "totalCount": 0
}新規ユーザーを作成します。
| id | string [ 1 .. 100 ] characters ^[a-zA-Z0-9_-]+$ ユーザーの一意な識別子(指定しない場合は自動生成されます) |
| display_name required | string [ 1 .. 200 ] characters ユーザーの表示名 |
| icon_url | string or null ユーザーアイコンのURL |
| role required | string Enum: "Admin" "Member" ユーザーの権限・役割(Admin:管理者, Member:一般ユーザー) |
object or null 任意の追加メタデータ |
{- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}{- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "metadata": {
- "property1": null,
- "property2": null
}
}指定したユーザー情報を編集します。
| user_id required | string (UserId) [ 1 .. 100 ] characters ^[a-zA-Z0-9_-]+$ |
| display_name required | string [ 1 .. 200 ] characters ユーザーの表示名 |
| icon_url | string or null ユーザーアイコンのURL |
| role required | string Enum: "Admin" "Member" ユーザーの権限・役割(admin:管理者, member:一般ユーザー) |
object or null 任意の追加メタデータ |
{- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}{- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "metadata": {
- "property1": null,
- "property2": null
}
}指定したユーザーに対してセッショントークンを発行します。
| user_id required | string (UserId) [ 1 .. 100 ] characters ^[a-zA-Z0-9_-]+$ |
| expired_at | string <date-time> |
{- "expired_at": "2019-08-24T14:15:22Z"
}{- "token": "string",
- "expired_at": "2019-08-24T14:15:22Z"
}すべてのチャンネルの一覧を取得します。
| name | string チャンネル名で検索(部分一致) |
| channel_type | string (Channels.ChannelType) Enum: "Public" "Secret" チャンネルタイプで検索 |
| include_archived | boolean Default: false アーカイブ済みチャンネルを含めるかどうか(デフォルト: false) |
| limit | integer <int32> Default: 20 取得件数の上限(デフォルト: 20) |
| offset | integer <int32> Default: 0 取得開始位置(デフォルト: 0) |
{- "channels": [
- {
- "id": "string",
- "name": "string",
- "channel_type": "Public",
- "metadata": {
- "property1": null,
- "property2": null
}, - "is_archived": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "latest_message": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "content": "string",
- "channel_id": "string",
- "thread_id": "1de43264-67cb-48af-89f9-e865c375bb84",
- "sent_by": {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}, - "read_by": [
- {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}
], - "reactions": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "message_id": "d7d9d9fd-478f-40e6-b651-49b7f19878a2",
- "emoji_code": "string",
- "user": {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}, - "created_at": "2019-08-24T14:15:22Z"
}
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "message_id": "d7d9d9fd-478f-40e6-b651-49b7f19878a2",
- "url": "string",
- "name": "string",
- "mime_type": "string",
- "size": 0,
- "source": "Binary",
- "metadata": {
- "property1": null,
- "property2": null
}, - "channel_id": "string"
}
], - "mentions": [
- {
- "type": "User",
- "user": {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}
}
], - "thread_reply_info": {
- "count": 0,
- "last_replied_at": "2019-08-24T14:15:22Z"
}, - "edited_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "metadata": {
- "property1": null,
- "property2": null
}
}
}
], - "totalCount": 0
}新規チャンネルを作成します。
| id | string [ 1 .. 100 ] characters ^[a-zA-Z0-9_-]+$ チャンネルID(任意のIDを指定できます。指定しない場合は自動生成されます) |
| name required | string [ 1 .. 200 ] characters チャンネル名 |
| channel_type required | string Enum: "Public" "Secret" 公開チャンネルか秘密チャンネルか |
object or null 任意の追加メタデータ |
{- "id": "string",
- "name": "string",
- "channel_type": "Public",
- "metadata": {
- "property1": null,
- "property2": null
}
}{- "id": "string",
- "name": "string",
- "channel_type": "Public",
- "metadata": {
- "property1": null,
- "property2": null
}, - "is_archived": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}指定したチャンネルの詳細情報を取得します。
| channel_id required | string (ChannelId) [ 1 .. 100 ] characters ^[a-zA-Z0-9_-]+$ 取得対象となるチャンネルのID |
{- "id": "string",
- "name": "string",
- "channel_type": "Public",
- "metadata": {
- "property1": null,
- "property2": null
}, - "is_archived": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "latest_message": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "content": "string",
- "channel_id": "string",
- "thread_id": "1de43264-67cb-48af-89f9-e865c375bb84",
- "sent_by": {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}, - "read_by": [
- {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}
], - "reactions": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "message_id": "d7d9d9fd-478f-40e6-b651-49b7f19878a2",
- "emoji_code": "string",
- "user": {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}, - "created_at": "2019-08-24T14:15:22Z"
}
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "message_id": "d7d9d9fd-478f-40e6-b651-49b7f19878a2",
- "url": "string",
- "name": "string",
- "mime_type": "string",
- "size": 0,
- "source": "Binary",
- "metadata": {
- "property1": null,
- "property2": null
}, - "channel_id": "string"
}
], - "mentions": [
- {
- "type": "User",
- "user": {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}
}
], - "thread_reply_info": {
- "count": 0,
- "last_replied_at": "2019-08-24T14:15:22Z"
}, - "edited_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "metadata": {
- "property1": null,
- "property2": null
}
}
}指定チャンネルの名称・属性などを編集します。
| channel_id required | string (ChannelId) [ 1 .. 100 ] characters ^[a-zA-Z0-9_-]+$ 編集対象チャンネルのID |
| name required | string [ 1 .. 200 ] characters チャンネル名 |
| channel_type required | string Enum: "Public" "Secret" 公開チャンネルか秘密チャンネルか |
object or null 任意の追加メタデータ |
{- "name": "string",
- "channel_type": "Public",
- "metadata": {
- "property1": null,
- "property2": null
}
}{- "id": "string",
- "name": "string",
- "channel_type": "Public",
- "metadata": {
- "property1": null,
- "property2": null
}, - "is_archived": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}指定チャンネルからユーザーを追放します(roleがadminの場合のみ削除可能)。
| channel_id required | string (ChannelId) [ 1 .. 100 ] characters ^[a-zA-Z0-9_-]+$ ユーザーを追放するチャンネルID |
| user_ids required | Array of strings non-empty 削除するユーザーIDの配列(最低1件以上必要) |
{- "user_ids": [
- "string"
]
}[- {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}
]指定チャンネルへユーザーを招待します。
| channel_id required | string (ChannelId) [ 1 .. 100 ] characters ^[a-zA-Z0-9_-]+$ ユーザーを招待するチャンネルID |
| user_ids required | Array of strings non-empty 招待するユーザーIDの配列(最低1件以上必要) |
{- "user_ids": [
- "string"
]
}[- {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}
]指定チャンネルに所属するユーザーを一覧で取得します。
| channel_id required | string (ChannelId) [ 1 .. 100 ] characters ^[a-zA-Z0-9_-]+$ 対象となるチャンネルID |
[- {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "metadata": {
- "property1": null,
- "property2": null
}
}
]チャンネル内のメッセージを削除します(roleがadminの場合のみ削除可能)。
| channel_id required | string (ChannelId) [ 1 .. 100 ] characters ^[a-zA-Z0-9_-]+$ メッセージを削除する対象のチャンネルID |
| message_ids required | Array of strings <uuid> (Uuid) non-empty [ items <uuid > ] |
{- "message_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}{- "success": true
}指定したチャンネル内のメッセージを一覧取得します。
| channel_id required | string (ChannelId) [ 1 .. 100 ] characters ^[a-zA-Z0-9_-]+$ メッセージを取得したいチャンネルのID |
| limit | integer Default: 20 取得するメッセージの上限数 |
| anchor_message_id | string <uuid> (Uuid) 取得の基準点となるメッセージID。このIDを含んで後のメッセージを取得します。 指定がない場合は最も古いメッセージから取得します。(reverseがtrueの場合は最も新しいメッセージから取得します) |
| reverse | boolean Default: false true: 新しい順(最新→古い)、false: 古い順(古い→最新) (default: false) |
| include_reactions | boolean Default: false リアクションしたユーザーを含めるかどうかを決定します。 (default: false) |
| include_read_by | boolean Default: false 既読したユーザーを含めるかどうかを決定します。 (default: false) |
| include_reply_messages | boolean Default: false 返信メッセージを取得するかどうかを決定します。 (default: false) 注意: thread_idが指定されている場合、このパラメータは無視されます。 |
| thread_id | string <uuid> (Uuid) 特定のスレッドの返信のみを取得する場合に親メッセージIDを指定します。 このパラメータを指定した場合、指定した親メッセージへの返信のみが取得されます。 |
| include_thread_reply_info | boolean Default: false スレッド返信情報を含めるかどうかを決定します。 (default: false) |
{- "messages": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "content": "string",
- "channel_id": "string",
- "thread_id": "1de43264-67cb-48af-89f9-e865c375bb84",
- "sent_by": {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}, - "read_by": [
- {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}
], - "reactions": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "message_id": "d7d9d9fd-478f-40e6-b651-49b7f19878a2",
- "emoji_code": "string",
- "user": {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}, - "created_at": "2019-08-24T14:15:22Z"
}
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "message_id": "d7d9d9fd-478f-40e6-b651-49b7f19878a2",
- "url": "string",
- "name": "string",
- "mime_type": "string",
- "size": 0,
- "source": "Binary",
- "metadata": {
- "property1": null,
- "property2": null
}, - "channel_id": "string"
}
], - "mentions": [
- {
- "type": "User",
- "user": {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}
}
], - "thread_reply_info": {
- "count": 0,
- "last_replied_at": "2019-08-24T14:15:22Z"
}, - "edited_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "metadata": {
- "property1": null,
- "property2": null
}
}
], - "has_more": true,
- "next_message_id": "string"
}チャンネルに新しいメッセージを投稿します(JSON形式)。 テキストメッセージやURL指定の添付ファイルを送信できます。 チャンネルに新しいメッセージを投稿します(ファイルアップロード)。 バイナリファイルをアップロードできます。
| channel_id required | string (ChannelId) [ 1 .. 100 ] characters ^[a-zA-Z0-9_-]+$ メッセージを投稿するチャンネルID |
| user_id required | string メッセージを送信するユーザーのID |
object (Messages.CreateMessageRequest) | |
Array of objects (Messages.AttachmentInput) |
{- "user_id": "string",
- "message": {
- "content": "string",
- "thread_id": "1de43264-67cb-48af-89f9-e865c375bb84",
- "metadata": {
- "property1": null,
- "property2": null
}, - "mentions": [
- {
- "type": "User",
- "user_id": "string"
}
]
}, - "attachments": [
- {
- "url": "string",
- "name": "string",
- "mime_type": "string",
- "size": 0
}
]
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "content": "string",
- "channel_id": "string",
- "thread_id": "1de43264-67cb-48af-89f9-e865c375bb84",
- "sent_by": {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}, - "read_by": [
- {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}
], - "reactions": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "message_id": "d7d9d9fd-478f-40e6-b651-49b7f19878a2",
- "emoji_code": "string",
- "user": {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}, - "created_at": "2019-08-24T14:15:22Z"
}
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "message_id": "d7d9d9fd-478f-40e6-b651-49b7f19878a2",
- "url": "string",
- "name": "string",
- "mime_type": "string",
- "size": 0,
- "source": "Binary",
- "metadata": {
- "property1": null,
- "property2": null
}, - "channel_id": "string"
}
], - "mentions": [
- {
- "type": "User",
- "user": {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}
}
], - "thread_reply_info": {
- "count": 0,
- "last_replied_at": "2019-08-24T14:15:22Z"
}, - "edited_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "metadata": {
- "property1": null,
- "property2": null
}
}指定したユーザーがチャンネル内のメッセージをすべて既読にします。
| channel_id required | string (ChannelId) [ 1 .. 100 ] characters ^[a-zA-Z0-9_-]+$ |
| user_id required | string [ 1 .. 100 ] characters ^[a-zA-Z0-9_-]+$ メッセージを既読にするユーザーのID |
{- "user_id": "string"
}{- "success": true
}チャンネル内の既存メッセージを編集します。
| channel_id required | string (ChannelId) [ 1 .. 100 ] characters ^[a-zA-Z0-9_-]+$ メッセージを編集する対象のチャンネルID |
| message_id required | string <uuid> 対象のメッセージID |
required | object (Messages.UpdateMessageRequest) |
{- "message": {
- "content": "string",
- "metadata": {
- "property1": null,
- "property2": null
}, - "mentions": [
- {
- "type": "User",
- "user_id": "string"
}
]
}
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "content": "string",
- "channel_id": "string",
- "thread_id": "1de43264-67cb-48af-89f9-e865c375bb84",
- "sent_by": {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}, - "read_by": [
- {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}
], - "reactions": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "message_id": "d7d9d9fd-478f-40e6-b651-49b7f19878a2",
- "emoji_code": "string",
- "user": {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}, - "created_at": "2019-08-24T14:15:22Z"
}
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "message_id": "d7d9d9fd-478f-40e6-b651-49b7f19878a2",
- "url": "string",
- "name": "string",
- "mime_type": "string",
- "size": 0,
- "source": "Binary",
- "metadata": {
- "property1": null,
- "property2": null
}, - "channel_id": "string"
}
], - "mentions": [
- {
- "type": "User",
- "user": {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}
}
], - "thread_reply_info": {
- "count": 0,
- "last_replied_at": "2019-08-24T14:15:22Z"
}, - "edited_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "metadata": {
- "property1": null,
- "property2": null
}
}メッセージの添付ファイルを削除します。 削除できるのはメッセージの送信者または管理者のみです。
| channel_id required | string (ChannelId) [ 1 .. 100 ] characters ^[a-zA-Z0-9_-]+$ チャンネルID |
| message_id required | string <uuid> メッセージID |
| attachment_id required | string <uuid> 削除するファイルのID |
{- "success": true
}指定したメッセージに対してリアクションを付与します。
| channel_id required | string (ChannelId) [ 1 .. 100 ] characters ^[a-zA-Z0-9_-]+$ |
| message_id required | string <uuid> |
| user_id required | string リアクションを付与するユーザーのID |
| emoji_code required | string リアクションに用いる絵文字のコード |
{- "user_id": "string",
- "emoji_code": "string"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "message_id": "d7d9d9fd-478f-40e6-b651-49b7f19878a2",
- "emoji_code": "string",
- "user": {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}, - "created_at": "2019-08-24T14:15:22Z"
}指定したメッセージに付与されたリアクションを削除します。
| channel_id required | string (ChannelId) [ 1 .. 100 ] characters ^[a-zA-Z0-9_-]+$ |
| message_id required | string <uuid> |
| reaction_id required | string <uuid> |
{- "success": true
}Botを作成します。
| bot_user_id required | string [ 1 .. 100 ] characters ^[a-zA-Z0-9_-]+$ Botの一意な識別子(Bot作成時に任意のidを指定できます) ※ユーザーIDとの重複するIDは指定できません |
| bot_display_name required | string [ 1 .. 200 ] characters Botの表示名 |
| bot_icon_url | string or null BotのアイコンのURL |
object or null 任意の追加メタデータ |
{- "bot_user_id": "string",
- "bot_display_name": "string",
- "bot_icon_url": "string",
- "metadata": {
- "property1": null,
- "property2": null
}
}{- "bot_user_id": "string",
- "bot_display_name": "string",
- "bot_icon_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "metadata": {
- "property1": null,
- "property2": null
}
}Botをチャンネルに参加させます。
| bot_user_id required | string (UserId) [ 1 .. 100 ] characters ^[a-zA-Z0-9_-]+$ Botの一意なID |
| channel_ids required | Array of strings (ChannelId) non-empty [ items [ 1 .. 100 ] characters ^[a-zA-Z0-9_-]+$ ] 参加させるチャンネルIDの配列(最低1件以上必要) |
{- "channel_ids": [
- "string"
]
}[- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]Botからメッセージを送信します
| bot_user_id required | string (UserId) [ 1 .. 100 ] characters ^[a-zA-Z0-9_-]+$ Botの一意なID |
| channel_id required | string (ChannelId) [ 1 .. 100 ] characters ^[a-zA-Z0-9_-]+$ メッセージを投稿するチャンネルID |
| content required | string <= 32000 characters メッセージ本文 |
| thread_id | string or null <uuid> スレッドメッセージとして返信する場合の親メッセージID |
object or null 任意の追加メタデータ | |
Array of objects (Messages.MentionInput) メンション一覧(送信時) |
{- "content": "string",
- "thread_id": "1de43264-67cb-48af-89f9-e865c375bb84",
- "metadata": {
- "property1": null,
- "property2": null
}, - "mentions": [
- {
- "type": "User",
- "user_id": "string"
}
]
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "content": "string",
- "channel_id": "string",
- "thread_id": "1de43264-67cb-48af-89f9-e865c375bb84",
- "sent_by": {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}, - "read_by": [
- {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}
], - "reactions": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "message_id": "d7d9d9fd-478f-40e6-b651-49b7f19878a2",
- "emoji_code": "string",
- "user": {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}, - "created_at": "2019-08-24T14:15:22Z"
}
], - "mentions": [
- {
- "type": "User",
- "user": {
- "id": "string",
- "display_name": "string",
- "icon_url": "string",
- "role": "Admin",
- "metadata": {
- "property1": null,
- "property2": null
}
}
}
], - "edited_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "metadata": {
- "property1": null,
- "property2": null
}
}