Analytics API segment query failing with 400 Bad Request

Could someone explain the strict syntax requirements for the segment field in the POST /api/v2/analytics/conversations/summary endpoint?

  • The ServiceNow MID Server sends the JSON payload generated by the Data Action, but GC returns a 400 error stating “Invalid segment definition”.
  • The payload matches the schema in the documentation exactly, including the type and id fields for the specific queue.
  • Retrying with a simplified payload via Postman works instantly, suggesting a formatting issue specific to the webhook transmission or character encoding in the ServiceNow HTTP request step.