The use of accented domain names, aka IDN, is possible whatever the interface (web or API)
Especially for the API, you can indicate both entries (accented or xn--???) in the 'domain' field.