> ## Documentation Index
> Fetch the complete documentation index at: https://docs.causeloop.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Validate Data Source Endpoint

> B6 — synchronous in this wave (fast at pilot sizes): parses the
uploaded xlsx/csv, materializes issue-envelope@1 objects (rule C-2),
writes envelopes.jsonl + the validation profile, ingests + forges each
envelope into a real `issues` row (FIX 1, full-stack drill), flips
client status to data_validated.



## OpenAPI

````yaml /openapi.json post /v1/provisioning/client-profiles/{client_id}/data-sources/{ds_id}/validate
openapi: 3.1.0
info:
  description: Causeloop Platform Backend
  title: Causeloop API
  version: 1.0.0
servers: []
security: []
paths:
  /v1/provisioning/client-profiles/{client_id}/data-sources/{ds_id}/validate:
    post:
      tags:
        - provisioning-portal
      summary: Validate Data Source Endpoint
      description: |-
        B6 — synchronous in this wave (fast at pilot sizes): parses the
        uploaded xlsx/csv, materializes issue-envelope@1 objects (rule C-2),
        writes envelopes.jsonl + the validation profile, ingests + forges each
        envelope into a real `issues` row (FIX 1, full-stack drill), flips
        client status to data_validated.
      operationId: >-
        validate_data_source_endpoint_v1_provisioning_client_profiles__client_id__data_sources__ds_id__validate_post
      parameters:
        - in: path
          name: client_id
          required: true
          schema:
            title: Client Id
            type: string
        - in: path
          name: ds_id
          required: true
          schema:
            title: Ds Id
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ValidateDataSourceRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    ValidateDataSourceRequest:
      properties:
        schema_map:
          additionalProperties:
            type: string
          title: Schema Map
          type: object
      required:
        - schema_map
      title: ValidateDataSourceRequest
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http

````