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

# SAMAI Case Actions

> Everything about one case in Colombia's administrative courts (Consejo de Estado, Tribunales Administrativos, Juzgados Administrativos), by its 23-digit case number (`registration_number`): its actions (actuaciones), parties and case file. `actions` come newest first, each with its number in the file, date, name, the court's full annotation, state and how many documents it carries; `total` is the whole history and `last_action_date` its latest date, so page with `page` and `per_page` only when you need older actions. `details` is the case file's header: current office and judge, stage, appeal type, court of origin, key dates (filing, appeal, sent for ruling, ruling) and `documents_url`, the official link to the digital file. `parties` lists everyone in the case with their role, lawyers included (`Apo.Demandante`, `Apo.Demandado`). `other_instances` lists the same case in other courts (first instance, earlier appeals) with the `registration_number` and `corporacion` to read each one with this same endpoint. Leave `corporacion` empty: the court is read from the number, the court where the case was filed when it ends in 00 and the court one level up when it ends in 01 or higher (a case on appeal). `found: false` means that court does not hold the case, not that it does not exist; pass another `corporacion` (SAMAI Corporaciones lists the codes) to look elsewhere. A reserved case answers with no actions. Use SAMAI Processes to find a case by party or class first. Civil, criminal, labor and family cases are not in SAMAI: use Rama Judicial for those.



## OpenAPI

````yaml /api-reference/openapi.json post /co/samai/actions/v1
openapi: 3.1.0
info:
  title: Croma Marketplace API
  version: 1.0.0
  description: >-
    Government-data APIs for Colombia, Peru, Mexico, United States, Brazil, El
    Salvador, Bolivia, Japan, Chile, Venezuela, and Guatemala, plus global web
    search. Croma normalizes public-sector data into structured JSON for product
    teams and AI agents.


    Every operation is a POST with a JSON body and an organization API key as a
    bearer token; every operation is an idempotent lookup and accepts an
    optional `Idempotency-Key` header. Paths carry their major version (`/v1`);
    the versioning and deprecation policy, including the `Deprecation` and
    `Sunset` headers a retiring endpoint sends, is at
    https://docs.usecroma.com/versioning. Rate limits are per organization and
    reported on every response (`RateLimit-Policy`, `X-RateLimit-*`):
    https://docs.usecroma.com/rate-limits.
  termsOfService: https://usecroma.com/en/terms
  contact:
    name: Croma support
    url: https://usecroma.com/en/support
    email: support@usecroma.com
servers:
  - url: https://api.croma.run
