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

# Send case stages

> Tell Lawtte each case's current stage and staff so stage reminders built in the Agent Builder work with any case system. Send it whenever a case changes stage (for example from a Zapier "stage changed" trigger) and with status `closed` when a case closes. One case, or `{ "cases": [...] }` up to 500.

Key permission: **Read history and place calls**.



## OpenAPI

````yaml /api-reference/openapi.json post /cases
openapi: 3.1.0
info:
  title: Lawtte API
  version: 1.0.0
  description: >-
    Read your receptionist's calls, place AI calls, manage saved outbound agents
    and the Do Not Call list. The same rules as the Lawtte connector apply to
    every call.
servers:
  - url: https://www.lawtte.ai/api/v1
security:
  - connectorKey: []
paths:
  /cases:
    post:
      tags:
        - Cases
      summary: Send case stages
      description: >-
        Tell Lawtte each case's current stage and staff so stage reminders built
        in the Agent Builder work with any case system. Send it whenever a case
        changes stage (for example from a Zapier "stage changed" trigger) and
        with status `closed` when a case closes. One case, or `{ "cases": [...]
        }` up to 500.


        Key permission: **Read history and place calls**.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
                - $ref: '#/components/schemas/FeedCase'
                - type: object
                  additionalProperties: false
                  required:
                    - cases
                  properties:
                    cases:
                      type: array
                      maxItems: 500
                      items:
                        $ref: '#/components/schemas/FeedCase'
      responses:
        '200':
          description: How many were saved and closed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  saved:
                    type: integer
                  closed:
                    type: integer
        '400':
          description: Not a valid US phone number, or an invalid body.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing, wrong, revoked or expired key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The key doesn't have the permission this endpoint needs.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: More than 120 requests in a minute for this key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: A problem on Lawtte's side. Nothing was changed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    FeedCase:
      type: object
      additionalProperties: false
      required:
        - id
      properties:
        id:
          type: string
          description: Your case/matter id in your case system.
        name:
          type: string
          maxLength: 200
          description: Case name or number, shown in emails.
        client_name:
          type: string
          maxLength: 200
        stage:
          type: string
          maxLength: 120
          description: >-
            The case's CURRENT stage/phase, exactly as your system names it.
            Required unless status is closed.
        stage_entered_at:
          type: string
          format: date-time
          description: >-
            When it entered this stage. Leave it out and Lawtte uses the time it
            first sees the new stage.
        link:
          type: string
          format: uri
          description: Opens the case in your system (used in emails).
        status:
          type: string
          enum:
            - open
            - closed
          description: closed removes the case and stops its reminders.
        staff:
          type: object
          additionalProperties: false
          description: Who works the case. Stage reminders email these people.
          properties:
            attorney:
              type: object
              additionalProperties: false
              properties:
                name:
                  type: string
                  maxLength: 120
                email:
                  type: string
                  format: email
            case_manager:
              type: object
              additionalProperties: false
              properties:
                name:
                  type: string
                  maxLength: 120
                email:
                  type: string
                  format: email
            paralegal:
              type: object
              additionalProperties: false
              properties:
                name:
                  type: string
                  maxLength: 120
                email:
                  type: string
                  format: email
            lien_negotiator:
              type: object
              additionalProperties: false
              properties:
                name:
                  type: string
                  maxLength: 120
                email:
                  type: string
                  format: email
            assistant:
              type: object
              additionalProperties: false
              properties:
                name:
                  type: string
                  maxLength: 120
                email:
                  type: string
                  format: email
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - unauthorized
                - insufficient_scope
                - invalid_request
                - not_found
                - rejected
                - rate_limited
                - unavailable
                - internal_error
            message:
              type: string
  securitySchemes:
    connectorKey:
      type: http
      scheme: bearer
      description: >-
        A connector key from **Settings → AI connectors → Connector keys**:
        `Authorization: Bearer lawtte_sk_…`.

````

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