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

# Scan Content Source

> Scan a content-source URL for the SMMT content-driven onboarding step.

Returns the detected source type, the distinct tags available (for the
include-tag dropdown), and up to 5 sample items so the wizard can preview
"we found these". Owner-scoped + flag-gated; the scanner SSRF-validates the
URL before any network fetch and never raises (a fetch/SSRF failure surfaces
on ``error`` with an empty result so the wizard falls back to manual entry).



## OpenAPI

````yaml /openapi.json post /api/v1/teams/{team_id}/content-sources/scan
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/teams/{team_id}/content-sources/scan:
    post:
      tags:
        - Team Onboarding
      summary: Scan Content Source
      description: >-
        Scan a content-source URL for the SMMT content-driven onboarding step.


        Returns the detected source type, the distinct tags available (for the

        include-tag dropdown), and up to 5 sample items so the wizard can
        preview

        "we found these". Owner-scoped + flag-gated; the scanner SSRF-validates
        the

        URL before any network fetch and never raises (a fetch/SSRF failure
        surfaces

        on ``error`` with an empty result so the wizard falls back to manual
        entry).
      operationId: scan_content_source_api_v1_teams__team_id__content_sources_scan_post
      parameters:
        - name: team_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Team Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContentSourceScanRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentSourceScanResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ContentSourceScanRequest:
      properties:
        url:
          type: string
          maxLength: 2048
          minLength: 1
          title: Url
      type: object
      required:
        - url
      title: ContentSourceScanRequest
      description: Scan a content-source URL during SMMT content-driven onboarding.
    ContentSourceScanResponse:
      properties:
        source_type:
          type: string
          enum:
            - rss
            - html
            - youtube
            - unknown
          title: Source Type
        available_tags:
          items:
            type: string
          type: array
          title: Available Tags
        sample_items:
          items:
            $ref: '#/components/schemas/ContentSourceScanSampleItem'
          type: array
          title: Sample Items
        total_items:
          type: integer
          minimum: 0
          title: Total Items
          default: 0
        undated_count:
          type: integer
          minimum: 0
          title: Undated Count
          default: 0
        item_dates:
          items:
            anyOf:
              - type: string
              - type: 'null'
          type: array
          title: Item Dates
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
      type: object
      required:
        - source_type
      title: ContentSourceScanResponse
      description: |-
        Compact preview returned by the scan route — feeds the include-tag
        dropdown and the "we found these" sample list in the onboarding wizard.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ContentSourceScanSampleItem:
      properties:
        title:
          type: string
          title: Title
        url:
          type: string
          title: Url
        published_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Published At
        tags:
          items:
            type: string
          type: array
          title: Tags
        media_type:
          type: string
          title: Media Type
          default: article
      type: object
      required:
        - title
        - url
      title: ContentSourceScanSampleItem
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````