# リアクションの集計

`GET /api/reaction/{targetType}/{targetId}`

URL: https://repsona.com/ja/api/get-reaction-targettype-targetid

対象に付いたリアクションを、絵文字ごとの件数と自分が付けたかどうかで返します。

## パラメーター

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `targetType` | path | project \| taskComment \| noteComment \| user \| activity \| introduction | 必須 | リアクションの対象の種類です。 |
| `targetId` | path | integer | 必須 | 対象の ID です。`targetType` に応じて、プロジェクトやコメント、ユーザーなどの ID を渡します。 |

## リクエスト

```sh
curl -X GET "https://<space>.repsona.com/api/reaction/{targetType}/{targetId}" \
  -H "Authorization: Bearer $REPSONA_API_KEY"
```

## レスポンス

- 200: Reactions
- 401: Authentication is required
- 403: Not a project member
- 404: Target not found

## レスポンスの例

```json
{
  "reactions": [
    {
      "text": "👍",
      "count": 1,
      "byMe": true
    }
  ]
}
```
