> ## 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.

# Rama Judicial Cases by Radicado (Batch)

> Resolve up to 50 Colombian judicial cases by radicado in one request. Returns one result per radicado in input order, each with its own status, so a single bad radicado never fails the batch. Each item counts as one request against your quota.



## OpenAPI

````yaml /api-reference/openapi.json post /co/rama-judicial/cases-by-radicado/v1/batch
openapi: 3.1.0
info:
  title: Croma Marketplace API
  version: 1.0.0
  description: >-
    Government-data APIs for Colombia, Peru, and global web search. Croma
    normalizes public-sector data into structured JSON for product teams and AI
    agents.
servers:
  - url: https://api.croma.run
security: []
paths:
  /co/rama-judicial/cases-by-radicado/v1/batch:
    post:
      tags:
        - Colombia
        - Rama Judicial
      summary: Rama Judicial Cases by Radicado (Batch)
      description: >-
        Resolve up to 50 Colombian judicial cases by radicado in one request.
        Returns one result per radicado in input order, each with its own
        status, so a single bad radicado never fails the batch. Each item counts
        as one request against your quota.
      operationId: rama_judicial_cases_by_radicado_batch
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - items
              properties:
                items:
                  type: array
                  minItems: 1
                  maxItems: 50
                  description: >-
                    1-50 request objects, each identical to the single
                    endpoint's body. Results are returned in the same order.
                    Each item counts as one request against your quota.
                  items:
                    type: object
                    required:
                      - registration_number
                    properties:
                      registration_number:
                        type: string
                        minLength: 20
                        maxLength: 25
                        pattern: ^\d{20,25}$
                        description: 23-digit radicado (20-25 digits accepted).
                    additionalProperties: false
              additionalProperties: false
            example:
              items:
                - registration_number: '11001600001720180327700'
      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
            X-Cache:
              description: HIT or MISS. Cached hits still count against your quota.
              schema:
                type: string
                enum:
                  - HIT
                  - MISS
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RamaJudicialBatchResponse'
        '400':
          description: Invalid request body
          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'
        '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'
        '429':
          description: Rate limit exceeded
          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
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: 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'
      security:
        - bearerAuth: []
      externalDocs:
        description: Interactive documentation and examples
        url: https://usecroma.com/colombia/rama-judicial
components:
  schemas:
    RamaJudicialBatchResponse:
      type: object
      required:
        - data
      properties:
        data:
          type: object
          required:
            - results
            - summary
          properties:
            results:
              type: array
              description: >-
                One entry per input item, in input order. `data` is present when
                status=completed; `error` when status=error.
              items:
                type: object
                required:
                  - index
                  - status
                properties:
                  index:
                    type: integer
                    description: 0-based position in the request `items` array.
                  status:
                    type: string
                    enum:
                      - completed
                      - error
                  cache_hit:
                    type: boolean
                    description: Present on completed items; true when served from cache.
                  data:
                    $ref: '#/components/schemas/RamaJudicialCaseData'
                  error:
                    $ref: '#/components/schemas/BatchItemError'
            summary:
              $ref: '#/components/schemas/BatchSummary'
    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, upstream_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.
    RamaJudicialCaseData:
      type: object
      required:
        - found
        - registration_number
        - case_ids
        - primary_case
        - actions
        - pagination
      properties:
        found:
          type: boolean
          description: >-
            Whether a public case matched the radicado. When false, primary_case
            is null.
        registration_number:
          type: string
        case_ids:
          type: array
          items:
            type: integer
        primary_case:
          oneOf:
            - $ref: '#/components/schemas/RamaJudicialCase'
            - type: 'null'
        actions:
          type: array
          items:
            $ref: '#/components/schemas/RamaJudicialAction'
        pagination:
          $ref: '#/components/schemas/Pagination'
        private_only:
          type: boolean
    BatchItemError:
      type: object
      required:
        - type
        - code
        - message
      description: Per-item error envelope, same shape as the single endpoint's error.
      properties:
        type:
          type: string
        code:
          type: string
        message:
          type: string
    BatchSummary:
      type: object
      required:
        - total
        - completed
        - errors
        - cache_hits
      properties:
        total:
          type: integer
        completed:
          type: integer
        errors:
          type: integer
        cache_hits:
          type: integer
    RamaJudicialCase:
      type: object
      required:
        - id
        - connection_id
        - registration_number
        - start_date
        - last_action_date
        - court
        - department
        - parties_text
        - is_private
      properties:
        id:
          type: integer
        connection_id:
          type: integer
        registration_number:
          type: string
        start_date:
          type:
            - string
            - 'null'
          format: date
        last_action_date:
          type:
            - string
            - 'null'
          format: date
        court:
          type: string
        department:
          type: string
        parties_text:
          type: string
        is_private:
          type: boolean
    RamaJudicialAction:
      type: object
      required:
        - id
        - registration_number
        - sequence
        - action_date
        - action_type
        - note
        - start_date
        - end_date
        - registered_date
        - has_documents
      properties:
        id:
          type: integer
        registration_number:
          type: string
        sequence:
          type: integer
        action_date:
          type:
            - string
            - 'null'
          format: date
        action_type:
          type: string
        note:
          type:
            - string
            - 'null'
        start_date:
          type:
            - string
            - 'null'
          format: date
        end_date:
          type:
            - string
            - 'null'
          format: date
        registered_date:
          type:
            - string
            - 'null'
          format: date
        has_documents:
          type: boolean
    Pagination:
      type: object
      required:
        - total
        - page_size
        - total_pages
        - page
      properties:
        total:
          type: integer
        page_size:
          type: integer
        total_pages:
          type: integer
        page:
          type: integer
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Use Authorization: Bearer YOUR_API_KEY'

````