HomeAPI Reference
API Specification
DocTunes API & Data Schemas
Comprehensive schema references, request/response models, and static schema endpoints for DocTunes integration.
GET/api/v1/locales
application/jsonRetrieves list of supported language codes and their directionality.
Example Response Payload
json
{
"status": "success",
"count": 82,
"locales": [
{ "code": "en", "name": "English", "dir": "ltr" },
{ "code": "fr", "name": "Français", "dir": "ltr" },
{ "code": "hi", "name": "हिन्दी", "dir": "ltr" },
{ "code": "de", "name": "Deutsch", "dir": "ltr" }
]
}POST/api/v1/translate
application/jsonStatic proxy payload structure for serverless translation gateways.
Example Response Payload
json
{
"target_locale": "fr",
"source_url": "https://divanshu.doctunes.io/docs",
"translated_url": "https://fr.divanshu.doctunes.io/docs",
"cached": true
}GET/sitemap.xml
application/jsonReturns the static XML sitemap with all 20 indexed pages.
Example Response Payload
json
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://divanshu.doctunes.io/</loc>
<lastmod>2026-09-21</lastmod>
<priority>1.0</priority>
</url>
<!-- 20 pages total -->
</urlset>