---
title: "Scrape or delete a single page"
method: POST
path: "/webhooks/scrape"
tags: ["Scrape"]
---

# Scrape or delete a single page

`POST /webhooks/scrape`

## Request

- Base URL: `https://api.savanto.ai`
- URL: `https://api.savanto.ai/webhooks/scrape`
- Auth: HTTP bearer

Scrape a URL and index it into the knowledge base, or delete a previously scraped page.

## Request body

- ScrapeRequest
  - `url` string, required
  - `action` 'scrape' | 'delete'
  - `source` string
  - `workspaceId` string

## Response `200`

Scrape result

- object
  - `data` object, required
    - `action` string, required
    - `url` string, required
    - `title` string
    - `pageId` string

## Other responses

- `400`: Validation error
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `409`: Conflict
- `413`: Payload too large
- `429`: Rate limit exceeded

---

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