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

# Add a URL to crawl

> Points the knowledge base at a public page. http/https only; private, loopback and link-local addresses are refused (SSRF). The page is fetched on a queue.



## OpenAPI

````yaml /openapi.json post /v1/knowledge/urls
openapi: 3.0.0
info:
  title: wondeya Developer API
  description: >-
    The public REST API for building on wondeya: agents, projects, pages,
    knowledge, assets, brand, theme, usage, retrieval and chat, authenticated by
    a workspace API key (`Authorization: Bearer wdy_live_…`).
  version: 0.1.0
  contact:
    name: wondeya
    url: https://wondeya.com
    email: team@wondeya.com
  license:
    name: Proprietary
    url: https://wondeya.com/terms
servers:
  - url: https://api.wondeya.com
    description: Production
  - url: http://localhost:8080
    description: Development
security: []
tags:
  - name: Identity
  - name: Agents
  - name: Projects
  - name: Pages
  - name: Knowledge
  - name: Assets
  - name: Brand
  - name: Usage
  - name: Chat
paths:
  /v1/knowledge/urls:
    post:
      tags:
        - Knowledge
      summary: Add a URL to crawl
      description: >-
        Points the knowledge base at a public page. http/https only; private,
        loopback and link-local addresses are refused (SSRF). The page is
        fetched on a queue.
      operationId: PublicKnowledgeController_addUrl_v1
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddKnowledgeUrlDto'
      responses:
        '202':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicKnowledgeSourceDto'
        '400':
          description: '`wondeya.knowledge.url_not_allowed`'
      security:
        - api-key: []
components:
  schemas:
    AddKnowledgeUrlDto:
      type: object
      properties:
        url:
          type: string
          maxLength: 2048
          description: Absolute http/https URL.
        syncTtlMinutes:
          type: number
          minimum: 60
          description: >-
            Minutes before the page is crawled again. Floored at 60 (SECURITY.md
            invariant 5): a shorter cadence is a denial-of-wallet vector, not a
            freshness need.
        topics:
          maxItems: 12
          description: Lowercase topic tags. An empty list makes the source universal.
          type: array
          items:
            type: array
        agentId:
          type: object
          nullable: true
      required:
        - url
    PublicKnowledgeSourceDto:
      type: object
      properties:
        id:
          type: string
        agentId:
          type: object
          nullable: true
          description: null = the workspace pool.
        kind:
          type: string
          description: '`upload`, `url` or `claim`.'
        title:
          type: string
        status:
          type: string
          description: '`pending`, `ready`, `failed`, …'
        error:
          type: string
          description: A machine-readable failure code.
        lang:
          type: string
          description: The canonical corpus language of the chunks.
        sourceLang:
          type: string
        translated:
          type: boolean
        topics:
          type: array
          items:
            type: string
        fileName:
          type: string
        contentType:
          type: string
        byteSize:
          type: number
        url:
          type: string
        resolvedUrl:
          type: string
        lastFetchedAt:
          type: string
          format: date-time
        syncTtlMinutes:
          type: number
        nextSyncAt:
          type: string
          format: date-time
        claim:
          $ref: '#/components/schemas/PublicKnowledgeClaimDto'
        chunkCount:
          type: number
        tokenCount:
          type: number
        summary:
          type: string
          description: 'The index card: one English line naming what this covers.'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - agentId
        - kind
        - title
        - status
        - lang
        - translated
        - topics
        - chunkCount
        - tokenCount
        - summary
        - createdAt
        - updatedAt
    PublicKnowledgeClaimDto:
      type: object
      properties:
        es:
          type: string
        en:
          type: string
      required:
        - es
        - en
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: opaque
      type: http
      description: >-
        A workspace API key: wdy_live_… / wdy_test_…. Created at POST
        /workspaces/{tenantId}/keys and shown exactly once.

````