defineAPI