API reference
SEO
Get the SEO audit
/api/v1/seo/audit
The latest SEO audit of your site: a 0-100 score, each failing check with its severity and first items, and your focus keywords. Answers 404 until an audit has run: run one with `seo.audit_run`.
- Scope
- MCP tool
- seo_audit
- Changes data
- No
Parameters
No parameters.
Request
curl "https://3commerce.com/api/v1/seo/audit" \
-H "Authorization: Bearer 3c_live_…"Response
{
"score": 82,
"ran_at": "2026-11-24T09:12:00.000Z",
"scanned": {
"products": 48,
"collections": 6,
"pages": 3,
"posts": 4
},
"issues": [
{
"id": "description-missing",
"severity": "warning",
"count": 5,
"population": 61,
"items": [
{
"kind": "product",
"id": "5f1c…",
"label": "Merino crew sweater",
"href": "/dashboard/products/5f1c…"
}
]
}
],
"keywords": []
}Run the SEO audit
/api/v1/seo/audit
Audits every product, collection, page, and post on your site now, keeps the result as the latest, and returns it.
- Scope
- MCP tool
- seo_audit_run
- Changes data
- Yes
Parameters
No parameters.
Request
curl -X POST "https://3commerce.com/api/v1/seo/audit" \
-H "Authorization: Bearer 3c_live_…" \
-H "Content-Type: application/json" \
-d '{}'Response
{
"score": 82,
"ran_at": "2026-11-24T09:12:00.000Z",
"scanned": {
"products": 48,
"collections": 6,
"pages": 3,
"posts": 4
},
"issues": [
{
"id": "description-missing",
"severity": "warning",
"count": 5,
"population": 61,
"items": [
{
"kind": "product",
"id": "5f1c…",
"label": "Merino crew sweater",
"href": "/dashboard/products/5f1c…"
}
]
}
],
"keywords": []
}List redirects
/api/v1/seo/redirects
The redirects your site serves, newest first, with how often each was followed. A site holds up to 2000.
- Scope
- MCP tool
- seo_redirects_list
- Changes data
- No
Parameters
| Name | Type | Description |
|---|---|---|
limitquery · optional | integer | Results per page, 1-100 |
cursorquery · optional | string | The `next_cursor` from the previous page |
Request
curl "https://3commerce.com/api/v1/seo/redirects" \
-H "Authorization: Bearer 3c_live_…"Response
{
"data": [
{
"id": "8c2e4a1f-6b3d-4e5a-9f7c-1d2b3a4c5e6f",
"from_path": "/products/old-sweater",
"to_path": "/products/merino-crew",
"status": 301,
"hits": 12,
"last_hit_at": "2026-11-24T18:30:00.000Z",
"created_at": "2026-11-02T10:00:00.000Z"
}
],
"next_cursor": null
}Add a redirect
/api/v1/seo/redirects
Sends an old address on your site to a new one. Paths are normalized as the dashboard stores them. An old address that already redirects answers 409 `already_exists`.
- Scope
- MCP tool
- seo_redirects_create
- Changes data
- Yes
- Idempotency-Key
- Accepted
Parameters
| Name | Type | Description |
|---|---|---|
from_pathbody · required | string | The old path, e.g. `/products/old-name` |
to_pathbody · required | string | The path or full URL to send it to |
statusbody · optional | number | 301 for permanent, 302 for temporary |
Request
curl -X POST "https://3commerce.com/api/v1/seo/redirects" \
-H "Authorization: Bearer 3c_live_…" \
-H "Content-Type: application/json" \
-d '{
"from_path": "Example from path",
"to_path": "Example to path"
}'Response
{
"id": "8c2e4a1f-6b3d-4e5a-9f7c-1d2b3a4c5e6f",
"from_path": "/products/old-sweater",
"to_path": "/products/merino-crew",
"status": 301,
"hits": 0,
"last_hit_at": null,
"created_at": "2026-11-02T10:00:00.000Z"
}Delete a redirect
/api/v1/seo/redirects/{id}
Stops redirecting an old address. The old address answers 404 again unless something else serves it.
- Scope
- MCP tool
- seo_redirects_delete
- Changes data
- Yes
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string (uuid) | The resource id |
Request
curl -X DELETE "https://3commerce.com/api/v1/seo/redirects/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c" \
-H "Authorization: Bearer 3c_live_…"Response
{
"ok": true
}