Back to KB
Difficulty
Intermediate
Read Time
4 min

`/api/articles`

By Codcompass TeamΒ·Β·4 min read

/api/articles

Overview

The /api/articles endpoint serves as the primary interface for managing developer documentation and knowledge base content on codcompass.com. It supports bulk creation/updating, paginated listing, and deletion of articles. Designed for both automated content pipelines and administrative dashboards, the endpoint enforces strict content validation, handles category associations, and respects publication states.

Use this endpoint when syncing external CMS data, building custom publishing workflows, or retrieving article metadata for frontend rendering. The API automatically handles upsert logic based on slugs, applies markdown sanitization, and enforces role-based access control for destructive operations.

Endpoint Reference

PropertyValue
Base URLhttps://codcompass.com/api/articles
Supported MethodsPOST, GET, DELETE
AuthenticationAPI Key (Authorization: Bearer <key>) or User Session
Rate LimitsPOST: 100 req/min Β· GET: 200 req/min Β· DELETE: 50 req/min
Content Typeapplication/json

Request Format

Headers

HeaderRequiredDescription
AuthorizationYes (POST/DELETE)Bearer <API_KEY_OR_SESSION_TOKEN>
Content-TypeYes (POST)Must be application/json

Query Parameters

ParameterMethodTypeDefaultDescription
limitGETinteger20Maximum number of articles to return per page
offsetGETinteger0Number of articles to skip for pagination
publishedGETstring`unde

πŸŽ‰ Mid-Year Sale β€” Unlock Full Article

Base plan from just $4.99/mo or $49/yr

Sign in to read the full article and unlock all 635+ tutorials.

Sign In / Register β€” Start Free Trial

7-day free trial Β· Cancel anytime Β· 30-day money-back

Sources

  • β€’ api-reference