One REST API for products, inventory, marketplace listings, shipments and B2B orders across Viewider. Authenticate with a Bearer machine-token and go.
curl https://api.viewider.com/externalAPI/rotateMachineToken \ -d client_id=mtok_2042e4… \ -d client_secret=••••••••
{
"status": "success",
"response": {
"access_token": "eyJ…",
"token_type": "Bearer",
"expires_in": 86400
}
}
Each integration gets a client_id + client_secret — a dedicated, scoped service credential. Keys are self-serve — create one in the API keys portal.
Exchange client_id + client_secret for a short-lived Bearer machine-token. Re-mint on a schedule or on a 401.
curl https://api.viewider.com/externalAPI/rotateMachineToken \ -d client_id=mtok_2042e4… -d client_secret=•••••••• # -> { "status":"success", "response":{ "access_token":"eyJ…", "token_type":"Bearer", "expires_in":86400 } }
Send the token as a Bearer header to any of the 97 endpoints. Every response is a JSON status envelope — always check the status field.
curl https://api.viewider.com/externalAPI/product/getProductGroupID \ -H "Authorization: Bearer $TOKEN" -d UserID=12345
Viewider ships a Model Context Protocol (MCP) server that exposes 84 tools over this same API (73 read-only + 11 write) — products, listings, orders, sales records, transactions, inventory and shipping. Write tools require a key carrying the product:write capability; read-only keys get 403 on them. Authenticate with an API key from the portal: the server mints 24-hour Bearer tokens and re-mints them automatically. The npm package is rolling out to pilot accounts.
Product groups, inventory, categories.
Cross-marketplace listing search and detail.
Seller sales records, platform transactions, export.
Inventory records, item lookup, stock history.
Labels, status, tracking checkpoints.
B2B orders, confirm and pay, shipping services.
Stores, cart, checkout, listing sourcing.
Marketplace listing config and packages.
Mint and rotate machine tokens.