# Crawls API (https://crawler-docs.lumen-labs.ai/docs/v2/reference/api/crawls)

> For the complete Lumen Crawler documentation index, see [llms.txt](https://crawler-docs.lumen-labs.ai/docs/llms.txt). A markdown version of any docs page is available by appending `.md` to its URL (e.g. https://crawler-docs.lumen-labs.ai/docs/v2/reference/api/crawls.md).

Create, poll, and read crawls

{/* Generated from schemas\/lumen-crawler.openapi.json. Run npm run api:generate after syncing the schema. */}

export default function Layout(props) {
  const { APIPage, OpenAPIPage } = props.components ?? {};
  // "APIPage" is the old name from v10, this allows both for backward compatibility
  const Comp = OpenAPIPage ?? APIPage;
  return (
    <>
      {props.children}
      <Comp document="schemas/lumen-crawler.openapi.json" webhooks={[]} operations={[{"path":"/crawls","method":"get"},{"path":"/crawls","method":"post"},{"path":"/crawls/{id}","method":"get"},{"path":"/crawls/{id}/pages","method":"get"},{"path":"/crawls/{id}/map","method":"get"},{"path":"/crawls/{id}/doors","method":"get"},{"path":"/crawls/{id}/cleaned","method":"get"},{"path":"/crawls/{id}/cancel","method":"post"}]} showTitle showDescription />
    </>
  );
}
