Using ads-js with vtex.local

TypeScript integration

✓ Official SDK
Install
npm install ads-js
Quick start
import Ads_js from 'ads-js';

const client = new Ads_js({ apiKey: "YOUR_API_KEY" });
Get all Content Types
curl \
  https://vtex.local/_v/cms/api/{builderId}/
Get all CMS pages by Content Type
curl \
  https://vtex.local/_v/cms/api/{builderId}/{content-type}
Get CMS page
curl \
  https://vtex.local/_v/cms/api/{builderId}/{content-type}/{document-id}/
SDK on GitHub 📄 API Docs
SDK
ads-js
TypeScript
API
vtex.local
vtex.local:Headless-CMS-API
At a glance
Language TypeScript
Endpoints3
Base URLhttps://vtex.local
✓ Official