Text Case in REST API Design – Best Practices
Published 2026-02-24 · convertcase.in
REST APIs must handle case consistently across URLs, JSON bodies, and HTTP headers. Here's the comprehensive guide.
Try it now — free instant conversion
No signup · No limits · Works on all devices
1URL Endpoints
Always kebab-case and lowercase: /api/v1/user-profiles, /api/v1/get-order-by-id
2JSON Request/Response Keys
JavaScript APIs: camelCase. Python/Ruby APIs: snake_case. Google APIs: typically camelCase.
3HTTP Headers
Headers use Train-Case (capitalize each word, separated by hyphens): Content-Type, X-Api-Key, Authorization.
Frequently Asked Questions
What JSON case does the Google API use?
Google's APIs generally use camelCase for JSON keys, per Google's JSON Style Guide.