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

# Get the judicial-step decision

> The decision taken on this claim — through the API or by the creditor in the portal. `404` while none exists.



## OpenAPI

````yaml get /openapi/claims/{claim_id}/lawsuit-decision
openapi: 3.0.3
info:
  title: incaseof.law API
  version: 0.1.0
  description: >
    Draft OpenAPI blueprint for future implementation. Update paths as endpoints
    evolve.


    ## Webhooks


    incaseof.law can push events to a partner-controlled HTTPS endpoint

    whenever a claim's lifecycle changes. Today the single supported event

    type is `claim.collection_stage_changed`. See the **Webhooks** section

    at the bottom of this document for the payload shape, header reference,

    signature scheme and retry policy.
servers:
  - url: https://service.incaseof.law
    description: Production API
  - url: https://ico-app-staging.up.railway.app
    description: Partner sandbox (test data only, sandbox keys — see "Partner sandbox")
security:
  - bearerAuth: []
paths:
  /openapi/claims/{claim_id}/lawsuit-decision:
    get:
      tags:
        - Claims
      summary: Get the judicial-step decision
      description: >-
        The decision taken on this claim — through the API or by the creditor in
        the portal. `404` while none exists.
      parameters:
        - in: path
          name: claim_id
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: The decision
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    $ref: '#/components/schemas/LawsuitDecision'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    LawsuitDecision:
      type: object
      properties:
        claim_id:
          type: string
          format: uuid
        decision:
          type: string
          enum:
            - sue
            - decline
        decided_at:
          type: string
          format: date-time
        decided_via:
          type: string
          enum:
            - api
            - portal
          description: >-
            `api`: through an API key; `portal`: by the creditor in the
            incaseof.law portal.
        wants_lawyer:
          type: boolean
          nullable: true
        lawyer_type:
          type: string
          enum:
            - ico_network
            - wunschanwalt
          nullable: true
        streitwert:
          type: number
          description: Amount in dispute (sum of the claim's invoices), EUR
        court_fees:
          type: number
          nullable: true
          description: Estimated court fee, EUR
        lawyer_fees_net:
          type: number
          nullable: true
        lawyer_fees_gross:
          type: number
          nullable: true
  responses:
    Unauthorized:
      description: Unauthorized - Missing or invalid authentication
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                example: false
              error:
                type: string
                example: Unauthorized
              message:
                type: string
                example: Invalid or expired token
          examples:
            missingToken:
              value:
                success: false
                error: Unauthorized
                message: Missing or invalid authorization header
            expiredToken:
              value:
                success: false
                error: Unauthorized
                message: Invalid or expired token
    NotFound:
      description: Not Found - Resource does not exist
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                example: false
              error:
                type: string
                example: Not Found
              message:
                type: string
                example: Resource not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````