---
title: "Scrape Website"
method: POST
path: "/scrape/website"
---

# Scrape Website

`POST /scrape/website`

## Request

- Base URL: `https://api.phonely.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.phonely.ai/scrape/website`
- Auth: none declared. Required headers: `authorization`

Scrape a single URL and save it to the agent's knowledge base.

Returns the persisted website ID, name, and an AI-generated summary.
Uses Firecrawl caching (maxAge) to avoid redundant fetches.

## Headers

- `authorization` string, required

## Request body

- ScrapeWebsiteRequest
  - `url` string, required
  - `agentId` string, required
  - `lastUpdatedBy` string, required
  - `maxAge` integer

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/phonely/apis/phonely-api.md) - [All operations](https://skmtc.dev/phonely/apis/phonely-api/llms.txt) - [OpenAPI document](https://skmtc.dev/phonely/apis/phonely-api/revisions/9bfd5599d479?raw)
