Slack interview question

How would you design a new api endpoint in slack ?