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

# Image analysis feedback

> Sends [feedback](/en/api-reference/concepts#feedback) on a classification returned by [`POST /analyze/v1/image`](/api-reference/analyze/analyze-an-image) that you judge incorrect for a given image, with the classifications you would have expected instead.

Send the exact analyze request body you initially submitted in `analyzeRequest`. This will allow Bodyguard to replicate the analysis you referenced in your feedback and potentially enhance it based on your context.

Send your feedback the same way you sent the image:

- **By URL:** an `application/json` body, with your analyze request in `analyzeRequest`.
- **By bytes:** a `multipart/form-data` body. Send each field of your analyze request as a form field prefixed with `analyzeRequest.`, with the image file in `analyzeRequest.imageData`. The other feedback fields are sent as form fields.

Before diving in, we recommend reading the [image taxonomy](/en/documentation/taxonomy/image-classifications) to understand the classifications you can add or remove.




## OpenAPI

````yaml /openapi/feedback.openapi.yaml post /feedback/v1/image
openapi: 3.1.0
info:
  title: Bodyguard Feedback API
  version: 1.0.0
servers:
  - url: https://api.bodyguard.ai
security:
  - ApiKeyAuth: []
tags:
  - name: Feedback
    description: Classification feedback endpoints.
paths:
  /feedback/v1/image:
    post:
      tags:
        - Feedback
      summary: Image analysis feedback
      description: >
        Sends [feedback](/en/api-reference/concepts#feedback) on a
        classification returned by [`POST
        /analyze/v1/image`](/api-reference/analyze/analyze-an-image) that you
        judge incorrect for a given image, with the classifications you would
        have expected instead.


        Send the exact analyze request body you initially submitted in
        `analyzeRequest`. This will allow Bodyguard to replicate the analysis
        you referenced in your feedback and potentially enhance it based on your
        context.


        Send your feedback the same way you sent the image:


        - **By URL:** an `application/json` body, with your analyze request in
        `analyzeRequest`.

        - **By bytes:** a `multipart/form-data` body. Send each field of your
        analyze request as a form field prefixed with `analyzeRequest.`, with
        the image file in `analyzeRequest.imageData`. The other feedback fields
        are sent as form fields.


        Before diving in, we recommend reading the [image
        taxonomy](/en/documentation/taxonomy/image-classifications) to
        understand the classifications you can add or remove.
      operationId: bodyguard.feedback.v1.CreateImageFeedback
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/bodyguard.feedback.v1.CreateImageFeedbackRequest
            examples:
              falsePositive:
                summary: Remove a classification that does not apply
                value:
                  analyzeRequest:
                    channelId: <your-channel-id>
                    publishedAt: '2026-04-23T10:30:00.000Z'
                    imageUrl: https://cdn.example.com/uploads/photo.jpg
                  classificationsToRemove:
                    - PARTIAL_NUDITY
                  notes: Swimwear on a beach, not nudity.
                  confidence: VERY_HIGH
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/bodyguard.feedback.v1.CreateImageFeedbackMultipartRequest
            examples:
              falsePositiveFile:
                summary: Remove a classification on an image file
                value:
                  analyzeRequest.channelId: <your-channel-id>
                  analyzeRequest.publishedAt: '2026-04-23T10:30:00.000Z'
                  classificationsToRemove:
                    - PARTIAL_NUDITY
                  notes: Swimwear on a beach, not nudity.
                  confidence: VERY_HIGH
      responses:
        '200':
          description: Feedback recorded.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/bodyguard.feedback.v1.CreateImageFeedbackResponse
              examples:
                recorded:
                  summary: Feedback recorded
                  value:
                    id: 018f3b05-4d80-7b19-a6c2-71e4f0d8b331
components:
  schemas:
    bodyguard.feedback.v1.CreateImageFeedbackRequest:
      type: object
      required:
        - analyzeRequest
      description: >-
        Feedback on an image analysis. Provide at least one of
        `classificationsToAdd`, `classificationsToRemove`, or `notes` — a
        request with none of the three is considered invalid.
      properties:
        analyzeRequest:
          $ref: '#/components/schemas/bodyguard.analyze.v1.AnalyzeImageRequest'
          description: >-
            The analyze request body you originally sent to `POST
            /analyze/v1/image`. Send it unchanged so Bodyguard can identify the
            exact analysis your feedback refers to. It already carries the
            [channel](/en/api-reference/concepts#channel) the image belongs to.
            If you analyzed the image by bytes, send your feedback as
            `multipart/form-data` instead.
        classificationsToRemove:
          type: array
          description: >-
            Classifications Bodyguard returned that you judge do not apply to
            this content. See the [image
            taxonomy](/en/documentation/taxonomy/image-classifications) for the
            full list.
          items:
            type: string
          example:
            - PARTIAL_NUDITY
        classificationsToAdd:
          type: array
          description: >-
            Classifications you judge apply to this content but that Bodyguard
            did not return. See the [image
            taxonomy](/en/documentation/taxonomy/image-classifications) for the
            full list.
          items:
            type: string
        ocrIssue:
          type: boolean
          description: >-
            Whether there is an issue with OCR or not. Can be omitted if your
            feedback does not concern OCR at all.
        notes:
          type: string
          description: >-
            Notes will help explain why you judge the content differently from
            the classification received. They help Bodyguard's moderation team
            understand your feedback and can lead to a quicker edit. Note-only
            feedback is valid and will be reviewed by our team.
        confidence:
          $ref: '#/components/schemas/bodyguard.feedback.v1.Feedback.Confidence'
    bodyguard.feedback.v1.CreateImageFeedbackMultipartRequest:
      type: object
      required:
        - analyzeRequest.channelId
        - analyzeRequest.imageData
      description: >-
        Feedback on an image analyzed by bytes, sent as `multipart/form-data`.
        Provide at least one of `classificationsToAdd`,
        `classificationsToRemove`, or `notes` — a request with none of the three
        is considered invalid.
      properties:
        analyzeRequest.channelId:
          type: string
          description: >-
            The `channelId` you sent in your analyze request. Identifier of the
            [channel](/en/api-reference/concepts#channel) the image belongs to.
        analyzeRequest.publishedAt:
          type: string
          format: date-time
          description: >-
            The `publishedAt` you sent in your analyze request. [Publication
            date](/en/api-reference/concepts#publication-date-publishedat) of
            the image.
        analyzeRequest.imageData:
          type: string
          format: binary
          description: The image file you sent in your analyze request.
        classificationsToRemove:
          type: array
          description: >-
            Classifications Bodyguard returned that you judge do not apply to
            this content. See the [image
            taxonomy](/en/documentation/taxonomy/image-classifications) for the
            full list.
          items:
            type: string
        classificationsToAdd:
          type: array
          description: >-
            Classifications you judge apply to this content but that Bodyguard
            did not return. See the [image
            taxonomy](/en/documentation/taxonomy/image-classifications) for the
            full list.
          items:
            type: string
        ocrIssue:
          type: boolean
          description: >-
            Whether there is an issue with OCR or not. Can be omitted if your
            feedback does not concern OCR at all.
        notes:
          type: string
          description: >-
            Notes will help explain why you judge the content differently from
            the classification received. They help Bodyguard's moderation team
            understand your feedback and can lead to a quicker edit. Note-only
            feedback is valid and will be reviewed by our team.
        confidence:
          $ref: '#/components/schemas/bodyguard.feedback.v1.Feedback.Confidence'
    bodyguard.feedback.v1.CreateImageFeedbackResponse:
      type: object
      required:
        - id
      properties:
        id:
          type: string
          format: uuid
          description: Bodyguard's identifier for this feedback.
    bodyguard.analyze.v1.AnalyzeImageRequest:
      type: object
      required:
        - channelId
      properties:
        channelId:
          type: string
          description: >-
            Identifier of the [channel](/en/api-reference/concepts#channel) the
            image belongs to. Provided by Bodyguard.
        publishedAt:
          type: string
          format: date-time
          description: >-
            [Publication
            date](/en/api-reference/concepts#publication-date-publishedat) of
            the image.
        imageUrl:
          type: string
          format: uri
          description: >-
            Public URL of the image that was analyzed, sent in an
            `application/json` body. Only one of `imageUrl` or `imageData` can
            be provided.
        imageData:
          type: string
          format: binary
          description: >-
            The image file that was analyzed, sent as `analyzeRequest.imageData`
            in a `multipart/form-data` body. Only one of `imageUrl` or
            `imageData` can be provided.
        post:
          $ref: '#/components/schemas/bodyguard.analyze.v1.AnalyzeTextRequest.Post'
        author:
          $ref: '#/components/schemas/bodyguard.analyze.v1.AnalyzeTextRequest.Author'
      oneOf:
        - required:
            - imageUrl
        - required:
            - imageData
    bodyguard.feedback.v1.Feedback.Confidence:
      type: string
      description: >-
        Confidence scores reflect a feedback source's reliability based on its
        moderation expertise, helping Bodyguard prioritize feedback. Scores
        range from `LOW` to `VERY_HIGH`: end-user reports may be `LOW`, while
        Trust & Safety feedback may be `VERY_HIGH`. This field is optional —
        omit it if reliability can't be assessed.
      enum:
        - LOW
        - MEDIUM
        - HIGH
        - VERY_HIGH
    bodyguard.analyze.v1.AnalyzeTextRequest.Post:
      type: object
      description: >-
        Metadata about the post the analyzed content belongs to, as sent in the
        original analyze request.
      properties:
        title:
          type: string
          maxLength: 2048
          description: >-
            Title or short description of the post. Can be omitted or left
            empty, in which case `reference` is required.
        reference:
          type: string
          maxLength: 256
          description: >-
            Your own stable identifier for this post. Required if `title` is
            omitted or empty.
        publishedAt:
          type: string
          format: date-time
          description: >-
            [Publication
            date](/en/api-reference/concepts#publication-date-publishedat) of
            the post.
        permalink:
          type: string
          format: uri
          description: Public URL of the post.
        countryCodes:
          type: array
          description: >-
            Countries the post is aimed at, as uppercase ISO 3166-1 alpha-2
            codes (e.g. `US`, `FR`). A post can target several countries. This
            information will help Bodyguard adapt its moderation rules to the
            cultural and linguistic context of each country. A word can be an
            insult in one country and a neutral adjective in another. Including
            the country codes offers the context necessary for more accurate
            content moderation.
          items:
            type: string
            minLength: 2
            maxLength: 2
          example:
            - US
            - CA
      anyOf:
        - required:
            - title
        - required:
            - reference
    bodyguard.analyze.v1.AnalyzeTextRequest.Author:
      type: object
      description: >-
        Metadata about the author of the content, as sent in the original
        analyze request.
      properties:
        username:
          type: string
          maxLength: 255
          description: >-
            Display name / username of the author. Can be omitted or left empty,
            in which case `reference` is required.
        reference:
          type: string
          maxLength: 256
          description: >-
            Your own stable identifier for this author. Required if `username`
            is omitted or empty.
        permalink:
          type: string
          format: uri
          description: Public URL of the author's profile.
        profilePictureUrl:
          type: string
          format: uri
          description: URL of the author's profile picture.
        countryCode:
          type: string
          minLength: 2
          maxLength: 2
          description: >-
            Country the author is located in, as an uppercase ISO 3166-1 alpha-2
            code (e.g. `US`, `FR`). This information will help Bodyguard adapt
            its moderation rules to the cultural and linguistic context of each
            country. A word can be an insult in one country and a neutral
            adjective in another. Including the country code offers the context
            necessary for more accurate content moderation.
          example: US
      anyOf:
        - required:
            - username
        - required:
            - reference
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      x-default: ApiKey <your-api-key>
      description: |
        API key authentication. Provide your key in the `Authorization`
        header with the `ApiKey` scheme:
        ```
        Authorization: ApiKey <your-api-key>
        ```

````

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