DNS Challenge with DuckDNS

{API_KEY} is not the right syntax for environment variables, if that’s what you were trying to do. It should have the $ included. See the docs:

Using the single-line way should be fine. Did you mistakenly include { } around your actual API key?