Blogs
Visibility
GET /blogs— PublicGET /blogs/{slug}— Public
Authentication
x-api-key: sk_eco_...GET /blogs
Returns published blog posts for content marketing and SEO surfaces.
GET /blogs/{slug}
Returns one blog post with title/content and metadata fields.
Response Fields
| Field | Type |
|---|---|
id | string |
slug | string |
title | string |
body | string? |
content | any? |
seo_title | string? |
seo_description | string? |
updated_at | string? |
cURL
curl -X GET "https://api.ecommaps.com/api/v1/storefront/blogs" \
-H "x-api-key: sk_eco_YOUR_KEY"
curl -X GET "https://api.ecommaps.com/api/v1/storefront/blogs/new-arrivals" \
-H "x-api-key: sk_eco_YOUR_KEY"SDK Example
const blogs = await ecommapsClient.store.blogs.list();
const post = await ecommapsClient.store.blogs.retrieve("new-arrivals");Error Matrix
| Status | Scenario |
|---|---|
401 | Missing/invalid API key |
404 | Blog slug not found |
500 | Datastore failure |