Dreamwishes APIs
Login
POST /app/login/ Payload: { "email": "user@example.com", "password": "password123", "role_type": "ORG_ADMIN" } Response: { "status": true, "message": "Login Successfull" }
Logout
POST /app/logout/ Response: { "success": true, "message": "Logout Successfully" }
Get App State
GET /app/getAppState/ Response: { "response": true,"appstate":"<appstate_data>"}
List of Sessions
GET /dreamwishes/chat-sessions/ Returns list of chat sessions created by the logged‑in user.
Create Session
POST /dreamwishes/chat-sessions/create/ Payload: { "title": "Title of the session" } Response: { "chat_session_id": , "message": "New chat session created successfully" }
Mark Session as Complete
POST /dreamwishes/chat-sessions/complete/ Payload: { "chat_session_id": }
Generate or Edit Image
POST /dreamwishes/chat-sessions/message/ Payload: { "chat_session_id": , "image_generation": , "image": , "query": "Image generation prompt" } Response: { "image_file": "", "success": "success" }
Broadcast List
GET /dreamwishes/all-session-images/ Returns list of broadcast images.
Template Types List
GET /dreamwishes/template-types/ Returns list of template types.
Upload Template Image
POST /dreamwishes/template-images/ to upload a template image with payload: {"name":"template_name","template_type":"template_type", "image":<binary_image>}
Templates List
GET /dreamwishes/template-images/ Returns list of template images.
Single Template Image
GET /dreamwishes/template-images/<template_image_id>/ Returns a single template image.