Pregunta de entrevista de Slack

How would you design a new api endpoint in slack ?