---
title: "Crawl Website"
method: POST
path: "/scrape/crawl-website"
---

# Crawl Website

`POST /scrape/crawl-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/crawl-website`
- Auth: none declared. Required headers: `authorization`

Legacy endpoint.  Scrapes a single URL and saves to the knowledge base.

Preserved for backward compatibility -- new integrations should use
POST /scrape/website instead.  Now delegates to Firecrawl v2 SDK and
honours the maxAge caching parameter.

## Headers

- `authorization` string, required

## Request body

- CrawlRequest
  - `url` string, required
  - `excludePaths` string[], nullable
  - `includePaths` string[], nullable
  - `maxDepth` integer, nullable
  - `limit` integer, nullable
  - `maxAge` integer, nullable
  - `agentId` string, required
  - `lastUpdatedBy` string, required

## 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)
