aapi sample