Download Postman Collection
Official Postman API Collection
Complete pre-wired request suite for BHASHINI REST APIs with automated environment scripts and dynamic token propagation.
Create a Workspace in Postman
In Postman, click the Workspaces dropdown menu at the top left, select Create Workspace, fill in a name (e.g., Bhashini Integration), and click Create.
Import the Collection
You can import the collection using either of two methods:
- Method A (Instant URL Import): In Postman, click the Import button at the top left, paste the Collection URL directly into the search/URL input field, and confirm.
- Method B (File Upload): Click the Download (.json) button above, save the file to your computer, and drag and drop it into Postman's Import dialog.
Once imported, the collection will appear in your sidebar with all individual tasks and chained pipeline requests pre-configured.
Configure Collection Variables
The collection uses automated test scripts to pass parameters dynamically between calls. To set your credentials, select the collection name in the left sidebar and open the Variables tab:
Variable Reference Guide
Provide your user_id and api_key in the initial values column. Downstream variables (such as callback URLs and auth tokens) will be populated automatically when you run the Config request.
| Variable | Type | Description & Reference |
|---|---|---|
ulca_url | Endpoint | ULCA pipeline config base endpoint used to fetch pipeline models and callback URLs. [Pipeline Config Call] |
user_id | Auth | Unique integrator ID generated during registration on the BHASHINI portal. [Onboarding & Keys] |
api_key | Auth | ULCA API Key for pipeline config requests. [API Keys Guide] |
pipeline_id | Config | Target Pipeline ID covering the required task sequence (e.g. ASR, Translation, TTS). [Pipeline Search Call] |
callback_url | Dynamic | Dynamic inference URL automatically parsed and populated from the Pipeline Config response by Postman test scripts. [Callback URL Docs] |
callback_url_feedback | Dynamic | Dynamic feedback submission endpoint automatically populated from the Pipeline Config response. [Feedback Endpoint Docs] |
compute_call_authorization_key | Dynamic | Inference header key (typically 'Authorization') extracted from config response. |
compute_call_authorization_value | Dynamic | Inference authentication token value extracted from config response. |
asr_service_id | Model ID | Allocated ASR model service ID, dynamically captured during pipeline config run. |
nmt_service_id | Model ID | Allocated Translation model service ID, dynamically captured during pipeline config run. |
tts_service_id | Model ID | Allocated TTS model service ID, dynamically captured during pipeline config run. |
source_language | Param | Source language ISO-639-1 code (e.g. 'en', 'hi', 'ta'). |
target_language | Param | Target language ISO-639-1 code (e.g. 'hi', 'gu', 'bn'). |
base64 | Sample Data | Sample base64 audio string used for testing ASR compute calls in the collection. |
These variables might change as and when new features become available as part of different calls. Re-import the collection to receive the updates.
Automated Test Scripts & Execution
Automation scripts are embedded in the Tests tab of both the With Config and Without Config requests. When executed, these scripts automatically parse the server response, extract the dynamic authorization key and callback endpoint, and populate the collection variables for subsequent Compute calls.
Running Individual & Chained Pipeline Calls
Once variables are set, you can execute individual tasks (e.g. ASR, Translation, TTS) or combined multi-modal workflows (e.g. ASR + NMT + TTS) directly from the collection folders.