To insert code in a post use the composer’s toolbar button. Select the text that should be formatted as code block and press the button.
You can also just indent each line of the code block with 4 spaces. See Markdown Tutorial - Code for more on that.
curl -X GET --header 'Accept: application/json' --header 'Authorization: Bearer
API_token' 'https://api.nuki.io/smartlock'