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

# Submit a party's statement

> Claimants file one claim and, after the response, one reply. Respondents file one response while the case awaits it.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/cases/{id}/statements
openapi: 3.1.0
info:
  title: Rubicourt API
  version: 1.0.0
  description: >-
    Two services. Resolve (/v1/policy, /v1/disputes): your platform's own
    dispute decisions, made by AI under your written policy, with your staff
    reviewing the cases the policy routes to them; binding only inside your
    platform. Arbitration (/v1/cases): binding small-claims arbitration, where a
    licensed attorney arbitrator decides every case and signs every award, with
    one appeal to a different arbitrator. A Resolve dispute can escalate to
    arbitration when your policy enables it. Authenticate with your platform API
    key as a bearer token. Rubicourt is a private arbitration provider, not a
    government court.
  contact:
    email: hello@rubicourt.com
servers:
  - url: https://api.rubicourt.com
security:
  - apiKey: []
tags:
  - name: Resolve
    description: >-
      Your platform's own dispute decisions, made by AI under your written
      policy.
  - name: Arbitration
    description: >-
      Binding small-claims arbitration decided by a licensed attorney
      arbitrator.
  - name: Webhooks
    description: Signed events Rubicourt sends to your webhook URL.
paths:
  /v1/cases/{id}/statements:
    post:
      tags:
        - Arbitration
      summary: Submit a party's statement
      description: >-
        Claimants file one claim and, after the response, one reply. Respondents
        file one response while the case awaits it.
      operationId: submitStatement
      parameters:
        - name: id
          in: path
          required: true
          description: Case id or reference (RC-2026-000123).
          schema:
            type: string
        - name: Idempotency-Key
          in: header
          required: false
          description: >-
            Retry safely: a repeat with the same key and body returns the first
            response. The same key with a different body returns 422.
          schema:
            type: string
            maxLength: 255
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - party_id
                - kind
                - text
              properties:
                party_id:
                  type: string
                kind:
                  type: string
                  enum:
                    - claim
                    - response
                    - reply
                text:
                  type: string
                  maxLength: 10000
      responses:
        '201':
          description: Statement filed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Statement'
        '400':
          description: The request is malformed or a field is invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such case for this platform.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: That statement is not open at this stage, or the record is closed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Statement:
      type: object
      properties:
        id:
          type: string
        party_id:
          type: string
        kind:
          type: string
        submitted_at:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            details: {}
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: Your platform API key.

````

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