Request Payload

This sub-page helps the integrator to understand various different types of request payload based on the individual task or combination of tasks in that sequence that integrator wants to do.

Transliteration
{
  "pipelineTasks": [
    {
      "taskType": "transliteration",
      "config": {
        "language": {
          "sourceLanguage": "en"
        },
        "serviceId": "ai4bharat/indicxlit--cpu",
        "isSentence": false,
        "numSuggestions": 5
      }
    }
  ],
  "inputData": {
    "input": [
      {
        "source": "namaste"
      }
    ]
  }
}

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

  1. pipelineTasks
  2. inputData

Parameters

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 2-13) because integrator wants to do only Transliteration.

taskType parameter takes String that takes the value transliteration

config parameter takes a Dictionary that contains following parameters:

ParameterTypeRequiredDescription
language.sourceLanguagestringRequiredSource language code (accepts ISO-639 Series Code).
serviceIdstringRequiredObtained from the Transliteration Config Call response as described here.
isSentencebooleanOptionalSet to true or false for getting transliterated response in full sentences.
numSuggestionsintegerOptionalSpecifies the number of transliteration suggestions that the task should provide.

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 .

  • input parameter takes the text in source key