400 Error when using /language/analyze-conversations/jobs with API version 2024-11-01 in Call Center Analysis

Ben Aziza Rayen 20 Reputation points
2025-02-02T11:17:35.7833333+00:00

We're implementing call center conversation analysis following the official documentation, but consistently get a 400 error when using the 2024-11-01 API version.

Steps to Reproduce:

  1. Send POST request to:
    POST {Endpoint}/language/analyze-conversations/jobs?api-version=2024-11-01
  2. Use this request structure (sanitized example):

{

  "displayName": "CallCenterAnalysis",

  "analysisInput": {

    "conversations": [{

      "id": "1",

      "language": "fr",

      "modality": "transcript",

      "domain": "generic",

      "conversationItems": [

        // Full conversation items array

      ]

    }]

  },

  "tasks": [

    {

      "kind": "ConversationalSummarizationTask",

      "parameters": {"summaryAspects": ["Issue","Resolution"]}

    }

  ]

}  
  
**Error Received**: :   
HTTP 400 - Bad Request

Exception Details: "The POST request returned status code 400 not in [202]"
Azure AI Language
Azure AI Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
442 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. santoshkc 12,035 Reputation points Microsoft Vendor
    2025-02-03T10:57:43.6033333+00:00

    Hi @Ben Aziza Rayen,

    Thank you for reaching out to Microsoft Q&A forum!

    The correct endpoint for the Analyze Conversations API should be:

    POST {Endpoint}/language/:analyze-conversations?api-version=2024-11-01

    Notice the colon (:) before "analyze-conversations," which is required for proper syntax. Also, ensure that {Endpoint} is replaced with your actual Azure Language Service resource URL, such as https://<your-resource-name>.cognitiveservices.azure.com. Additionally, make sure to include the correct headers, such as Content-Type: application/json, and provide the necessary JSON payload in the body of your request.

    For more details, you can refer to: official Azure REST API documentation.

    Hope this helps. And, if you face any issues do let us know.


    Do click Accept Answer and Yes for was this answer helpful.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.