---
title: "Process URLs into training data"
method: POST
path: "/training-data/url/process"
tags: ["Training Data"]
---

# Process URLs into training data

`POST /training-data/url/process`

## Request

- Base URL: `https://api.weav.com/v1`
- URL: `https://api.weav.com/v1/training-data/url/process`
- Auth: HTTP bearer

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

## Request body

- object
  - `urls` string[], required
  - `title` string, nullable
  - `agent_ids` string[], nullable
  - `auto_resync` boolean, nullable

## Response `201`

URLs accepted for processing

- object
  - `success` boolean
  - `training_data` object
    - `id` string, uuid
    - `title` string
    - `slug` string
    - `status` string
  - `urls_count` integer

## Other responses

- `401`: Unauthorized
- `422`: Validation or business rule failure (for example, NO_URLS_PROVIDED)
- `500`: Failed to process URLs

---

[API](https://skmtc.dev/weav/apis/weav-api.md) · [All operations](https://skmtc.dev/weav/apis/weav-api/llms.txt) · [OpenAPI document](https://skmtc.dev/weav/apis/weav-api/revisions/15970f126c0e?raw)
