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

# RUES Entities by Name

> Search Colombian entities in RUES (Registro Único Empresarial y Social) by name. Returns paginated records (10 per page; use `page`), each with its full registry detail.



## OpenAPI

````yaml /api-reference/openapi.json post /co/rues/entities-by-name/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/rues/entities-by-name/v1:
    post:
      tags:
        - Colombia
        - RUES
      summary: RUES Entities by Name
      description: >-
        Search Colombian entities in RUES (Registro Único Empresarial y Social)
        by name. Returns paginated records (10 per page; use `page`), each with
        its full registry detail.
      operationId: rues_entities_by_name
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  minLength: 3
                  maxLength: 200
                  description: Entity name (razón social) to search for.
                page:
                  type: integer
                  minimum: 1
                  maximum: 1000
                  default: 1
                  description: 1-based page number for paginated results.
              additionalProperties: false
            example:
              name: exito
      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/RuesEntitySearchResponse'
        '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/rues
components:
  schemas:
    RuesEntitySearchResponse:
      type: object
      required:
        - data
      properties:
        data:
          type: object
          required:
            - query
            - capped
            - entities
            - pagination
          properties:
            query:
              type: string
            capped:
              type: boolean
              description: >-
                True when the result set was truncated (too many matches; narrow
                the query).
            entities:
              type: array
              items:
                $ref: '#/components/schemas/RuesSearchEntity'
            pagination:
              $ref: '#/components/schemas/Pagination'
    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.
    RuesSearchEntity:
      description: 'A search row: the summary fields plus the full registry record.'
      allOf:
        - $ref: '#/components/schemas/RuesEntitySummary'
        - type: object
          required:
            - detail
          properties:
            detail:
              description: >-
                Full registry record for this entity, or null when not
                available.
              oneOf:
                - $ref: '#/components/schemas/RuesEntityDetail'
                - type: 'null'
    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
    RuesEntitySummary:
      type: object
      required:
        - registry_id
        - nit
        - verification_digit
        - name
        - acronym
        - chamber_code
        - chamber_name
        - registration_number
        - registration_status
        - legal_organization
        - last_renewed_year
        - category
        - document_type
      properties:
        registry_id:
          type:
            - string
            - 'null'
        nit:
          type:
            - string
            - 'null'
        verification_digit:
          type:
            - string
            - 'null'
        name:
          type:
            - string
            - 'null'
        acronym:
          type:
            - string
            - 'null'
        chamber_code:
          type:
            - string
            - 'null'
        chamber_name:
          type:
            - string
            - 'null'
        registration_number:
          type:
            - string
            - 'null'
        registration_status:
          type:
            - string
            - 'null'
        legal_organization:
          type:
            - string
            - 'null'
        last_renewed_year:
          type:
            - string
            - 'null'
        category:
          type:
            - string
            - 'null'
        document_type:
          type:
            - string
            - 'null'
    RuesEntityDetail:
      type: object
      required:
        - registry_id
        - nit
        - verification_digit
        - name
        - chamber_name
        - registration_status
        - registration_date
        - primary_activity
        - commercial_phones
        - fiscal_phones
      properties:
        registry_id:
          type:
            - string
            - 'null'
        nit:
          type:
            - string
            - 'null'
        verification_digit:
          type:
            - string
            - 'null'
        identification_class:
          type:
            - string
            - 'null'
        secondary_identification:
          type:
            - string
            - 'null'
        name:
          type:
            - string
            - 'null'
        acronym:
          type:
            - string
            - 'null'
        chamber_code:
          type:
            - string
            - 'null'
        chamber_name:
          type:
            - string
            - 'null'
        registration_number:
          type:
            - string
            - 'null'
        registration_status:
          type:
            - string
            - 'null'
        registration_category:
          type:
            - string
            - 'null'
        legal_organization:
          type:
            - string
            - 'null'
        society_type:
          type:
            - string
            - 'null'
        society_type_code:
          type:
            - string
            - 'null'
        registration_date:
          type:
            - string
            - 'null'
          format: date
        last_renewal_date:
          type:
            - string
            - 'null'
          format: date
        last_renewed_year:
          type:
            - string
            - 'null'
        expiration_date:
          type:
            - string
            - 'null'
          format: date
        cancellation_date:
          type:
            - string
            - 'null'
          format: date
        cancellation_reason:
          type:
            - string
            - 'null'
        updated_date:
          type:
            - string
            - 'null'
          format: date
        primary_activity:
          $ref: '#/components/schemas/CiiuActivity'
        secondary_activity:
          $ref: '#/components/schemas/CiiuActivity'
        ciiu_3:
          $ref: '#/components/schemas/CiiuActivity'
        ciiu_4:
          $ref: '#/components/schemas/CiiuActivity'
        commercial_address:
          type:
            - string
            - 'null'
        commercial_municipality:
          type:
            - string
            - 'null'
        commercial_phones:
          type: array
          items:
            type: string
        commercial_email:
          type:
            - string
            - 'null'
        fiscal_address:
          type:
            - string
            - 'null'
        fiscal_municipality:
          type:
            - string
            - 'null'
        fiscal_phones:
          type: array
          items:
            type: string
        fiscal_email:
          type:
            - string
            - 'null'
        is_bic:
          type:
            - boolean
            - 'null'
        is_social_enterprise:
          type:
            - boolean
            - 'null'
        is_law_1780:
          type:
            - boolean
            - 'null'
        is_transport:
          type:
            - boolean
            - 'null'
        domain_forfeiture:
          type:
            - boolean
            - 'null'
        sipref_inactivation_control:
          type:
            - boolean
            - 'null'
        certificates_sale_url:
          type:
            - string
            - 'null'
    CiiuActivity:
      type: object
      required:
        - code
        - description
      properties:
        code:
          type:
            - string
            - 'null'
        description:
          type:
            - string
            - 'null'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Use Authorization: Bearer YOUR_API_KEY'

````