API Layer

API is described in details here.