Getting Started
Which CloudCart API to use, how to authenticate, and your first successful call in five minutes.
Welcome. This page orients you: which API fits your task, which credential it needs, and the fastest path to a first successful call.
Which API do I need?
| You want to… | Use | Credential |
|---|---|---|
| Manage store data — products, orders, customers, discounts | GraphQL Admin API | PAT |
| Build a custom storefront / mobile app | GraphQL Storefront API + Nitrogen | Storefront token |
| Quick CRUD integration, ERP sync, feeds | REST JSON:API | API key |
| React to events (new order, product change) | Webhooks | Webhook secret |
| Work from the terminal or CI | CloudCart CLI | PAT |
| Let an AI assistant write correct queries | Dev MCP Server | none (schema only) |
Rule of thumb
PAT (cc_pat_…) → GraphQL Admin API + CLI. API key → REST. Storefront token → Storefront API. Each is created in a different admin screen — the guides below show exactly where.
Five minutes to your first call
1. Create a Personal Access Token
Settings → PAT Tokens → Create Token, access level Read Only. Step-by-step with screenshots: PAT guide.
2. Call the Admin API
curl -X POST https://mystore.cloudcart.com/api/gql \
-H "Authorization: Bearer cc_pat_your_token" \
-H "Content-Type: application/json" \
-d '{"query": "{ generalSettings { siteName } }"}'{ "data": { "generalSettings": { "siteName": "My Store" } } }That's a working integration. Everything else is more fields and more queries.
3. Pick your next step
- Exploring by hand → Queries guide, then Mutations
- Working with an AI assistant → connect the Dev MCP server, then ask it for what you need in plain language
- Terminal person →
npm i -g @cloudcart/cliand the CLI quickstart - Building a storefront → Nitrogen quickstart
- REST integration → REST overview
Authentication at a glance
| Credential | Format | Created in | Used as |
|---|---|---|---|
| Personal Access Token | cc_pat_… | Settings → PAT Tokens | Authorization: Bearer … on /api/gql |
| API key | opaque string | Settings → API Keys | X-CloudCart-ApiKey: … on /api/v2/ |
| Storefront token | per-storefront | Nitrogen → Storefront Settings | X-Storefront-Access-Token: … on /api/sf |
| Nova deploy token | cc_nova_… | Nitrogen storefront creation | CLOUDCART_NOVA_TOKEN for deploys |
Details: Authentication · Rate limits