api works