American Express Interview Question

How do you create an API? Show me the process