# List users who reacted with a given text

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

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

Old ReactionController.userByText compatible.

## Parameters

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `targetType` | path | project \| taskComment \| noteComment \| user \| activity \| introduction | required | Type of the target the reaction is attached to. |
| `targetId` | path | integer | required | ID of the target (a project, comment, user, and so on, depending on `targetType`). |
| `text` | query | string | required | Reaction text to list the users of, for example an emoji. |

## Request

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

## Responses

- 200: Reacting users (deduped)
- 401: Authentication is required
- 403: Not a project member
- 404: Target not found

## Example response

```json
{
  "users": [
    {
      "id": 1101,
      "name": "aiko",
      "fullName": "Aiko Tanaka",
      "avatarUrl": null,
      "color": null
    }
  ]
}
```
