API Reference
v1.0.0 · Every platform capability is available over REST — the dashboard is just another client. AI agents should start from the machine-readable OpenAPI document.
Agent quickstart
- Create an account (
POST /api/auth/signup) or have a human sign in once. - Mint an API key:
POST /api/organizations/{orgId}/api-keys— the rawas_…token is returned exactly once. - Authenticate every call with
Authorization: Bearer as_…. - The two Amazon OAuth consents (
/api/amazon/ads/connect,/api/amazon/sp/connect) need a human in the browser — hand the URL off, everything else is programmatic. - Drive the loop: trigger syncs, read
/performanceand/actions/pending, approve via/actions/bulk-approve, measure with/outcomes.
curl https://agenticsellar.com/api/organizations/$ORG_ID/actions/pending \ -H "Authorization: Bearer $API_KEY"
System
/api/healthPublicLiveness and dependency check
/api/openapi.jsonPublicThis API description as an OpenAPI 3.1 document
Auth
/api/auth/signupPublicCreate an account and organization
/api/auth/accept-invitePublicValidate a team invite token
/api/auth/accept-invitePublicAccept an invite and create the member account
API keys
/api/organizations/{orgId}/api-keysAPI key / sessionList API keys (prefix + metadata only)
/api/organizations/{orgId}/api-keysAPI key / sessionMint a new API key — the raw token is returned once
/api/organizations/{orgId}/api-keys/{keyId}API key / sessionRevoke an API key immediately
Amazon connections
/api/amazon/ads/connectAPI key / sessionStart the Amazon Ads OAuth flow (browser redirect)
/api/amazon/sp/connectAPI key / sessionStart the Selling Partner API OAuth flow (browser redirect)
/api/amazon/ads/pending-profilesOAuth session cookiesList advertising profiles available to the pending OAuth grant
/api/amazon/ads/selectOAuth session cookiesBind selected advertising profiles; triggers the 93-day backfill
/api/organizations/{orgId}/credentials/amazonAPI key / sessionList connected Amazon profiles and their connection status
/api/organizations/{orgId}/credentials/amazon/{credentialId}API key / sessionDisconnect one Amazon profile binding
/api/organizations/{orgId}/ads-profilesAPI key / sessionList every profile the stored Ads token can access
/api/organizations/{orgId}/ads-profilesAPI key / sessionSwitch the bound advertising profile
LLM
/api/organizations/{orgId}/credentials/llmAPI key / sessionGet active LLM provider metadata (never the key)
/api/organizations/{orgId}/credentials/llmAPI key / sessionStore the org's LLM API key (BYOLLM)
Agent
/api/organizations/{orgId}/agent/configAPI key / sessionGet agent goals, tier, guardrails, and kill-switch state
/api/organizations/{orgId}/agent/configAPI key / sessionUpdate agent configuration (partial)
/api/organizations/{orgId}/agent/permissionsAPI key / sessionList per-category action permission levels
/api/organizations/{orgId}/agent/permissionsAPI key / sessionSet the permission level for one action category
Actions
/api/organizations/{orgId}/actions/pendingAPI key / sessionList actions waiting for approval
/api/organizations/{orgId}/actions/{actionId}/approveAPI key / sessionApprove and synchronously execute one action against Amazon
/api/organizations/{orgId}/actions/{actionId}/rejectAPI key / sessionReject a pending action
/api/organizations/{orgId}/actions/bulk-approveAPI key / sessionApprove and execute up to 100 actions; per-action results
/api/organizations/{orgId}/negationsAPI key / sessionQueue negative-keyword proposals for a wasted search term
Data
/api/organizations/{orgId}/exploreAPI key / sessionUnified data explorer — commercial and advertising levels
/api/organizations/{orgId}/objects/{objectType}/{objectId}/activityAPI key / sessionGlass-box timeline: agent actions + measured outcomes for one object
/api/organizations/{orgId}/productsAPI key / sessionPer-ASIN subject tree — ad spend/sales/ACoS, plus sales, TACoS, profit, margin
/api/organizations/{orgId}/payoutsAPI key / sessionSettlement summaries, newest first — the cash that actually landed
/api/organizations/{orgId}/feesAPI key / sessionFee line items — the granular breakdown behind the Profit number
/api/organizations/{orgId}/costsAPI key / sessionProduct COGS rows — per-unit cost elements with effective-date periods
/api/organizations/{orgId}/costsAPI key / sessionBulk-upsert product COGS rows (the CSV-import path)
/api/organizations/{orgId}/costsAPI key / sessionDelete one product COGS row
/api/organizations/{orgId}/expensesAPI key / sessionIndirect expenses — seller-entered costs Amazon doesn't know about
/api/organizations/{orgId}/expensesAPI key / sessionCreate or update (with body.id) an indirect expense
/api/organizations/{orgId}/expensesAPI key / sessionDelete one indirect expense
/api/organizations/{orgId}/campaignsAPI key / sessionList synced campaigns (SP, SB, and SD)
/api/organizations/{orgId}/campaigns/{campaignId}API key / sessionCampaign drill-down: series, summary, top keywords
/api/organizations/{orgId}/performanceAPI key / sessionOrg-wide daily performance series + summary
/api/organizations/{orgId}/outcomesAPI key / sessionAgent impact: measured 14-day pre/post action outcomes
/api/organizations/{orgId}/audit-logAPI key / sessionList audit log entries (every agent decision + execution)
/api/organizations/{orgId}/audit-log/exportAPI key / sessionCSV export of the full audit log
/api/organizations/{orgId}/exportAPI key / sessionGDPR/CCPA full data export (JSON)
Explore
/api/organizations/{orgId}/campaigns/{campaignId}/productsAPI key / sessionProducts a campaign advertises — the inverse of /explore?asin=
Organization
/api/organizations/{orgId}API key / sessionOrg profile + preferences (reporting currency, plan)
/api/organizations/{orgId}API key / sessionUpdate org preferences — currently displayCurrency
/api/organizations/{orgId}/invitesAPI key / sessionList team invites
/api/organizations/{orgId}/invitesAPI key / sessionInvite a teammate (owner only)
/api/organizations/{orgId}API key / sessionGDPR deletion: nuke credentials now, cascade after 30 days
Sync
/api/organizations/{orgId}/syncAPI key / sessionList data sync jobs and their status
/api/organizations/{orgId}/syncAPI key / sessionTrigger a manual sync (campaigns, performance, search terms, order metrics)
Billing
/api/billing/checkoutAPI key / sessionCreate a Stripe Checkout session
/api/billing/portalAPI key / sessionCreate a Stripe customer portal session
Notes: admin endpoints (/api/admin/*) require a staff session and are not listed. Webhook receivers (Stripe, Inngest) authenticate by signature. Rate limits are per-organization; 429 responses include Retry-After.