{"openapi":"3.1.0","info":{"title":"GET /api/v1/onboarding/profile","version":"1.0.0","description":"Resume in-progress onboarding"},"servers":[{"url":"https://api.ondayzero.com","description":"Production"}],"paths":{"/api/v1/onboarding/profile":{"get":{"tags":["onboarding"],"summary":"Resume in-progress onboarding","description":"Returns the persisted onboarding profile (conversation, learned profile fields, recommendations, account_type) for the current user. Used by the Welcome wizard to restore wizard state after a refresh.","operationId":"get_onboarding_profile_api_v1_onboarding_profile_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingProfileResponse"}}}},"401":{"description":"Unauthorized - Authentication required","content":{"application/json":{"example":{"detail":"Not authenticated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"OnboardingProfileResponse":{"properties":{"account_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Type"},"profile":{"additionalProperties":true,"type":"object","title":"Profile"},"conversation":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Conversation"},"recommendations":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Recommendations"},"has_profile":{"type":"boolean","title":"Has Profile","default":false}},"type":"object","title":"OnboardingProfileResponse","description":"Persisted onboarding state used by the wizard for resume.\n\nReturned by ``GET /onboarding/profile`` so the SPA can rehydrate the\nchat thread and learned profile after a refresh or new browser session.\nThe endpoint always returns 200; brand-new users get an empty body\nwith ``has_profile=False`` so the SPA can branch without an HTTP\nstatus check."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Token","description":"API token authentication. Format: `Bearer dz_...`"}}},"security":[{"BearerAuth":[]}]}