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_typestringrequired

Account type determines the discovery question path

conversationarray · object

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

Responses

201Successful Response

successboolean
messagestring
codestring
dataAIDiscoverResponse

400Bad Request - Invalid input

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject

429Too Many Requests - Rate limit exceeded

500Internal Server Error