integrating with the platform api