Skip to content
Help Center

API access: read your Commander numbers from your own tools ​

Settings > Connections > API lets you create read-only API tokens. A tool that holds a token can read your store's Commander numbers, such as vital signs, profit and insights. The page is called API access.

Problem and intended user ​

The ecommerce manager (the person who runs the store) wants Commander numbers in a place that Commander does not own: a spreadsheet, a dashboard or a weekly script. Without a way to read them, the numbers get copied by hand. Each copy is out of date the next day.

Current workflow ​

A merchant opens Commander, a Shopify admin report or an analytics tool, copies the figures into a spreadsheet, and repeats this each week. A team with a developer may build its own export from Shopify data. Commander figures, such as profit and customer groups, have no other way out.

Prerequisites ​

  • A tool that can send a web request with a header, such as a script, a spreadsheet add-on or a dashboard tool.
  • Demo Mode off, to create a token that works. Demo Mode shows sample tokens only.

How Commander works ​

Commander answers each call with the data behind the matching page. A call runs no AI. Some of what it returns, such as the executive summary, is text that AI wrote earlier, so check a figure on the Commander page before you act on it.

A token is a secret, like a password. It can read data and nothing else. A request that tries to change anything is refused. A token reaches only the endpoints that the How to call the API card lists.

Create an API token ​

WARNING

Commander shows the full token once. Copy it before you leave the page. If you lose it, revoke the token and create a new one.

  1. Go to Settings > Connections > API.
  2. Under Create an API token, enter a Token name, for example Weekly report sheet. The name is required.
  3. Choose Store access:
    • This store only binds the token to the store you have open. It is the default.
    • All my stores reads every store you can open. Each call says which store it means.
  4. Choose Expires: 30 days, 90 days, 180 days or 1 year. The form starts at 90 days. Every token expires.
  5. Select Create token.
  6. Under Copy your token now, select Copy token and save it in your tool or a password manager. Then select I’ve saved it.

The page shows how many active tokens you can keep. Give each tool its own token, so you can revoke one without breaking the others.

Call the API ​

Send the token in an Authorization header. The How to call the API card shows an example with your store filled in. Select Copy example to copy it.

curl -H "Authorization: Bearer nxs_api_…" \
  "https://<host>/api/v1/dashboard/vital-signs?websiteId=<store id>&period=30d"

Replace nxs_api_… with your token. Every call is a GET request.

Run a tool ​

A tool returns the same answer as the matching Commander tool in your AI assistant. Use one when you want more than the endpoints return, such as customer groups, lifetime value, ads or competitors.

  1. Open the Tools you can run card on Settings > Connections > API. It groups the tools. Select a group to see its tools.
  2. Pick a tool. Send a GET request to the tools address, followed by the tool name. Pass its arguments in the query.
  3. If the token has All stores access, add websiteId to the query to say which store you mean. A token for one store runs on that store.
curl -H "Authorization: Bearer nxs_api_…" \
  "https://<host>/api/v1/tools/nexus_dashboard_vital_signs?period=30d"

Select Copy tool example to copy it. A tool never changes your data and never spends your credits.

Customer lists, NPS answers and retention plays come back with names and emails anonymized, as tokens such as [CUSTOMER_001]. A tool that writes data or costs money, such as running an analysis or creating an audience, is not available over the API.

Revoke a token ​

Select Revoke on the token, then Revoke token in the window. Anything that uses the token stops working at once. You cannot undo this.

Exact output ​

The output is a token and the data your tool reads with it.

Your tokens lists each token with its name, the start of the token, its store access, when it was created, when it was last used and when it expires. A token that no call has used reads Never used.

LabelMeaning
Store: nameThe token reads that one store.
All storesThe token reads every store you can open.
Expires in N daysThe token is close to its end date.
ExpiredThe token no longer works.
RevokedYou removed the token.

The How to call the API card lists the endpoints a token can call. Each one reads data: vital signs, customer groups by RFM score, the product quadrant, ad spend, profit pulse, yesterday’s results, top findings, store KPIs, default KPI targets, home numbers, the list of insights with its summary, executive summary, product filters and single insights, and the Media Audit, Creative Audit and Growth Audit reports, as a list or one full report. These calls take websiteId in the query to say which store you mean.

The Tools you can run card lists each tool by name, with one line on what it answers. The groups are Stores, Insights, Audits, Dashboard, Analysis, Customers and lifetime value, Products, Ads, Competitors, Benchmarks and Audiences.

What to do with it ​

What you seeDecision or actionOwner
Copy your token nowSelect Copy token and store it in your tool or a password manager.Ecommerce manager
A token labeled Expires in N daysCreate a new token, give it to the tool, then revoke the old one.Ecommerce manager
A token labeled Expired or Never usedSelect Revoke if you no longer need it.Ecommerce manager
A token labeled All storesCheck that the tool needs every store. If not, create a token for one store.Ecommerce manager

Expected value and measurement ​

API access can help you keep Commander numbers in the tool you already use, without copying them by hand. It can also help you keep access narrow, because each token has its own store access and end date.

To check that a tool works, read Your tokens on Settings > Connections > API. It shows when each token was last used. Never used means the tool has not reached Commander yet.

Commander has no page that measures time saved, so the effect cannot be isolated.

Limitations and exceptions ​

  • A token reads data only. A call that tries to create, change or delete anything is refused.
  • A token reaches only the endpoints that the How to call the API card lists, and the tools that the Tools you can run card lists. Any other address is refused.
  • A tool answers like the same tool in your AI assistant. Tools that write data, start paid work or use AI are not available over the API.
  • A token never reaches another person’s stores. With All my stores, it reaches only the stores you can open. If you lose access to a store, the token stops reading it.
  • A token stops working when it expires, when you revoke it, or when your account is no longer active.
  • A limit applies to active tokens. When you reach it, the page says You have reached the limit of active tokens. Revoke one you no longer use, then try again.
  • Other messages: Enter a name so you can tell your tokens apart., We couldn’t create the token. Try again., We couldn’t revoke the token. Try again. and We couldn’t load your tokens. Select Try again or reload the page.
  • Demo Mode shows two sample tokens. A token you create there is a sample and does not work. Commander says so under API access and under the token.

Commander is built by Omniconvert.