Pergunta de entrevista da empresa Slack

How would you design a new api endpoint in slack ?