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

# Rate an activity's AI output: thumbs up or down

> Gives the AI's `sentiment`, `summary` or `action_items` on the activity a thumbs up or down from the calling person, with an optional `note`, as the activity page's buttons do; rating it again changes theirs. The team that tunes the AI reads them. A key with no person is a 403; an unknown activity is a 404.



## OpenAPI

````yaml /api/statisfy-api.openapi.json put /v1/activities/{activity_id}/feedback/{aspect}
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/activities/{activity_id}/feedback/{aspect}:
    put:
      tags:
        - activities
      summary: 'Rate an activity''s AI output: thumbs up or down'
      description: >-
        Gives the AI's `sentiment`, `summary` or `action_items` on the activity
        a thumbs up or down from the calling person, with an optional `note`, as
        the activity page's buttons do; rating it again changes theirs. The team
        that tunes the AI reads them. A key with no person is a 403; an unknown
        activity is a 404.
      operationId: activities_rate
      parameters:
        - description: >-
            The activity's id, from GET /v1/activities (a notetaker meeting's id
            is its activity id)
          in: path
          name: activity_id
          required: true
          schema:
            type: string
        - description: sentiment, summary or action_items
          in: path
          name: aspect
          required: true
          schema:
            enum:
              - sentiment
              - summary
              - action_items
            type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                note:
                  anyOf:
                    - maxLength: 2000
                      type: string
                    - type: 'null'
                  default: null
                  description: Why; kept when left out on a re-rating
                  title: Note
                rating:
                  enum:
                    - up
                    - down
                  title: Rating
                  type: string
              required:
                - rating
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RatedActivity'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    RatedActivity:
      properties:
        activity_id:
          title: Activity Id
          type: string
        aspect:
          description: 'What was rated: the AI''s sentiment, its summary, or its action items'
          enum:
            - sentiment
            - summary
            - action_items
          title: Aspect
          type: string
        note:
          default: ''
          description: What the person wrote with it
          title: Note
          type: string
        rating:
          anyOf:
            - enum:
                - up
                - down
              type: string
            - type: 'null'
          description: Thumbs up or down; null for one left neutral
          title: Rating
      required:
        - aspect
        - rating
        - activity_id
      title: RatedActivity
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.