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

# Process URLs into training data

> Creates URL training data from the provided URLs. In production, URL processing jobs are queued and run asynchronously.



## OpenAPI

````yaml /api-reference/openapi.json post /training-data/url/process
openapi: 3.1.0
info:
  title: Weav API
  version: 1.0.0
  description: |
    Public API for Weav workspace integrations.
    Base URL is versioned under /v1 and requires bearer token authentication.
    Token abilities are enforced:
    - `external-api:read` for read endpoints
    - `external-api:write` for write endpoints
    - `external-api:write` also grants read access
servers:
  - url: https://api.weav.com/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Agents
  - name: Companies
  - name: Conversations
  - name: Customers
  - name: Messages
  - name: Training Data
  - name: Webhooks
paths:
  /training-data/url/process:
    post:
      tags:
        - Training Data
      summary: Process URLs into training data
      description: >-
        Creates URL training data from the provided URLs. In production, URL
        processing jobs are queued and run asynchronously.
      operationId: processTrainingDataUrls
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - urls
              properties:
                urls:
                  type: array
                  minItems: 1
                  items:
                    type: string
                    format: uri
                title:
                  type: string
                  nullable: true
                  maxLength: 255
                agent_ids:
                  type: array
                  items:
                    type: string
                    format: uuid
                  nullable: true
                auto_resync:
                  type: boolean
                  nullable: true
      responses:
        '201':
          description: URLs accepted for processing
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  training_data:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      title:
                        type: string
                      slug:
                        type: string
                      status:
                        type: string
                  urls_count:
                    type: integer
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          description: Validation or business rule failure (for example, NO_URLS_PROVIDED)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Processing failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          example: Error message
        code:
          type: string
          nullable: true
          example: UNAUTHENTICATED
        errors:
          type: object
          additionalProperties: true
          nullable: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Token
      description: |
        Workspace API token.
        Include abilities `external-api:read` and/or `external-api:write`.

````