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 profile
curl \
  -H "X-VTEX-API-AppKey: $API_KEY" \
  https://vtex.local/api/storage/profile-system/profiles/{profileId}
Get prospect
curl \
  -H "X-VTEX-API-AppKey: $API_KEY" \
  https://vtex.local/api/storage/profile-system/prospects/{prospectId}
Get unmasked profile
curl \
  -H "X-VTEX-API-AppKey: $API_KEY" \
  https://vtex.local/api/storage/profile-system/profiles/{profileId}/unmask
SDK on GitHub 📄 API Docs
SDK
ads-js
TypeScript
API
vtex.local
vtex.local:Profile-System
At a glance
Language TypeScript
Endpoints27
Base URLhttps://vtex.local
✓ Official