Optionally pass a callback to API add method