bot

Botを作成します。

post/bots

Request body

namestring required

botユーザーID(16文字まで)。自動的に先頭に"BOT_"が付与されます

displayNamestring required

botユーザーの表示名(32文字まで)

descriptionstring required

botの説明

postUrlstring url required

botのPOSTエンドポイント

Response

正常に作成できました。

botIdstring uuid

BOT UUID

botUserIdstring uuid

BOTユーザーUUID

descriptionstring

BOT説明

subscribeEventsstring[]

BOTが購読しているイベントの配列

stateinteger

BOT状態

creatorIdstring uuid

BOT作成者UUID

createdAtstring date-time

BOT作成日時

updatedAtstring date-time

BOT更新日時

verificationCodestring

BOT認証コード

accessTokenstring

BOTアクセストークン

postUrlstring uri

BOTサーバーエンドポイント

privilegedboolean

権限昇格されているかどうか

botCodestring

BOTインストールコード

Example response

{
  "verificationCode": "NT672c7bgpfwdiMTyDXoeKiudlMazu",
  "accessToken": "NT672c7bgpfwdiMTyDXoeKiudlMazu",
  "postUrl": "https://example.com/bot",
  "botCode": "NT672c7bgpfwdiMTyDXoeKiudlMazu"
}

Changes