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

# Reject a CDSS alert

> Record the doctor's decision to reject a clinical decision support alert. The medical record is left unchanged.



## OpenAPI

````yaml /scribe-api/openapi.json post /v1/cdss/alerts/{alert_id}/reject
openapi: 3.1.0
info:
  title: Scribe Public API
  description: >-
    External-facing REST API for integrating with the Telepatia platform.
    Authenticate with API keys, set consultation context, and look up scribe
    sessions.
  version: 0.1.0
servers:
  - url: https://scribe-api.telepatia.ai
    description: Production
security:
  - BearerAuth: []
paths:
  /v1/cdss/alerts/{alert_id}/reject:
    post:
      tags:
        - CDSS
      summary: Reject a CDSS alert
      description: >-
        Record the doctor's decision to reject a clinical decision support
        alert. The medical record is left unchanged.
      operationId: api_cdss_alert_reject_v1_cdss_alerts__alert_id__reject_post
      parameters:
        - name: alert_id
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 512
            pattern: ^[A-Za-z0-9_-]+$
            description: The alert `id` returned by the medical record documents endpoint.
            examples:
              - cfa_bXJkLWFiYy0xMjMfSUJVUFJPRkVO
            title: Alert Id
          description: The alert `id` returned by the medical record documents endpoint.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CdssDecisionResponse'
              example:
                elementId: IBUPROFEN
                id: cfa_bXJkLWFiYy0xMjMfSUJVUFJPRkVO
                status: accepted
        '400':
          description: >-
            Bad Request — invalid parameters, validation failures, or missing
            fields.
          content:
            application/json:
              examples:
                parameter_missing:
                  summary: Missing required field
                  value:
                    error:
                      type: invalid_request_error
                      code: parameter_missing
                      message: name is required.
                      param: name
                parameter_invalid:
                  summary: Invalid field value
                  value:
                    error:
                      type: invalid_request_error
                      code: parameter_invalid
                      message: >-
                        idCountry must be a valid country name, ISO alpha-2, or
                        ISO alpha-3 code.
                      param: idCountry
                account_invalid:
                  summary: Invalid account
                  value:
                    error:
                      type: invalid_request_error
                      code: account_invalid
                      message: Account has no valid authId.
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized — missing or invalid API key.
          content:
            application/json:
              examples:
                authentication_required:
                  summary: Invalid or missing API key
                  value:
                    error:
                      type: authentication_error
                      code: authentication_required
                      message: Invalid API key.
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              examples:
                permission_denied:
                  summary: Caller lacks permission for this resource
                  value:
                    error:
                      type: permission_error
                      code: permission_denied
                      message: You do not have permission to access this resource.
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found — the requested resource does not exist.
          content:
            application/json:
              examples:
                resource_not_found:
                  summary: Resource not found
                  value:
                    error:
                      type: invalid_request_error
                      code: resource_not_found
                      message: No session scribe found for the given consultation ID.
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Conflict — resource already exists or is in a conflicting state.
          content:
            application/json:
              examples:
                resource_conflict:
                  summary: Resource conflict
                  value:
                    error:
                      type: invalid_request_error
                      code: resource_conflict
                      message: >-
                        consultationInternalId is already in use by a different
                        consultation.
                      param: consultationInternalId
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Service Unavailable — an external dependency is down.
          content:
            application/json:
              examples:
                service_unavailable:
                  summary: External service unavailable
                  value:
                    error:
                      type: api_error
                      code: service_unavailable
                      message: >-
                        Unable to generate verification code. Please try again
                        later.
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    CdssDecisionResponse:
      properties:
        id:
          type: string
          title: Id
          description: The alert identifier the decision was recorded for.
          examples:
            - cfa_bXJkLWFiYy0xMjMfSUJVUFJPRkVO
        elementId:
          type: string
          title: Elementid
          description: Clinical element key the alert refers to.
          examples:
            - IBUPROFEN
        status:
          type: string
          title: Status
          description: 'The recorded decision: `accepted` or `rejected`.'
          examples:
            - accepted
      type: object
      required:
        - id
        - elementId
        - status
      title: CdssDecisionResponse
      description: >-
        The decision recorded for a CDSS alert.


        A 200 means the decision is recorded. An accepted alert is applied to
        the medical

        record by a background task, so the record itself may still show its
        previous

        content immediately afterwards.
      examples:
        - elementId: IBUPROFEN
          id: cfa_bXJkLWFiYy0xMjMfSUJVUFJPRkVO
          status: accepted
    ErrorResponse:
      description: Standardized error response envelope.
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      required:
        - error
      title: ErrorResponse
      type: object
    ErrorDetail:
      description: Error detail with machine-readable codes and human-readable message.
      properties:
        type:
          description: Broad error category for high-level handling.
          examples:
            - invalid_request_error
          title: Type
          type: string
        code:
          description: Machine-readable error code. Clients should switch on this value.
          examples:
            - parameter_invalid
          title: Code
          type: string
        message:
          description: Human-readable error message ending with a period.
          examples:
            - >-
              idCountry must be a valid country name, ISO alpha-2, or ISO
              alpha-3 code.
          title: Message
          type: string
        param:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: The request field that caused the error, if applicable.
          examples:
            - idCountry
          title: Param
        details:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          default: null
          description: Optional structured, machine-readable context for the error.
          examples:
            - pendingConsultations:
                - sessionId: abc123
                  url: https://...
          title: Details
      required:
        - type
        - code
        - message
      title: ErrorDetail
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key passed as a Bearer token

````