Skip to content

API reference

SEO

Read and run the SEO audit, and manage redirects.

Get the SEO audit

GET/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
seo:read
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

200 OK
{
  "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

POST/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
seo:write
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

201 Created
{
  "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

GET/api/v1/seo/redirects

The redirects your site serves, newest first, with how often each was followed. A site holds up to 2000.

Scope
seo:read
MCP tool
seo_redirects_list
Changes data
No

Parameters

NameTypeDescription
limitquery · optionalintegerResults per page, 1-1001-100default 25
cursorquery · optionalstringThe `next_cursor` from the previous page

Request

curl "https://3commerce.com/api/v1/seo/redirects" \
  -H "Authorization: Bearer 3c_live_…"

Response

200 OK
{
  "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

POST/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
seo:write
MCP tool
seo_redirects_create
Changes data
Yes
Idempotency-Key
Accepted

Parameters

NameTypeDescription
from_pathbody · requiredstringThe old path, e.g. `/products/old-name`1-300 chars
to_pathbody · requiredstringThe path or full URL to send it to1-300 chars
statusbody · optionalnumber301 for permanent, 302 for temporarydefault 301

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

201 Created
{
  "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

DELETE/api/v1/seo/redirects/{id}

Stops redirecting an old address. The old address answers 404 again unless something else serves it.

Scope
seo:write
MCP tool
seo_redirects_delete
Changes data
Yes

Parameters

NameTypeDescription
idpath · requiredstring (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

200 OK
{
  "ok": true
}