Bulk AI auto-categorize uncategorized customers

POST /api/v1/customers/auto-categorize

Schedule AI categorization for every customer in the business that currently has no category. Returns immediately; the actual LLM calls and DB writes happen in a background task. Refresh the customer list to observe progress.

Operation ID: auto_categorize_customers_api_v1_customers_auto_categorize_post · View as markdown · OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Responses

201 Successful Response

submitted integer required

Number of uncategorized customers submitted for AI categorization.

status string

processing if work was scheduled, noop if there was nothing to do.

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

404 Not Found - Resource does not exist

422 Validation Error

detail array · ValidationError ValidationError
5 fields
loc array · string | integer required
msg string required
type string required
input object
ctx object