in reply to curl url request

The double {{ }} brackets are probably not meant to be literal.

You probably just need to do: headers => { 'x-api-key' => 'MV34WM5Y8Y'},