Skip to Content
Developers
API ReferenceTranslation

B8 — Sync legal text translation across 22 Eighth Schedule languages + English (2 credits / 2,000 chars; scope translate:write).

POST
/api/v1/in/translation/text

Authorization

BearerAuth
headerAuthorizationBearer <vdh_live_<32_hex> | vdh_test_<32_hex>>

Header Parameters

Idempotency-Key?string

UUIDv4 idempotency token (24h replay window in Postgres).

Formatuuid

Request Body

application/json
  1. body
text*string
Length1 <= length <= 20000
source_language?string
Default"en-IN"
target_language*string

Response Body

Translated legal text

application/json
  1. response
translated_text*string
source_language*string
target_language*string
char_count*integer
model?string
Example Request
curl -X POST 'https://api.vidhi.shamik.app/api/v1/in/translation/text' \  -H 'Content-Type: application/json' \  -d '{  "text": "string",  "target_language": "string"}'
Example Response
{  "translated_text": "string",  "source_language": "string",  "target_language": "string",  "char_count": 0,  "model": "string"}