# Request Payload

## Request Payload for Transliteration Task

{% tabs %}
{% tab title="Transliteration" %}
{% code lineNumbers="true" %}

```json

{
    "pipelineTasks": [
        {
            "taskType": "transliteration",
            "config": {
                "language": {
                    "sourceLanguage": "en",
                    "targetLanguage": "hi"
                },
                "serviceId": "{{trans_service_id}}",
                "isSentence": false,
                "numSuggestions": 7
            }
        }
    ],
    "inputData": {
        "input": [
            {
                "source": "ki"
            }
        ]
    }
}

```

{% endcode %}

This response contains 2 major parameters listed below and detailed further down the section:

1. pipelineTasks
2. inputData

### Parameter: `pipelineTasks`

**Type:** Array\
\
This parameter takes an array of tasks, in the form of dictionary of **`taskType`** and **`config`**, that are to be done by the integrator. \
In the above example, **`pipelineTasks`** takes only one dictionary (line 3-13) because integrator wants to do only ASR.\
\
\&#xNAN;**`taskType`** parameter takes `String` that takes the value **`asr`**

**`config`** parameter takes a **`Dictionary`** that contains following parameters:

{% tabs %}
{% tab title="Language" %}
For ASR, **`language`** parameter only takes **`sourceLanguage`** which accepts [ISO-639 Series Code](https://dibd-bhashini.gitbook.io/bhashini-apis/overall-understanding-of-the-api-calls) of the language.
{% endtab %}

{% tab title="Service ID" %}
serviceId parameter is obtained from the [Transliteration Config Call](https://dibd-bhashini.gitbook.io/bhashini-apis/transliteration-config-call) [response](https://dibd-bhashini.gitbook.io/bhashini-apis/pipeline-config-call/response-payload) as described [here](https://dibd-bhashini.gitbook.io/bhashini-apis/transliteration-config-call/response-payload).
{% endtab %}

{% tab title="isSentence" %}
isSentence set to true and false for getting response in sentence.&#x20;
{% endtab %}

{% tab title="numSuggestions" %}
In the given request, the "numSuggestions" parameter is used in the "transliteration" task configuration. It is used to specify the number of transliteration suggestions that the task should provide.
{% endtab %}
{% endtabs %}

{% hint style="info" %}
Parameters other than **`taskType`**, **`serviceId`** and **`config`** are optional.
{% endhint %}

### Parameter: `inputData`

inputData Parameter takes the actual input from the integrator on which the individual task has to be done. It can take the input either via **`input`** parameter .<br>

* **`input`** parameter takes the text in source key

{% endtab %}
{% endtabs %}
