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

# List a defendant's processes

> Every case in your portfolio linked to one defendant, most recently active first. An unknown id returns an empty list rather than a 404.



## OpenAPI

````yaml legal/openapi.json GET /v1/defendants/{defendant_id}/processes
openapi: 3.1.0
info:
  title: Croma Legal API
  version: 1.0.0
  description: >-
    Read-only access to your organization's litigation portfolio in Croma Legal:
    cases (processes), actuaciones, defendants, portfolio analytics and bulk
    exports. Every request is scoped to the organization that owns the API key.
servers:
  - url: https://api.legal.usecroma.com
security:
  - bearerAuth: []
tags:
  - name: Processes
    description: Cases in your portfolio.
  - name: Actuaciones
    description: Court filings and events across every case.
  - name: Defendants
    description: Demandados and the cases linked to them.
  - name: Analytics
    description: Aggregates over the portfolio.
  - name: Exports
    description: Bulk CSV / JSONL files.
  - name: Jobs
    description: Async job status.
paths:
  /v1/defendants/{defendant_id}/processes:
    get:
      tags:
        - Defendants
      summary: List a defendant's processes
      description: >-
        Every case in your portfolio linked to one defendant, most recently
        active first. An unknown id returns an empty list rather than a 404.
      operationId: list_defendant_processes
      parameters:
        - name: defendant_id
          in: path
          required: true
          description: >-
            The defendant's internal `id` (UUID) from `GET /v1/defendants`, or
            the `defendant_uuid` of a process.
          schema:
            type: string
          example: 9a8b7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d
      responses:
        '200':
          description: Successful response
          headers:
            X-Request-Id:
              description: >-
                Unique id for the request (req_…). Include it in support
                reports.
              schema:
                type: string
            X-RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests left before you are throttled.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: ISO 8601 timestamp when the window resets.
              schema:
                type: string
                format: date-time
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/DefendantProcess'
              example:
                data:
                  - id: 3f1c2a44-9b1e-4c5a-8d2f-6a7b8c9d0e1f
                    registration_number: '11001400300120240012300'
                    plaintiff_name: BANCO EJEMPLO S.A.
                    defendant_name: CLIENTE DE EJEMPLO
                    office: JUZGADO 001 CIVIL MUNICIPAL DE BOGOTÁ
                    registration_date: '2024-03-12T00:00:00.000Z'
                    last_action_date: '2026-08-18 00:00:00'
        '401':
          description: Missing or invalid API key
          headers:
            X-Request-Id:
              description: >-
                Unique id for the request (req_…). Include it in support
                reports.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                error:
                  type: authentication_error
                  code: invalid_api_key
                  message: Invalid or missing API key.
        '429':
          description: Rate limit exceeded
          headers:
            X-Request-Id:
              description: >-
                Unique id for the request (req_…). Include it in support
                reports.
              schema:
                type: string
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                error:
                  type: rate_limit_error
                  code: rate_limited
                  message: Rate limit exceeded. Try again in 42 seconds.
        '500':
          description: Unexpected internal error
          headers:
            X-Request-Id:
              description: >-
                Unique id for the request (req_…). Include it in support
                reports.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                error:
                  type: api_error
                  code: internal_error
                  message: >-
                    Internal error. Contact support with the X-Request-Id if it
                    persists.
      security:
        - bearerAuth: []
      externalDocs:
        description: Guide and examples
        url: https://docs.usecroma.com/legal/api-reference/overview
components:
  schemas:
    DefendantProcess:
      type: object
      required:
        - id
        - registration_number
      properties:
        id:
          type: string
          format: uuid
        registration_number:
          type: string
        plaintiff_name:
          type:
            - string
            - 'null'
        defendant_name:
          type:
            - string
            - 'null'
        office:
          type:
            - string
            - 'null'
        registration_date:
          type:
            - string
            - 'null'
          format: date-time
          description: Filing date (fecha de radicación).
        last_action_date:
          type:
            - string
            - 'null'
          description: >-
            Judicial date of the most recent actuación (`YYYY-MM-DD HH:MM:SS`),
            or `null` when the case has no dated actuaciones.
    ApiError:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - code
            - message
          properties:
            type:
              type: string
              description: >-
                Broad category: invalid_request_error, authentication_error,
                not_found_error, rate_limit_error, api_error.
            code:
              type: string
              description: Machine-readable specific code.
            message:
              type: string
              description: Human-readable explanation, safe to surface in UI.
            param:
              type: string
              description: Field that triggered the error. Present on validation errors.
            details:
              type: object
              description: Free-form structured detail.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Use Authorization: Bearer YOUR_API_KEY'

````