The storefront persona enables you to manage your storefront, inventory sources (agent registration), billing, readiness, and notifications on the Scope3 Agentic Platform.
import { Scope3Client } from 'scope3';
const client = new Scope3Client({
apiKey: process.env.SCOPE3_API_KEY!,
persona: 'storefront',
});Manage your storefront.
const sf = await client.storefront.get();const sf = await client.storefront.create({
platformId: 'my-platform',
name: 'My Storefront',
});await client.storefront.update({
name: 'Updated Name',
});await client.storefront.delete();Register and manage inventory sources (agents).
const sources = await client.inventorySources.list();const source = await client.inventorySources.get('source-123');const source = await client.inventorySources.create({
sourceId: 'my-sales-agent',
name: 'My Sales Agent',
executionType: 'agent',
type: 'SALES',
endpointUrl: 'https://my-agent.example.com/mcp',
protocol: 'MCP',
authenticationType: 'API_KEY',
auth: { type: 'bearer', token: 'my-api-key' },
});await client.inventorySources.update('source-123', {
name: 'Updated Source Name',
});await client.inventorySources.delete('source-123');List and manage agents (read-only discovery).
const agents = await client.agents.list();const agent = await client.agents.get('agent-123');Check your storefront's readiness status.
const readiness = await client.readiness.check();Manage Stripe Connect billing integration.
const billing = await client.billing.get();const connect = await client.billing.connect();const status = await client.billing.status();const url = await client.billing.onboardingUrl();View and manage notifications.
const notifications = await client.notifications.list();await client.notifications.markAsRead('notification-123');await client.notifications.acknowledge('notification-123');await client.notifications.markAllAsRead();