Export magic API implementation.