Get next AI discovery question

POST /api/v1/onboarding/ai-discover

Given the account type and conversation so far, returns the next personalised question for the onboarding discovery flow.

Operation ID: ai_discover_api_v1_onboarding_ai_discover_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.

Request body

account_type string required

Account type determines the discovery question path

conversation array · object

Conversation so far as [{role: 'assistant'|'user', content: '...'}]

Responses

201 Successful Response

question string required

Next question for the user

quick_replies array · string

Suggested quick-reply options the user can tap

done boolean

True when the AI has gathered enough info and discovery is complete

learned object

Partial profile snapshot of what the AI has learned so far

400 Bad Request - Invalid input

422 Validation Error

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

429 Too Many Requests - Rate limit exceeded

500 Internal Server Error