2022/09/06 - フリープラン グループチャットの利用上限数撤廃に伴うAPI変更のお知らせ / API Change Notice
[English below]
https://help.chatwork.com/hc/ja/articles/9319851372185 にてお知らせしております通り、2022年10月06日(予定)からフリープランにおいて、グループチャットの利用上限数(累計7個)の制限を撤廃し、サービス内容を変更させていただくことになりました。
これに伴い、Chatwork APIにつきましても、フリープランにおいて下記の通り変更を予定しておりますのでご確認ください。
尚、有料プランにつきましては、特に変更はございません。
変更点
1. 制限なくルームの作成及び参加が可能になります
現在は以下のAPIについて、フリープランではグループチャットの作成、参加の上限が累計7個に制限されていますが、この制限が撤廃され、8個以上のグループチャットの作成、参加が可能になります。
2. メッセージの取得に制限がかかるケースがあります
フリープランにおいて、直近40日以内に投稿された最新5,000件のメッセージが閲覧可能(組織ごとに適用)となります。これに伴い、以下のAPIにおいて、メッセージの一部もしくは全てが取得できないケースがございます。
制限が適用されているかどうかは、追加される以下のレスポンスヘッダーにて判別可能になります。
-
chatwork-message-limitation
- 制限が適用されている場合は
true
になります - 制限が適用されていない場合は、このヘッダーを省略するため、
false
に設定されることはありません
- 制限が適用されている場合は
-
chatwork-message-limitation-summary
- 制限の概要が記載されます
- 制限が適用されていない場合は、このヘッダーを省略します
メッセージ取得APIの変更内容
メッセージ取得APIの変更内容について、詳細は下記をご参照ください。
-
-
一部のメッセージが閲覧制限されて取得できない場合
-
HTTPステータスコード は
200
になります -
レスポンスヘッダーの
chatwork-message-limitation
がtrue
になり、制限理由がchatwork-message-limitation-summary
に追加されます -
レスポンス例
HTTP/2 200 date: Mon, 15 Aug 2022 05:59:12 GMT content-type: application/json; charset=utf-8 connection: keep-alive chatwork-message-limitation: true chatwork-message-limitation-summary: The response contains messages that cannot be browsed with the free plan. Please check the API documentation for details. x-ratelimit-limit: 300 x-ratelimit-remaining: 298 x-ratelimit-reset: 1660543297 [{"message_id":"123","account":{"account_id":1,"name":"Chatwork free user","avatar_image_url":"https://d2y3mporj2jwnb.cloudfront.net/avatar/ico_default_green.png"},"body":"Hello Chatwork!","send_time":1660542467,"update_time":0}]
-
-
すべてのメッセージが閲覧制限されて取得できない場合
- HTTPステータスコードは
204
になります - レスポンスヘッダーの
chatwork-message-limitation
がtrue
になり、制限理由がchatwork-message-limitation-summary
に追加されます - レスポンス例
HTTP/2 204 date: Mon, 15 Aug 2022 05:45:07 GMT content-type: application/json; charset=utf-8 connection: keep-alive chatwork-message-limitation: true chatwork-message-limitation-summary: The response contains messages that cannot be browsed with the free plan. Please check the API documentation for details. x-ratelimit-limit: 300 x-ratelimit-remaining: 299 x-ratelimit-reset: 1660542607
- HTTPステータスコードは
-
-
-
指定したメッセージIDのメッセージが制限されて取得できない場合
-
HTTPステータスコードは
404
になります -
レスポンスヘッダーの
chatwork-message-limitation
がtrue
になり、制限理由がchatwork-message-limitation-summary
に追加されます -
レスポンス例
HTTP/2 404 date: Mon, 15 Aug 2022 06:03:54 GMT content-type: application/json; charset=utf-8 connection: keep-alive chatwork-message-limitation: true chatwork-message-limitation-summary: The response contains messages that cannot be browsed with the free plan. Please check the API documentation for details. x-ratelimit-limit: 300 x-ratelimit-remaining: 299 x-ratelimit-reset: 1660543734 {"errors":["The message cannot be browsed. Please check the response header for details."]}%
-
-
API Change with Removing the upper limit on a total of 7 group chats for Free Plan
As announced in https://l.chatwork.com/h_announcement_09062022_en, we will remove the upper limit on a total of 7 group chats per user, and change the service contents for Free Plan from October 6, 2022 (planned).
Along with this, Chatwork API will also be changed for Free Plan as follows.
There are no changes to paid plans.
Changes
Removing the upper total of 7 group chats per user
Currently, Free Plan users are limited to creating and participating in a total of 7 group chats per user for the following APIs. After this change, Free Plan users will be able to create and join more than 8 rooms.
- https://developer.chatwork.com/reference/post-rooms
- https://developer.chatwork.com/reference/put-rooms-room_id-members
Restrictions on retrieving messages
In the Free Plan, the past 40 days and 5,000 messages per organization will be accessible after this change. As a result of this change, some or all of the messages may not be available for the following APIs.
- https://developer.chatwork.com/reference/get-rooms-room_id-messages
- https://developer.chatwork.com/reference/get-rooms-room_id-messages-message_id
The following response headers will be added to determine if the limitation is applied or not.
chatwork-message-limitation
- The only valid value for this header is
true
. - If the limitation is not applied, then this header will be omitted.
- The only valid value for this header is
chatwork-message-limitation-summary
- Summary of the limitation will be set.
Detailed changes to the APIs
Please see below for the detailed changes to the APIs.
-
https://developer.chatwork.com/reference/get-rooms-room_id-messages
-
If some messages cannot be retrieved due to the limitation
- HTTP status code:
200
- The response header
chatwork-message-limitation
will be set totrue
- The reason for the limitation will be set to the
chatwork-message-limitation-summary
- Example response:
HTTP/2 200 date: Mon, 15 Aug 2022 05:59:12 GMT content-type: application/json; charset=utf-8 connection: keep-alive chatwork-message-limitation: true chatwork-message-limitation-summary: The response contains messages that cannot be browsed with the free plan. Please check the API documentation for details. x-ratelimit-limit: 300 x-ratelimit-remaining: 298 x-ratelimit-reset: 1660543297 [{"message_id":"123","account":{"account_id":1,"name":"Chatwork free user","avatar_image_url":"https://d2y3mporj2jwnb.cloudfront.net/avatar/ico_default_green.png"},"body":"Hello Chatwork!","send_time":1660542467,"update_time":0}]
- HTTP status code:
-
If all messages are restricted and cannot be retrieved
- HTTP status code:
204
- The response header
chatwork-message-limitation
will be set totrue
- The reason for the limitation will be set to the
chatwork-message-limitation-summary
- Example response:
HTTP/2 204 date: Mon, 15 Aug 2022 05:45:07 GMT content-type: application/json; charset=utf-8 connection: keep-alive chatwork-message-limitation: true chatwork-message-limitation-summary: The response contains messages that cannot be browsed with the free plan. Please check the API documentation for details. x-ratelimit-limit: 300 x-ratelimit-remaining: 299 x-ratelimit-reset: 1660542607
- HTTP status code:
-
-
https://developer.chatwork.com/reference/get-rooms-room_id-messages-message_id
-
If the requested message ID is restricted
- HTTP status code:
404
- The response header
chatwork-message-limitation
will be set totrue
- The reason for the limitation will be set to the
chatwork-message-limitation-summary
- Example response:
HTTP/2 404 date: Mon, 15 Aug 2022 06:03:54 GMT content-type: application/json; charset=utf-8 connection: keep-alive chatwork-message-limitation: true chatwork-message-limitation-summary: The response contains messages that cannot be browsed with the free plan. Please check the API documentation for details. x-ratelimit-limit: 300 x-ratelimit-remaining: 299 x-ratelimit-reset: 1660543734 {"errors":["The message cannot be browsed. Please check the response header for details."]}%
- HTTP status code:
-