Trying to understand Agent Scripting API 400 during Zendesk migration

Struggling to understand why the Genesys Cloud Agent Scripting API returns a 400 Bad Request when pushing scripts mapped from Zendesk macros. The Zendesk side uses rich text, but GC expects specific JSON structure.

  • GC Org: eu-west-1
  • API Version: v2
  • Endpoint: /api/v2/scripts

The error message mentions ‘Invalid script content’. Does GC require pre-sanitized HTML tags, or is there a specific format for the content field?