security: []
paths:
  /co/samai/actions/v1:
    post:
      tags:
        - Colombia
        - SAMAI / Consejo de Estado
      summary: SAMAI Case Actions
      description: >-
        Everything about one case in Colombia's administrative courts (Consejo
        de Estado, Tribunales Administrativos, Juzgados Administrativos), by its
        23-digit case number (`registration_number`): its actions (actuaciones),
        parties and case file. `actions` come newest first, each with its number
        in the file, date, name, the court's full annotation, state and how many
        documents it carries; `total` is the whole history and
        `last_action_date` its latest date, so page with `page` and `per_page`
        only when you need older actions. `details` is the case file's header:
        current office and judge, stage, appeal type, court of origin, key dates
        (filing, appeal, sent for ruling, ruling) and `documents_url`, the
        official link to the digital file. `parties` lists everyone in the case
        with their role, lawyers included (`Apo.Demandante`, `Apo.Demandado`).
        `other_instances` lists the same case in other courts (first instance,
        earlier appeals) with the `registration_number` and `corporacion` to
        read each one with this same endpoint. Leave `corporacion` empty: the
        court is read from the number, the court where the case was filed when
        it ends in 00 and the court one level up when it ends in 01 or higher (a
        case on appeal). `found: false` means that court does not hold the case,
        not that it does not exist; pass another `corporacion` (SAMAI
        Corporaciones lists the codes) to look elsewhere. A reserved case
        answers with no actions. Use SAMAI Processes to find a case by party or
        class first. Civil, criminal, labor and family cases are not in SAMAI:
        use Rama Judicial for those.
      operationId: samai_actions
      parameters:
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - registration_number
              properties:
                registration_number:
                  type: string
                  pattern: ^[0-9 .-]{23,40}$
                  description: >-
                    The full 23-digit case number (radicado), with or without
                    dashes, e.g. `25000-23-41-000-2016-00521-00`.
                corporacion:
                  type: string
                  default: ''
                  description: >-
                    The court (corporación) to search in, as a 7-digit code from
                    the corporaciones catalog, e.g. `1100103` for the Consejo de
                    Estado. Required for party and class searches. For a
                    radicado search leave it empty and it is read from the case
                    number: the court where the case was filed when the number
                    ends in `00`, the court one level up when it ends in `01` or
                    higher. No results means the case is not in that court.
                page:
                  type: integer
                  minimum: 1
                  maximum: 1000
                  default: 1
                  description: 1-based page number for paginated results.
                per_page:
                  type: integer
                  minimum: 1
                  maximum: 200
                  default: 50
                  description: Actions per page (1-200), newest first.
              additionalProperties: false
            example:
              registration_number: 25000-23-41-000-2016-00521-00
              per_page: 20
      responses:
        '200':
          description: Successful response
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            Idempotency-Key:
              $ref: '#/components/headers/Idempotency-Key'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            X-Cache:
              $ref: '#/components/headers/X-Cache'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SamaiActionsResponse'
        '400':
          description: Invalid request body
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            Idempotency-Key:
              $ref: '#/components/headers/Idempotency-Key'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Missing or invalid API key
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            Idempotency-Key:
              $ref: '#/components/headers/Idempotency-Key'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Rate limit exceeded
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            Idempotency-Key:
              $ref: '#/components/headers/Idempotency-Key'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            Retry-After:
              $ref: '#/components/headers/Retry-After'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Internal error
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            Idempotency-Key:
              $ref: '#/components/headers/Idempotency-Key'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '502':
          description: Upstream source returned an error
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            Idempotency-Key:
              $ref: '#/components/headers/Idempotency-Key'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          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:
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: >-
        Optional client-chosen key for this request (any string up to 255
        characters, e.g. a UUID). Every Croma operation is an idempotent lookup:
        repeating a request with the same body returns the same result and
        creates nothing, so retrying after a timeout or network failure is
        always safe. The key is echoed back in the `Idempotency-Key` response
        header so you can correlate a retry with its first attempt. Each attempt
        that reaches the API counts against the rate limit.
      schema:
        type: string
        maxLength: 255
        example: 0f8e9a42-6b7c-4d1e-9a3f-2c5d7e8f9a0b
  headers:
    X-Request-Id:
      description: Unique id for the request (req_…). Include it in support reports.
      schema:
        type: string
    RateLimit-Policy:
      description: >-
        Quota policy for this endpoint as an IETF RateLimit-Policy structured
        field, e.g. `"default";q=100;w=86400` (100 requests per 86400-second
        window per organization). Endpoints with an extra hourly ceiling list
        both policies, e.g. `"webSearch";q=100;w=3600, "default";q=100;w=86400`.
        Present on every response, including 401 and 429.
      schema:
        type: string
        example: '"default";q=100;w=86400'
    Idempotency-Key:
      description: >-
        The `Idempotency-Key` the request carried, echoed back unchanged. Absent
        when the request sent none.
      schema:
        type: string
    Deprecation:
      description: >-
        Present only on an endpoint version scheduled for removal: the date the
        deprecation took effect (RFC 9745). A `Sunset` header and a `Link` with
        `rel="successor-version"` accompany it. Policy:
        https://docs.usecroma.com/versioning
      schema:
        type: string
        example: '@1767225600'
    Sunset:
      description: >-
        Present only on an endpoint version scheduled for removal: the date
        after which it answers 410 (RFC 8594). Announced in the changelog at
        least 90 days ahead.
      schema:
        type: string
        format: date-time
        example: Wed, 01 Apr 2026 00:00:00 GMT
    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 spend no credits, but still count toward an
        hourly ceiling.
      schema:
        type: string
        enum:
          - HIT
          - MISS
    Retry-After:
      description: Seconds to wait before retrying.
      schema:
        type: integer
  schemas:
    SamaiActionsResponse:
      type: object
      required:
        - data
      properties:
        data:
          $ref: '#/components/schemas/SamaiActionsData'
    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.
    SamaiActionsData:
      type: object
      properties:
        found:
          type: boolean
          description: >-
            Whether the court holds the case. When false, `process` is null and
            `actions` is empty: the case may be in another court.
        registration_number:
          type: string
          description: The 23-digit case number that was looked up.
        corporacion:
          type: string
          description: Corporación code of the court the case was looked up in.
        process:
          anyOf:
            - type: object
              properties:
                radicado:
                  type: string
                  description: 23-digit case number (radicado).
                corporacion:
                  type: string
                  description: Corporación (despacho) code the process belongs to.
                ponente:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: Reporting magistrate (magistrado ponente).
                clase:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    Process class / type (e.g. `Nulidad y restablecimiento del
                    derecho`).
                filing_date:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: Filing date, ISO `YYYY-MM-DD`; null when unparseable.
                is_current:
                  anyOf:
                    - type: boolean
                    - type: 'null'
                  description: Whether the process is still active.
                internal_number:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: Internal reference number the corporación assigns.
                subject:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: Subject / matter summary.
                plaintiff:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: Plaintiff party name(s).
                defendant:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: Defendant party name(s).
                is_private:
                  type: boolean
                  description: >-
                    Reserved / restricted process — party detail withheld at the
                    source.
                guid:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: Opaque detail key (radicado + corporación code).
                official_url:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: Official public detail URL; null when not provided.
              required:
                - radicado
                - corporacion
                - ponente
                - clase
                - filing_date
                - is_current
                - internal_number
                - subject
                - plaintiff
                - defendant
                - is_private
                - guid
                - official_url
            - type: 'null'
          description: >-
            The case as the court lists it: class, parties, reporting magistrate
            and official link.
        details:
          anyOf:
            - type: object
              properties:
                court:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: Name of the court that holds the case.
                office:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: The office (despacho) the case is in now.
                judge:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: The judge or magistrate who holds that office now.
                hearing_chamber:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: The chamber (sala) that hears the case.
                deciding_chamber:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: The chamber (sala) that decides it.
                process_type:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: Type of process, as the court names it (e.g. `ORDINARIO`).
                subclass:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: Subclass of the process, when the court records one.
                appeal_type:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    The appeal or remedy this instance decides (e.g. `APELACION
                    SENTENCIA`). Null in a first instance.
                nature:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: Nature of the process, when the court records one.
                stage:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    The stage the case is in (e.g. `Admisión`, `Alegatos de
                    conclusión`).
                legal_framework:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    The procedural law the case runs under, as the court codes
                    it (e.g. `L1437-2080`).
                origin_court:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    The court the case came from, as the court records it. On
                    appeal, the court whose decision is under review.
                origin_decision_date:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: Date of the decision that court sent up, ISO `YYYY-MM-DD`.
                registered_date:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: Date the court registered the case, ISO `YYYY-MM-DD`.
                filing_date:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: Date the claim was filed, ISO `YYYY-MM-DD`.
                appeal_date:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: Date the appeal was filed, ISO `YYYY-MM-DD`.
                to_ruling_date:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    Date the case went to the judge for its ruling, ISO
                    `YYYY-MM-DD`.
                ruling_date:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    Date of the ruling, ISO `YYYY-MM-DD`. Null while the case
                    has none.
                file_format:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    How the case file is kept, as the court writes it (e.g.
                    `Electrónico`, `Físico`).
                times_in_court:
                  anyOf:
                    - type: integer
                    - type: 'null'
                  description: >-
                    How many times this case has come to this court, counting
                    this one.
                documents_url:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    Official link to the case's digital file, where the court
                    lists the documents it makes public.
              required:
                - court
                - office
                - judge
                - hearing_chamber
                - deciding_chamber
                - process_type
                - subclass
                - appeal_type
                - nature
                - stage
                - legal_framework
                - origin_court
                - origin_decision_date
                - registered_date
                - filing_date
                - appeal_date
                - to_ruling_date
                - ruling_date
                - file_format
                - times_in_court
                - documents_url
            - type: 'null'
          description: >-
            The case file's header: office and judge, stage, appeal, key dates
            and the link to its digital file. Null when the case is not found or
            is reserved.
        parties:
          anyOf:
            - type: array
              items:
                type: object
                properties:
                  role:
                    anyOf:
                      - type: string
                      - type: 'null'
                    description: >-
                      The party's role, as the court writes it (e.g.
                      `Demandante`, `Apo.Demandante` for the claimant's lawyer,
                      `Demandado`, `Procurador`). Null when the court records
                      none.
                  name:
                    type: string
                    description: Name of the person or entity.
                required:
                  - role
                  - name
            - type: 'null'
          description: >-
            Everyone in the case with their role, lawyers included. Null when
            the case is not found, is reserved, or the list could not be read
            this time.
        other_instances:
          anyOf:
            - type: array
              items:
                type: object
                properties:
                  registration_number:
                    type: string
                    description: >-
                      The 23-digit case number of that instance. Pass it with
                      `corporacion` to read its actions.
                  corporacion:
                    anyOf:
                      - type: string
                      - type: 'null'
                    description: Corporación code of the court that holds that instance.
                  court:
                    anyOf:
                      - type: string
                      - type: 'null'
                    description: The court and office that hold it.
                  filing_date:
                    anyOf:
                      - type: string
                      - type: 'null'
                    description: Date that instance was filed, ISO `YYYY-MM-DD`.
                  process:
                    anyOf:
                      - type: string
                      - type: 'null'
                    description: Its class and appeal, as the court writes them.
                  subject:
                    anyOf:
                      - type: string
                      - type: 'null'
                    description: Its matter.
                required:
                  - registration_number
                  - corporacion
                  - court
                  - filing_date
                  - process
                  - subject
            - type: 'null'
          description: >-
            The same case in other courts or instances (first instance, earlier
            appeals), without this one. Null when the case is not found, is
            reserved, or the list could not be read this time.
        last_action_date:
          anyOf:
            - type: string
            - type: 'null'
          description: Date of the latest action in the whole history, ISO `YYYY-MM-DD`.
        total:
          type: integer
          description: How many actions the case holds.
        total_pages:
          type: integer
        page:
          type: integer
        per_page:
          type: integer
        count:
          type: integer
          description: How many actions this page carries.
        actions:
          type: array
          items:
            type: object
            properties:
              sequence:
                type: integer
                description: >-
                  The action's number in the case file. 1 is the first; the
                  highest is the latest.
              action_date:
                anyOf:
                  - type: string
                  - type: 'null'
                description: Date of the action, ISO `YYYY-MM-DD`.
              registered_at:
                anyOf:
                  - type: string
                  - type: 'null'
                description: When the court registered the action, ISO 8601.
              action_type:
                type: string
                description: >-
                  What the action is, as the court names it (e.g. `Sentencia`,
                  `Al despacho memorial`).
              note:
                anyOf:
                  - type: string
                  - type: 'null'
                description: The court's full annotation for the action.
              status:
                anyOf:
                  - type: string
                  - type: 'null'
                description: >-
                  State of the entry, as the court writes it (e.g. `REGISTRADA`,
                  `MODIFICADA`, `ANULADA`).
              attachments:
                type: integer
                description: How many documents the court attached to the action.
            required:
              - sequence
              - action_date
              - registered_at
              - action_type
              - note
              - status
              - attachments
          description: The actions of this page, newest first.
      required:
        - found
        - registration_number
        - corporacion
        - process
        - details
        - parties
        - other_instances
        - last_action_date
        - total
        - total_pages
        - page
        - per_page
        - count
        - actions
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Use Authorization: Bearer YOUR_API_KEY'

````

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