API usage example