LeadFlowXLeadFlowX

AI-Powered B2B CRM

API: Settings & Auth

Manage app settings and authentication.

Settings

GET
/api/settings

Get all settings + user profile

Auth: Session

PUT
/api/settings

Upsert settings (key-value pairs)

Auth: Session

Update settings
{ "senderName": "John", "senderCompany": "Acme", "emailTemplateStyle": "bold" }

Authentication

POST
/api/auth/onboard

Create org + user on first login

Auth: Sign-in token

POST
/api/auth/set-session

Set session cookie after auth

Auth: None

Notifications

GET
/api/notifications

List notifications

Auth: Session

POST
/api/notifications

Create a notification

Auth: Session

PUT
/api/notifications

Mark as read

Auth: Session

DELETE
/api/notifications

Delete notification

Auth: Session

Other Endpoints

GET
/api/sources

List available lead sources with field mappings

Auth: Session

GET
/api/duplicates

List duplicate leads

Auth: Session

DELETE
/api/duplicates

Delete duplicates (?id=x or ?all=true)

Auth: Session

POST
/api/sentiment

Analyze email reply sentiment

Auth: None

POST
/api/email-replies

Process email reply with sentiment

Auth: Session

POST
/api/sequences/process

Process pending email sequences

Auth: None

GET
/api/unsubscribe

Process unsubscribe link

Auth: None

POST
/api/unsubscribe

Unsubscribe an email

Auth: None