API invocation method