投稿メッセージリストの取得

メソッド

GET

URL

https://typetalk.com/api/v1/topics/:topicId

スコープ

topic.read

URLパラメーター

名前 説明
topicId 数値 トピックID

クエリパラメーター

名前 説明
count (任意) 数値 デフォルト値: 20、最大値: 200
from (任意) 数値 投稿ID
direction (任意) 文字列 “backward” または “forward”

レスポンスの例

{
    "mySpace": {
        "space": {
            "key": "xxxxxx",
            "name": "Nulab Inc",
            "enabled": true,
            "imageUrl": "https://apps.nulab.com/spaces/xxxxxx/photo/large"
        },
        "myRole": "ADMIN",
        "isPaymentAdmin": true,
        "invitableRoles": [
            "ADMIN",
            "USER",
            "GUEST"
        ],
        "myPlan": {
            "plan": {
                "key": "typetalk.standard25",
                "name": "スタンダード 25 ユーザー",
                "limitNumberOfUsers": 25,
                "limitNumberOfAllowedAddresses": 25,
                "limitTotalAttachmentSize": 26843545600
            },
            "enabled": true,
            "trial": null,
            "numberOfUsers": 5,
            "numberOfAllowedAddresses": 0,
            "totalAttachmentSize": 0,
            "createdAt": "2016-01-19T09:29:10Z",
            "updatedAt": "2018-10-18T01:43:56Z"
        }
    },
    "team": null,
    "topic": {
        "id": 3557,
        "name": "サイト改善",
        "suggestion": "サイト改善",
        "isDirectMessage": false,
        "lastPostedAt": "2018-10-11T09:49:24Z",
        "createdAt": "2016-02-05T06:13:44Z",
        "updatedAt": "2018-10-18T01:54:18Z",
        "description": "UXの改善に関するトピックです。\nデザインやUX、その他気づいた点について気軽に話しましょう。\n\nサイト改善についてのまとめWiki\n- https://xxxxx.backlog.jp/wiki/WEBSITE/Kaizen\n\nまた、関連イベントの周知もこのトピックで行います。"
    },
    "favorite": true,
    "bookmark": {
        "postId": 167571,
        "updatedAt": "2018-10-11T09:49:30Z"
    },
    "posts": [
        {
            "id": 154010,
            "topicId": 3557,
            "replyTo": null,
            "message": "トップ画面の改善案できました。http://nulab.com/ja/",
            "account": {
                "id": 2492,
                "name": "hayashi",
                "fullName": "hayashi",
                "suggestion": "hayashi",
                "imageUrl": "https://typetalk.com/accounts/2492/profile_image.png?t=1453871047310",
                "isBot": false,
                "createdAt": "2016-01-26T08:19:01Z",
                "updatedAt": "2018-11-06T01:48:44Z"
            },
            "mention": null,
            "attachments": [
                {
                    "attachment": {
                        "contentType": "application/octet-stream",
                        "fileKey": "1",
                        "fileName": "1.jpg",
                        "fileSize": 472263
                    },
                    "webUrl": "https://typetalk.com/topics/3557/posts/154010/attachments/1/1.jpg",
                    "apiUrl": "https://typetalk.com/api/v1/topics/3557/posts/154010/attachments/1/1.jpg"
                },
                {
                    "attachment": {
                        "contentType": "application/octet-stream",
                        "fileKey": "2",
                        "fileName": "2.jpg",
                        "fileSize": 494376
                    },
                    "webUrl": "https://typetalk.com/topics/3557/posts/154010/attachments/2/2.jpg",
                    "apiUrl": "https://typetalk.com/api/v1/topics/3557/posts/154010/attachments/2/2.jpg"
                }
            ],
            "likes": [],
            "talks": [],
            "links": [
                {
                    "id": 3148,
                    "url": "http://nulab.com/ja/",
                    "contentType": "text/html; charset=UTF-8",
                    "title": "チームにさらなるコラボレーションを | ヌーラボ",
                    "description": "数百万人ものユーザーがヌーラボのサービスを使用して、チームのコミュニケーションを改善しています。ヌーラボのオンラインコラボレーションツールで、あなたのチームの仕事をもっと楽しくしましょう。",
                    "imageUrl": "https://nulab.com/ogp_dft.png",
                    "embed": null,
                    "createdAt": "2015-06-15T06:41:24Z",
                    "updatedAt": "2017-03-03T10:11:08Z"
                }
            ],
            "createdAt": "2016-02-02T06:13:44Z",
            "updatedAt": "2016-02-05T06:13:44Z"
        },
        {
            "id": 154012,
            "topicId": 3557,
            "replyTo": 154011,
            "message": "いいと思いますよ。",
            "account": {
                "id": 2488,
                "name": "masa",
                "fullName": "masa",
                "suggestion": "masa",
                "imageUrl": "https://typetalk.com/accounts/2488/profile_image.png?t=1453868694472",
                "isBot": false,
                "createdAt": "2016-01-26T08:17:39Z",
                "updatedAt": "2018-11-06T02:16:42Z"
            },
            "mention": null,
            "attachments": [],
            "likes": [
                {
                    "id": 18854,
                    "postId": 154012,
                    "topicId": 3557,
                    "comment": null,
                    "account": {
                        "id": 2488,
                        "name": "masa",
                        "fullName": "masa",
                        "suggestion": "masa",
                        "imageUrl": "https://typetalk.com/accounts/2488/profile_image.png?t=1453868694472",
                        "isBot": false,
                        "createdAt": "2016-01-26T08:17:39Z",
                        "updatedAt": "2018-11-06T02:16:42Z"
                    },
                    "createdAt": "2016-02-05T06:13:44Z"
                },
                {
                    "id": 18855,
                    "postId": 154012,
                    "topicId": 3557,
                    "comment": null,
                    "account": {
                        "id": 2489,
                        "name": "agata",
                        "fullName": "Toshitaka Agata",
                        "suggestion": "Toshitaka Agata",
                        "imageUrl": "https://typetalk.com/accounts/2489/profile_image.png?t=1453867573519",
                        "isBot": false,
                        "createdAt": "2016-01-26T08:18:12Z",
                        "updatedAt": "2018-11-06T01:48:44Z"
                    },
                    "createdAt": "2016-02-05T06:13:44Z"
                }
            ],
            "talks": [],
            "links": [],
            "createdAt": "2016-02-03T06:13:44Z",
            "updatedAt": "2016-02-03T06:13:44Z"
        },
        {
            "id": 154013,
            "topicId": 3557,
            "replyTo": null,
            "message": "ありがとうございます。グリーン系で統一してみました。",
            "account": {
                "id": 2492,
                "name": "hayashi",
                "fullName": "hayashi",
                "suggestion": "hayashi",
                "imageUrl": "https://typetalk.com/accounts/2492/profile_image.png?t=1453871047310",
                "isBot": false,
                "createdAt": "2016-01-26T08:19:01Z",
                "updatedAt": "2018-11-06T01:48:44Z"
            },
            "mention": null,
            "attachments": [],
            "likes": [],
            "talks": [
                {
                    "id": 2178,
                    "topicId": 3557,
                    "name": "文字サイズの変更",
                    "suggestion": "文字サイズの変更",
                    "createdAt": "2017-12-18T07:13:48Z",
                    "updatedAt": "2018-10-25T01:35:25Z",
                    "backlog": {
                        "spaceUrl": "https://xxxx.backlog.jp",
                        "issueKey": "KAIZEN-16"
                    }
                }
            ],
            "links": [],
            "createdAt": "2016-02-05T00:13:44Z",
            "updatedAt": "2016-02-05T00:13:44Z"
        },
        {
            "id": 154015,
            "topicId": 3557,
            "replyTo": 154014,
            "message": "確かに読みにくいですね。もう少しサイズを大きくしてみます:smile:",
            "account": {
                "id": 2490,
                "name": "tabata",
                "fullName": "Shinsuke Tabata",
                "suggestion": "Shinsuke Tabata",
                "imageUrl": "https://typetalk.com/accounts/2490/profile_image.png?t=1453863100614",
                "isBot": false,
                "createdAt": "2016-01-26T08:18:29Z",
                "updatedAt": "2018-11-06T01:48:44Z"
            },
            "mention": null,
            "attachments": [],
            "likes": [],
            "talks": [
                {
                    "id": 2178,
                    "topicId": 3557,
                    "name": "文字サイズの変更",
                    "suggestion": "文字サイズの変更",
                    "createdAt": "2017-12-18T07:13:48Z",
                    "updatedAt": "2018-10-25T01:35:25Z",
                    "backlog": {
                        "spaceUrl": "https://xxxx.backlog.jp",
                        "issueKey": "KAIZEN-16"
                    }
                }
            ],
            "links": [],
            "createdAt": "2016-02-05T01:13:44Z",
            "updatedAt": "2016-02-05T01:13:44Z"
        },
        {
            "id": 162075,
            "topicId": 3557,
            "replyTo": null,
            "message": "課題を作成しました。 KAIZEN-16 文字サイズの変更",
            "account": {
                "id": 2488,
                "name": "masa",
                "fullName": "masa",
                "suggestion": "masa",
                "imageUrl": "https://typetalk.com/accounts/2488/profile_image.png?t=1453868694472",
                "isBot": false,
                "createdAt": "2016-01-26T08:17:39Z",
                "updatedAt": "2018-11-06T02:16:42Z"
            },
            "mention": null,
            "attachments": [],
            "likes": [],
            "talks": [
                {
                    "id": 2178,
                    "topicId": 3557,
                    "name": "文字サイズの変更",
                    "suggestion": "文字サイズの変更",
                    "createdAt": "2017-12-18T07:13:48Z",
                    "updatedAt": "2018-10-25T01:35:25Z",
                    "backlog": {
                        "spaceUrl": "https://xxxx.backlog.jp",
                        "issueKey": "KAIZEN-16"
                    }
                }
            ],
            "links": [],
            "createdAt": "2017-12-18T07:14:08Z",
            "updatedAt": "2017-12-18T07:14:08Z"
        },
        {
            "id": 167569,
            "topicId": 3557,
            "replyTo": null,
            "message": "@masa あの件、どうなりました?",
            "account": {
                "id": 2489,
                "name": "agata",
                "fullName": "Toshitaka Agata",
                "suggestion": "Toshitaka Agata",
                "imageUrl": "https://typetalk.com/accounts/2489/profile_image.png?t=1453867573519",
                "isBot": false,
                "createdAt": "2016-01-26T08:18:12Z",
                "updatedAt": "2018-11-06T01:48:44Z"
            },
            "mention": {
                "id": 16817,
                "readAt": "2018-10-11T09:47:49Z"
            },
            "attachments": [],
            "likes": [],
            "talks": [],
            "links": [],
            "createdAt": "2018-10-11T09:47:34Z",
            "updatedAt": "2018-10-11T09:47:34Z"
        },
        {
            "id": 167570,
            "topicId": 3557,
            "replyTo": 167569,
            "message": "もし、進捗あったら教えてください",
            "account": {
                "id": 2489,
                "name": "agata",
                "fullName": "Toshitaka Agata",
                "suggestion": "Toshitaka Agata",
                "imageUrl": "https://typetalk.com/accounts/2489/profile_image.png?t=1453867573519",
                "isBot": false,
                "createdAt": "2016-01-26T08:18:12Z",
                "updatedAt": "2018-11-06T01:48:44Z"
            },
            "mention": null,
            "attachments": [],
            "likes": [],
            "talks": [],
            "links": [],
            "createdAt": "2018-10-11T09:47:40Z",
            "updatedAt": "2018-10-11T09:47:40Z"
        },
        {
            "id": 167571,
            "topicId": 3557,
            "replyTo": null,
            "message": "@all 来週水曜日 19:00〜21:00 イベントスペースにて UI/UX 勉強会を開催します!",
            "account": {
                "id": 2491,
                "name": "nakamura",
                "fullName": "ikikko",
                "suggestion": "ikikko",
                "imageUrl": "https://typetalk.com/accounts/2491/profile_image.png?t=1453873118352",
                "isBot": false,
                "createdAt": "2016-01-26T08:18:46Z",
                "updatedAt": "2018-11-06T01:48:44Z"
            },
            "mention": {
                "id": 16820,
                "readAt": "2018-10-11T09:49:30Z"
            },
            "attachments": [],
            "likes": [],
            "talks": [],
            "links": [],
            "createdAt": "2018-10-11T09:49:24Z",
            "updatedAt": "2018-10-11T09:49:24Z"
        }
    ],
    "hasNext": false,
    "exceedsAttachmentLimit": false,
    "onboarding": null,
    "isPostEnabled": true,
    "myTopic": {
        "id": 13040,
        "topicId": 3557,
        "accountId": 2488,
        "kind": "grouped",
        "topicGroupId": 1703,
        "exTopicGroupId": null,
        "orderNo": 0,
        "createdAt": "2018-10-29T05:45:54Z",
        "updatedAt": "2018-10-30T06:19:58Z"
    }
}

レスポンスのフォーマットは全てJSONです。GETメソッドはETagに対応しているので、If-None-Match ヘッダを付けて送ると、変更がない場合は304を返します。日付のフォーマットは ISO 8601 で、UTC です。 (例 : 2014-01-09T06:20:08Z )