Slack Interview Question

How would you design a new api endpoint in slack ?