Add code snippets to API post