POST
/
text-analytics

Headers

api-subscription-key
string
required

Your unique subscription key for authenticating requests to the Sarvam AI Speech-to-Text API. Here are the steps to get your api key

Body

application/x-www-form-urlencoded
questions
string
required

List of questions to be answered based on the call content. Each question should be a valid JSON object with the following structure: {id: string, text: string, description: string (optional), type: string, properties: object}.The type field must be one of: boolean, enum, short answer, long answer, or number. For enum type questions, include an 'options' list in the properties.

text
string
required

The text content to be analyzed. This should be a non-empty string containing the full text for analysis.

Response

200 - application/json
request_id
string | null
required
answers
object[] | null

List of answers derived from the text analysis. Each answer corresponds to a question from the original request. This field will be null if no valid answers could be generated.