API defenition