Databricks interview question

Have you scripted APIs? How would you segment customers?