CMS API Reference

Complete reference for the WinSearch CMS API. Use these endpoints to programmatically manage content and integrations.

Authentication

All API requests require authentication using a Bearer token. Include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Get your API key from the WinSearch dashboard settings.

Base URL

https://api.winsearch.ai/v1

Articles

List Articles

GET /articles

Returns a list of all articles in your workspace.

curl -X GET "https://api.winsearch.ai/v1/articles" \
  -H "Authorization: Bearer YOUR_API_KEY"

Get Article

GET /articles/:id

Returns a single article by ID.

Create Article

POST /articles

Creates a new article.

curl -X POST "https://api.winsearch.ai/v1/articles" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Article Title",
    "content": "Article content...",
    "status": "draft"
  }'

Update Article

PUT /articles/:id

Updates an existing article.

Delete Article

DELETE /articles/:id

Deletes an article.

CMS Sync

Sync to CMS

POST /cms/sync

Pushes an article to your connected CMS.

curl -X POST "https://api.winsearch.ai/v1/cms/sync" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "article_id": "abc123",
    "cms": "wordpress",
    "publish": true
  }'

Rate Limits: API requests are limited to 100 requests per minute. Contact us if you need higher limits.

Error Codes