POST
/
text-analytics

Headers

api-subscription-key
string
default:

Body

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

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

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.

Response

200 - application/json

Represents the response from text analytics.

This model encapsulates the results of analyzing a text based on the provided questions. It includes a list of answers, each corresponding to a question from the original request.

Attributes: answers (Optional[List[QNAResponse]]): List of answers derived from the text analysis. Null if no valid answers are found.

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.