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

# Procuraduría Disciplinary Records

> Check a person or entity's Procuraduría antecedentes (disciplinary, penal, contractual, fiscal, and pérdida de investidura records via SIRI). `document_type` defaults to `CC`. `found: false` when the document isn't registered.



## OpenAPI

````yaml /api-reference/openapi.json post /co/procuraduria/disciplinary-records/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/procuraduria/disciplinary-records/v1:
    post:
      tags:
        - Colombia
        - Procuraduría
      summary: Procuraduría Disciplinary Records
      description: >-
        Check a person or entity's Procuraduría antecedentes (disciplinary,
        penal, contractual, fiscal, and pérdida de investidura records via
        SIRI). `document_type` defaults to `CC`. `found: false` when the
        document isn't registered.
      operationId: procuraduria_disciplinary_records
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - document_number
              properties:
                document_type:
                  type: string
                  enum:
                    - CC
                    - CE
                    - NIT
                    - PEP
                    - PPT
                  default: CC
                  description: Colombian document type. Defaults to `CC`.
                document_number:
                  type: string
                  minLength: 3
                  maxLength: 30
                  description: Document number (alphanumeric with hyphens allowed).
              additionalProperties: false
            example:
              document_number: '1234567890'
      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/ProcuraduriaResponse'
        '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/procuraduria
components:
  schemas:
    ProcuraduriaResponse:
      type: object
      required:
        - data
      properties:
        data:
          type: object
          required:
            - found
            - document_type
            - document_type_label
            - document_number
            - full_name
            - has_records
            - status
            - message
            - records
            - checked_at
          properties:
            found:
              type: boolean
              description: >-
                false when the document isn't registered in SIRI; other fields
                are then empty.
            document_type:
              type: string
              enum:
                - CC
                - CE
                - NIT
                - PEP
                - PPT
            document_type_label:
              type: string
            document_number:
              type: string
            full_name:
              type:
                - string
                - 'null'
            has_records:
              type: boolean
              description: >-
                true when the certificate lists antecedente sections (see
                `records`); false for 'El ciudadano no presenta antecedentes' or
                a document-state notice (read `status`).
            status:
              type: string
              description: >-
                Verbatim verdict, the antecedente sections present, or a
                document-state notice from the source.
            message:
              type: string
              description: Full plain-text result message.
            records:
              type: array
              description: >-
                Antecedente sections from the certificate, reproduced verbatim.
                Empty when the citizen has no records.
              items:
                type: object
                required:
                  - category
                  - siri
                  - tables
                properties:
                  category:
                    type: string
                  siri:
                    type:
                      - string
                      - 'null'
                  tables:
                    type: array
                    items:
                      type: object
                      required:
                        - heading
                        - columns
                        - rows
                      properties:
                        heading:
                          type: string
                        columns:
                          type: array
                          items:
                            type: string
                        rows:
                          type: array
                          items:
                            type: array
                            items:
                              type: string
            checked_at:
              type:
                - string
                - 'null'
              description: >-
                Consultation timestamp from the source (local Colombia time), or
                null if absent.
    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.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Use Authorization: Bearer YOUR_API_KEY'

````