Quickstart
Install the autopto SDK and initialize it with your API key.
npm install @autopto/sdk
import { autopto } from "@autopto/sdk";
const autopto = new autopto({
apiKey: process.env.autopto_API_KEY
});Create a site
const site = await autopto.sites.create({
domain: "customer.com",
name: "Customer Website"
});Run a visibility scan
const scan = await autopto.visibility.scan({
siteId: site.id,
bots: ["gptbot", "claudebot", "perplexitybot"]
});Deploy optimization
await autopto.optimizations.deploy({
siteId: site.id,
mode: "managed",
whiteLabel: true
});