Naming Convention API
The Naming Convention API checks entity names in article fields against CoinPost naming rules.
Base URL
text
https://api.coinpost.ai/naming-convention/v1Authentication
Send the API key in the CP-X-API-KEY header.
text
CP-X-API-KEY: <your-api-key>Endpoints
POST /articles/scan— Find naming violations and return correction previewsPOST /articles/apply— Apply corrections marked as safe for automatic use
Article fields
The service scans title, summary, content, and tags. content and tags are optional. The language field accepts en, zh, or ja.
Offsets in matches and corrections are UTF-8 byte offsets, not character indexes.
Behavior
/articles/scanstores detected violations by default. Setpersisttofalseto skip storage.- The
corrected_articlereturned by/articles/scanis a preview and can contain corrections that require approval. /articles/applyincludes only corrections whose rule hasauto_fix=true. It returns corrected article data but does not update an external article system or store violations.
