This article explains how to create an API.