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

# Escalate a report

> Escalates a report to a target team. Records the escalation for audit; if the report is not resolved, sets status to IN_REVIEW.



## OpenAPI

````yaml /api-reference/openapi.json post /reports/{reportId}/escalate
openapi: 3.1.0
info:
  title: Whistle SDK API
  description: >-
    HTTP API for the Whistle SDK. All endpoints are authenticated via an API key
    (`wh_…`) sent as a Bearer token. The API key is org-scoped — no organization
    slug or ID is needed in the URL.


    Base URL: `https://api.kansato.com/sdk/whistle/v1`


    Local development default: `http://localhost:3001/sdk/whistle/v1`
  version: 1.0.0
servers:
  - url: https://api.kansato.com/sdk/whistle/v1
    description: Production
  - url: http://localhost:3001/sdk/whistle/v1
    description: Local development (default PORT)
security:
  - apiKey: []
tags:
  - name: Reports
    description: Create, list, and manage moderation reports.
  - name: Identities
    description: Mirror user identities from your platform.
paths:
  /reports/{reportId}/escalate:
    post:
      tags:
        - Reports
      summary: Escalate a report
      description: >-
        Escalates a report to a target team. Records the escalation for audit;
        if the report is not resolved, sets status to IN_REVIEW.
      operationId: escalateReport
      parameters:
        - name: reportId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - target
              properties:
                target:
                  type: string
                  enum:
                    - safety
                    - legal
                    - senior_moderator
      responses:
        '200':
          description: Report escalated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EscalateResponse'
        '400':
          description: Invalid escalation target
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Report not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    EscalateResponse:
      type: object
      required:
        - ok
        - reportId
      properties:
        ok:
          type: boolean
          const: true
        reportId:
          type: string
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        API key with `wh_` prefix. Send as Bearer token: `Authorization: Bearer
        wh_xxxxxxxxxxxx`

````