Databricks Interview Question

Have you scripted APIs? How would you segment customers?