CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

freshstore/freshstore-site-api

Safely read and change a FreshStore affiliate site through its Site API, covering products, articles, redirects, click analytics and product feeds.

Quality

86%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Medium

Suggest reviewing before use

Overview
Quality
Evals
Security
Files

articles.mdreferences/

Articles

Scope: articles (and article-categories:read to look up article category ids).

List and read

fsapi GET "/articles?per_page=50"
fsapi GET "/articles?enabled=false"          # drafts and scheduled
fsapi GET "/articles?search=beginner"
fsapi GET /articles/77                        # includes article_categories

Write an article (your own text)

fsapi POST /articles -d '{
  "title": "How to choose a first film camera",
  "content": "<p>...</p><h2>...</h2><p>...</p>",
  "meta_description": "What to check before you buy a first film camera.",
  "product_category_id": 12,
  "article_categories": [3],
  "enabled": false
}'

content is HTML. Save as a draft ("enabled": false) and let the user review it on the site unless they asked you to publish. Images in content are copied to the site's own image CDN in the background; read the article again a minute later to see the new addresses. Send "copy_images": false to keep the original addresses.

Schedule an article

Send a future published_at (ISO 8601 with a time zone). The article is saved switched off and goes live on that date, keeping the date:

fsapi POST /articles -d '{
  "title": "Spring hiking gear checklist",
  "content": "<p>...</p>",
  "published_at": "2027-03-15T09:30:00+00:00"
}'

A scheduled article publishes itself on its date. With generate_ai_content: true the body is written at once (chips spent now), then it waits for its date. To hold it unpublished with no date, leave out published_at and send "enabled": false.

Confirm the date and time zone with the user. To move it, PATCH /articles/{id} with a new published_at.

Have the site write it with AI

This spends AI chips. Confirm with the user first, and before writing more than one.

# Ideas only: creates nothing
fsapi POST /articles/generate-topics -d '{"count": 5}'

# Write one in the background
fsapi POST /articles -d '{
  "title": "Caring for vintage camera leather",
  "generate_ai_content": true,
  "generate_seo_keyword": "vintage camera leather care",
  "generate_images": true,
  "enabled": false
}'

The 201 comes back before the body is written. Read the article again in a few minutes. 402 not_enough_chips means the site is out of chips: stop.

Update

fsapi GET /articles/77                                      # read first
fsapi PATCH /articles/77 -d '{"meta_title": "New title"}'

Only the fields you send change. article_categories replaces the attached set. generate_ai_content: true on an update clears the body and rewrites it: never send it without the user's yes. generate_images alone remakes the images only.

Images

  • Find free stock photos (no chips): fsapi GET "/images/stock?query=film+camera&quantity=6".
  • Set the hero, listing or social image from a public URL (replaces the one there):
fsapi POST /articles/77/images -d '{"collection":"hero","url":"https://images.example.com/photo.jpg"}'

Delete

DELETE /articles/{id} needs the user's yes. Prefer PATCH {"enabled": false}, which can be undone.

Reviews with a rating

An article can rate one product: reviewed_product_id, author_rating (1 to 5 in steps of 0.1), author_verdict, author_pros, author_cons. Use the owner's own rating and words; never invent them.

SKILL.md

tile.json