> ## Documentation Index
> Fetch the complete documentation index at: https://developers.scrunch.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set Signal Reaction

> Set (or replace) the calling user's reaction on a signal. Reactions are keyed on the signal's stable `fingerprint`, so a reaction survives the nightly re-detection of the same underlying issue.

Requires a **user token** (JWT) — API keys have no user identity to attribute the reaction to and receive 403.



## OpenAPI

````yaml /api-reference/openapi.json put /{brand_id}/signals/{signal_id}/reaction
openapi: 3.1.0
info:
  title: Scrunch Data API
  version: 0.1.0
servers:
  - url: https://api.scrunchai.com/v1
security: []
paths:
  /{brand_id}/signals/{signal_id}/reaction:
    put:
      tags:
        - signals
      summary: Set Signal Reaction
      description: >-
        Set (or replace) the calling user's reaction on a signal. Reactions are
        keyed on the signal's stable `fingerprint`, so a reaction survives the
        nightly re-detection of the same underlying issue.


        Requires a **user token** (JWT) — API keys have no user identity to
        attribute the reaction to and receive 403.
      operationId: setSignalReaction
      parameters:
        - name: brand_id
          in: path
          required: true
          schema:
            type: integer
            title: Brand Id
        - name: signal_id
          in: path
          required: true
          schema:
            type: integer
            title: Signal Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/APISignalReactionUpsert'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APISignalReaction'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer:
            - query
components:
  schemas:
    APISignalReactionUpsert:
      properties:
        reaction:
          type: string
          enum:
            - useful
            - not_useful
            - dismissed
            - actioned
          title: Reaction
          description: 'Reaction to set: `useful`, `not_useful`, `dismissed`, or `actioned`.'
        reason:
          anyOf:
            - type: string
              maxLength: 2000
            - type: 'null'
          title: Reason
          description: Optional free-text reason accompanying the reaction.
      type: object
      required:
        - reaction
      title: APISignalReactionUpsert
      description: Request body for `setSignalReaction`.
    APISignalReaction:
      properties:
        user_id:
          type: integer
          title: User Id
          description: ID of the user the reaction belongs to.
        insight_id:
          type: integer
          title: Insight Id
          description: Signal ID the reaction was last set on.
        fingerprint:
          type: string
          title: Fingerprint
          description: Stable signal identity the reaction follows across re-detections.
        reaction:
          type: string
          enum:
            - useful
            - not_useful
            - dismissed
            - actioned
          title: Reaction
          description: The reaction value.
        reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason
          description: Free-text reason, when provided.
        surface:
          type: string
          enum:
            - in_app
            - email
            - slack
            - api
          title: Surface
          description: 'Where the reaction was set: `in_app`, `email`, `slack`, or `api`.'
        created_at:
          type: string
          format: date-time
          title: Created At
          description: When the reaction was first set (UTC).
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: When the reaction was last changed (UTC).
      type: object
      required:
        - user_id
        - insight_id
        - fingerprint
        - reaction
        - surface
        - created_at
        - updated_at
      title: APISignalReaction
      description: A user's reaction to a signal's stable identity.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

## Related topics

- [List Signal Reactions](/api-reference/signals/list-signal-reactions.md)
- [Clear Signal Reaction](/api-reference/signals/clear-signal-reaction.md)
- [Signals API: Detected changes in AI visibility](/api-reference/signals/overview.md)
