Skip to main content
The Article resource represents a piece of content — its title, description, content blocks, thumbnail, and styling.

Sample payload

{
  "content": [],
  "created": "1970-01-01T00:00:00Z",
  "custom_data": {},
  "description": "Optional description for this content",
  "image": {},
  "key": "<article_key>",
  "navigation": {},
  "origin_template": "<template_key>",
  "style": {},
  "tags": [],
  "thumbnail": [],
  "thumbnail_style": {},
  "title": "Content title",
  "updated": "1970-01-01T00:00:00Z"
}

Endpoints

Create Article

POST /articles Create a new article. Use the sample payload as a guide for the request body.
curl -X POST "https://backend.choicely.com/articles" \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Content title",
    "description": "Optional description for this content"
  }'

Get all Articles

GET /articles Retrieve all articles.
curl "https://backend.choicely.com/articles" \
  -H "Authorization: Bearer <YOUR_API_KEY>"

Get a single Article

GET /articles/<article_key> Retrieve a single article by its key.
article_key
string
required
Unique key of the article.
curl "https://backend.choicely.com/articles/<article_key>" \
  -H "Authorization: Bearer <YOUR_API_KEY>"

Update Article

PATCH /articles/<article_key> Update an existing article. Include only the fields you want to change.
article_key
string
required
Unique key of the article.
curl -X PATCH "https://backend.choicely.com/articles/<article_key>" \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Updated title"
  }'

Delete Article

DELETE /articles/<article_key> Delete an article.
article_key
string
required
Unique key of the article.
curl -X DELETE "https://backend.choicely.com/articles/<article_key>" \
  -H "Authorization: Bearer <YOUR_API_KEY>"