API reference
Sites
Get your site
/api/v1/site
Your hosted shop site: its subdomain and address, whether it is published and listed on the marketplace, its custom domain and verification status, and its theme, home sections, navigation, pages, and SEO settings.
- Scope
- MCP tool
- sites_get
- Changes data
- No
Parameters
No parameters.
Request
curl "https://3commerce.com/api/v1/site" \
-H "Authorization: Bearer 3c_live_…"Response
{
"subdomain": "maya",
"url": "https://maya.3commerce.com",
"published": true,
"marketplace_listed": true,
"domain": {
"domain": null,
"alias": null,
"status": "none",
"requested_at": null
},
"theme": {
"preset": "classic",
"colors": {},
"font": "satoshi",
"radius": "md"
},
"home_sections": [
{
"id": "hero-1",
"type": "hero",
"heading": "Slow-made knitwear"
}
],
"nav": {
"header": [],
"footer": []
},
"pages": [
{
"slug": "about",
"title": "About us"
}
],
"seo": {
"title": "Maya Chen knitwear",
"description": "Merino and linen, made in small runs."
},
"powered_by_hidden": false,
"updated_at": "2026-11-24T09:12:00.000Z"
}Publish or list your site
/api/v1/site
Publishes your site, or takes it down to its "coming soon" page, and lists your products on the 3Commerce marketplace or keeps them on your site only. Send either field or both. Publishing or unpublishing raises `site.published`.
- Scope
- MCP tool
- sites_update
- Changes data
- Yes
Parameters
| Name | Type | Description |
|---|---|---|
publishedbody · optional | boolean | Whether the site is live |
marketplace_listedbody · optional | boolean | Whether your products also sell on the marketplace |
Request
curl -X PATCH "https://3commerce.com/api/v1/site" \
-H "Authorization: Bearer 3c_live_…" \
-H "Content-Type: application/json" \
-d '{
"published": true,
"marketplace_listed": true
}'Response
{
"subdomain": "maya",
"url": "https://maya.3commerce.com",
"published": true,
"marketplace_listed": true,
"domain": {
"domain": null,
"alias": null,
"status": "none",
"requested_at": null
},
"theme": {
"preset": "classic",
"colors": {},
"font": "satoshi",
"radius": "md"
},
"home_sections": [
{
"id": "hero-1",
"type": "hero",
"heading": "Slow-made knitwear"
}
],
"nav": {
"header": [],
"footer": []
},
"pages": [
{
"slug": "about",
"title": "About us"
}
],
"seo": {
"title": "Maya Chen knitwear",
"description": "Merino and linen, made in small runs."
},
"powered_by_hidden": false,
"updated_at": "2026-11-24T09:12:00.000Z"
}Get your custom domain
/api/v1/site/domain
Your custom domain and its www or apex alias, its status (`none`, `pending`, `verified`, or `failed`), and the DNS records it needs, read live from Vercel. Connect a domain from the Online store page of the dashboard.
- Scope
- MCP tool
- sites_domain
- Changes data
- No
Parameters
No parameters.
Request
curl "https://3commerce.com/api/v1/site/domain" \
-H "Authorization: Bearer 3c_live_…"Response
{
"domain": "mayachen.com",
"alias": "www.mayachen.com",
"status": "pending",
"requested_at": "2026-11-24T09:12:00.000Z",
"records": [
{
"type": "A",
"name": "@",
"value": "76.76.21.21",
"host": "mayachen.com",
"done": true
},
{
"type": "CNAME",
"name": "www",
"value": "cname.vercel-dns.com",
"host": "www.mayachen.com",
"done": false
}
],
"ready": false
}Check your custom domain
/api/v1/site/domain/check
Asks Vercel to verify your custom domain now, as "Check again" does, and returns its status. A domain that had failed gets a new checking window. When it goes live, `domain.verified` is raised.
- Scope
- MCP tool
- sites_domain_check
- Changes data
- Yes
Parameters
No parameters.
Request
curl -X POST "https://3commerce.com/api/v1/site/domain/check" \
-H "Authorization: Bearer 3c_live_…" \
-H "Content-Type: application/json" \
-d '{}'Response
{
"status": "verified"
}