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

# Consejo de Estado Processes

> Search Colombian contentious-administrative processes across the Consejo de Estado and every Tribunal and Juzgado Administrativo. Search by party name, radicado, or process class, scoped to a corporación. Returns process metadata (radicado, corporación, ponente, class, filing date, parties, subject, whether it is still active).



## OpenAPI

````yaml /api-reference/openapi.json post /co/samai/processes/v1
openapi: 3.1.0
info:
  title: Croma Marketplace API
  version: 1.0.0
  description: >-
    Government-data APIs for Colombia, Peru, Mexico, 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/samai/processes/v1:
    post:
      tags:
        - Colombia
        - SAMAI / Consejo de Estado
      summary: Consejo de Estado Processes
      description: >-
        Search Colombian contentious-administrative processes across the Consejo
        de Estado and every Tribunal and Juzgado Administrativo. Search by party
        name, radicado, or process class, scoped to a corporación. Returns
        process metadata (radicado, corporación, ponente, class, filing date,
        parties, subject, whether it is still active).
      operationId: samai_processes
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - query
              properties:
                search_type:
                  type: string
                  enum:
                    - radicado
                    - clase
                    - parte
                  default: parte
                  description: >-
                    Search by `parte` (party name), `radicado` (case number), or
                    `clase` (process class).
                query:
                  type: string
                  minLength: 2
                  maxLength: 200
                  description: >-
                    The value to search for: a party name (`parte`), a radicado,
                    or a process class.
                corporacion:
                  type: string
                  default: ''
                  description: >-
                    Corporación (despacho) code to scope the search, e.g.
                    `1100103` for the Consejo de Estado. Required for
                    party/class searches; for a radicado search it is inferred
                    when omitted. List codes with the corporaciones catalog.
                section:
                  type: string
                  maxLength: 20
                  default: ''
                  description: Optional sección (chamber) code to narrow the search.
                from_date:
                  type: string
                  format: date
                  default: ''
                  description: Optional date filter in yyyy-mm-dd format.
                to_date:
                  type: string
                  format: date
                  default: ''
                  description: Optional date filter in yyyy-mm-dd format.
                page:
                  type: integer
                  minimum: 1
                  maximum: 1000
                  default: 1
                  description: 1-based page number for paginated results.
                per_page:
                  type: integer
                  minimum: 1
                  maximum: 50
                  default: 10
                  description: Results per page (1-50).
              additionalProperties: false
            example:
              search_type: parte
              query: BANCOLOMBIA
              corporacion: '1100103'
      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/SamaiProcessesResponse'
        '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'
        '502':
          description: Upstream source returned an 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://docs.usecroma.com/guides/colombia/samai
components:
  schemas:
    SamaiProcessesResponse:
      type: object
      required:
        - data
      properties:
        data:
          type: object
          required:
            - search_type
            - criterio
            - corporacion
            - total
            - total_pages
            - page
            - per_page
            - count
            - results
          properties:
            search_type:
              type: string
              enum:
                - radicado
                - clase
                - parte
            criterio:
              type: string
            corporacion:
              type: string
            total:
              type: integer
            total_pages:
              type: integer
            page:
              type: integer
            per_page:
              type: integer
            count:
              type: integer
            results:
              type: array
              items:
                $ref: '#/components/schemas/SamaiProceso'
    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.
    SamaiProceso:
      type: object
      required:
        - radicado
        - corporacion
        - ponente
        - clase
        - filing_date
        - is_current
        - internal_number
        - subject
        - plaintiff
        - defendant
        - is_private
        - guid
        - official_url
      properties:
        radicado:
          type: string
          description: 23-digit case number.
        corporacion:
          type: string
          description: Corporación (despacho) code.
        ponente:
          type:
            - string
            - 'null'
          description: Reporting magistrate.
        clase:
          type:
            - string
            - 'null'
          description: Process class / type.
        filing_date:
          type:
            - string
            - 'null'
          format: date
        is_current:
          type:
            - boolean
            - 'null'
          description: Whether the process is still active.
        internal_number:
          type:
            - string
            - 'null'
        subject:
          type:
            - string
            - 'null'
        plaintiff:
          type:
            - string
            - 'null'
        defendant:
          type:
            - string
            - 'null'
        is_private:
          type: boolean
        guid:
          type:
            - string
            - 'null'
        official_url:
          type:
            - string
            - 'null'
          format: uri
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Use Authorization: Bearer YOUR_API_KEY'

````