---
title: "toggle reaction"
method: POST
path: "/api/reactions/toggle"
tags: ["reactions"]
---

# toggle reaction

`POST /api/reactions/toggle`

This endpoint allows the client to toggle the user's reaction to a specified reactable (eg, Article, Comment, or User). For examples:
        * "Like"ing an Article will create a new "like" Reaction from the user for that Articles
        * "Like"ing that Article a second time will remove the "like" from the user

## Query parameters

- `category` 'like' | 'readinglist' | 'unicorn', required
- `reactable_id` integer, required
- `reactable_type` 'Comment' | 'Article' | 'User', required

## Response `200`

successful

## Other responses

- `401` — unauthorized

## Changes

- **2023-01-10** (v1) `754f8b25f815` — 3 breaking, 3 info
  - removed the enum value `exploding_head` from the `query` request parameter `category`
  - removed the enum value `fire` from the `query` request parameter `category`
  - removed the enum value `raised_hands` from the `query` request parameter `category`
  - added the new enum value `readinglist` to the `query` request parameter `category`
  - …2 more

[Change history](https://skmtc.dev/forem/apis/forem-api-v1/changes/api/reactions/toggle/post.md)

---

[API](https://skmtc.dev/forem/apis/forem-api-v1.md) · [All operations](https://skmtc.dev/forem/apis/forem-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/forem/forem-api-v1/revisions/754f8b25f815/schema)
