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

# Import source URL

> Import source knowledge from a public web page.

# Import Source URL

Import source knowledge from a public web page.

Use this for published docs, help center articles, product pages, or other
public source material that should inform evaluation questions.

## Endpoint

```http theme={null}
POST /api/agents/{id}/import-url
```

## Authentication

Send your platform API key in the `x-api-key` header.

## Path Parameters

| Name | Type           | Description          |
| ---- | -------------- | -------------------- |
| `id` | `string<uuid>` | Evaluation agent ID. |

## Request Body

```json theme={null}
{
  "url": "https://example.com/refund-policy"
}
```

## Success Response

Returns `200 OK` with a summary of extracted article content and stored
knowledge.


## OpenAPI

````yaml post /api/agents/{id}/import-url
openapi: 3.0.3
info:
  title: Rippletide Agent Evaluation API
  description: >-
    Public API for evaluation agents, test prompts, test results, and knowledge
    imports
  version: 1.0.0
  contact:
    name: Rippletide API Support
servers:
  - url: https://agent-evalserver-production.up.railway.app
    description: Production server
  - url: http://localhost:3001
    description: Development server
security: []
paths:
  /api/agents/{id}/import-url:
    post:
      tags:
        - Knowledge Import
      summary: Import source URL
      description: >-
        Import source knowledge from a public web page so Rippletide can create
        evaluation material. Use this for published docs, help center articles,
        or product pages.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Evaluation agent ID.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportUrlRequest'
            examples:
              url:
                summary: Import a public web page
                value:
                  url: https://example.com/refund-policy
      responses:
        '200':
          description: Knowledge imported successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportUrlResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Could not extract useful content
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ImportUrlRequest:
      type: object
      description: Import source knowledge from a public web page.
      properties:
        url:
          type: string
          format: uri
          description: Public HTTPS URL to process.
          example: https://example.com/refund-policy
      required:
        - url
    ImportUrlResponse:
      type: object
      description: Summary of the source URL import.
      properties:
        success:
          type: boolean
          example: true
        message:
          type: string
          example: Knowledge imported successfully
        article:
          type: object
          properties:
            url:
              type: string
              example: https://example.com/refund-policy
            title:
              type: string
              example: Refund Policy
            summary:
              type: string
              example: Policy details for customer refunds.
            wordCount:
              type: integer
              example: 1200
            chunkCount:
              type: integer
              example: 8
            preview:
              type: string
              example: Customers can request a refund within 30 days...
        knowledge:
          type: object
          properties:
            qaPairsStored:
              type: integer
              example: 6
            usedDefaultFallback:
              type: boolean
              example: false
    Error:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        details:
          type: string
          nullable: true
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Platform API key for authenticated account-level API access

````