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

# SECOP Processes by Entity

> List the procurement processes (SECOP II) published by one contracting entity (by NIT), optionally within a publication-date window. The audit population for an entity. Returns lean summaries (drill into one with SECOP Process by Notice). Capped at 500 results, newest first; `capped: true` flags an incomplete set.



## OpenAPI

````yaml /api-reference/openapi.json post /co/secop/processes-by-entity/v1
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/secop/processes-by-entity/v1:
    post:
      tags:
        - Colombia
        - SECOP
      summary: SECOP Processes by Entity
      description: >-
        List the procurement processes (SECOP II) published by one contracting
        entity (by NIT), optionally within a publication-date window. The audit
        population for an entity. Returns lean summaries (drill into one with
        SECOP Process by Notice). Capped at 500 results, newest first; `capped:
        true` flags an incomplete set.
      operationId: secop_processes_by_entity
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - entity_nit
              properties:
                entity_nit:
                  type: string
                  minLength: 4
                  maxLength: 15
                  pattern: ^\d{4,15}$
                  description: Colombian NIT (numeric, no verification digit). 4-15 digits.
                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.
              additionalProperties: false
            example:
              entity_nit: '899999061'
              from_date: '2026-01-01'
      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/SecopProcessSearchResponse'
        '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://usecroma.com/colombia/secop
components:
  schemas:
    SecopProcessSearchResponse:
      type: object
      required:
        - data
      properties:
        data:
          type: object
          required:
            - entity_nit
            - from_date
            - to_date
            - count
            - capped
            - processes
          properties:
            entity_nit:
              type: string
            from_date:
              type:
                - string
                - 'null'
              format: date
            to_date:
              type:
                - string
                - 'null'
              format: date
            count:
              type: integer
              description: Returned/capped count, not the true total.
            capped:
              type: boolean
              description: True when the 500-row cap was hit; results are incomplete.
            processes:
              type: array
              items:
                $ref: '#/components/schemas/SecopProcessSummary'
    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.
    SecopProcessSummary:
      type: object
      required:
        - notice_uid
        - process_id
        - name
        - entity
        - entity_nit
        - base_price
        - url
      properties:
        notice_uid:
          type:
            - string
            - 'null'
        process_id:
          type:
            - string
            - 'null'
        reference:
          type:
            - string
            - 'null'
        name:
          type:
            - string
            - 'null'
        entity:
          type:
            - string
            - 'null'
        entity_nit:
          type:
            - string
            - 'null'
        modality:
          type:
            - string
            - 'null'
        contract_type:
          type:
            - string
            - 'null'
        base_price:
          type:
            - number
            - 'null'
        phase:
          type:
            - string
            - 'null'
        procedure_status:
          type:
            - string
            - 'null'
        published_date:
          type:
            - string
            - 'null'
          format: date
        url:
          type:
            - string
            - 'null'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Use Authorization: Bearer YOUR_API_KEY'

````