Expose code snippet parameters as api endpoint