Whitelabel Callfluent AI for your agency’s services with full flexibility Explore Whitelabel

CallFluent API: User Services

Share this guide

User Services API

The User Services API enables users to manage their account details, password, profile settings, SMTP configuration, and branding preferences. These endpoints are essential for customizing your CallFluent experience at the user level.


18. Get User Profile

GET: /user/profile

Retrieves the current user’s profile details and custom branding settings.

Header

Authorization: Bearer {api_key}


Response

Example Success

Status code: 200: user detail with custom setting

{
  "user": {
    "name": "test",
    "email": "[email protected]"
  },
  "setting": {
    "website_name": "callfluent",
    "website_description": "save time"
  }
}

Errors

500 (Server Error) – Server error.

{ 
  status: false, 
  error: error_message 
}

19. Update User Detail

POST: /user/update-detail

Updates user-related details.

Header

Authorization: Bearer {api_key}

Path Parameter

FieldTypeRequiredDescriptionExample
agent_idnumbertrueAgent ID1

Request Body

{
	data: webhookPayload
}

webhookPayload

FieldTypeRequiredDescriptionExample
phone_numberstringtrueInternational phone number+1 234 5678910
[…custom fields]stringfalseCustom fieldsname, email, address, etc.

Response

Example Success

Status code: 200: agent list

{ 
  status: true, 
  data: agent_list 
}

Errors

500 (Server Error) – Server error.

{ 
  status: false, 
  error: error_message 
}

20. Reset User Password

POST: /user/reset-password

Updates the user’s password.

Header

Authorization: Bearer {api_key}

Request Body

{
	data: {
		oldPass: "123456",
		newPass: "abcdefg"
	}
}

data

FieldTypeRequiredDescriptionExample
oldPassstringtrueCurrent password123456
newPassstringtrueNew passwordabcdefg

Response

Example Success

Status code: 200

{ status: true }

Errors

{ status: false, msg: "Please input correct current password" }

21. Update User Setting

POST: /user/update-setting

Updates user branding and domain-level settings.

Header

Authorization: Bearer {api_key}

Request Body

{
	data: {
		userId: "12",
		domain_name: "app.automation.ai",
		website_logo: "https://google.com/1.jpg",
		website_icon: "https://google.com/2.jpg",
		support_desk_url: "https://google.com/help",
		website_name: "Call Agent AI",
		website_description: "AI is a game changer",
		primary_color: "#0019FF"
	}
}

data

FieldTypeRequiredDescriptionExample
userIdstringtrueUser ID12
domain_namestringfalseCustom domain nameapp.automation.ai
website_logostringfalseCustom logo (image/base64)https://google.com/1.jpg
website_iconstringfalseCustom icon (image/base64)https://google.com/2.jpg
support_desk_urlstringfalseSupport page linkhttps://google.com/help
website_namestringfalseCustom site nameCall Agent AI
website_descriptionstringfalseCustom site descriptionAI is a game changer
primary_colorstringfalseCustom primary color#0019FF

Response

Example Success

Status code: 200

{ status: true }

Errors

  • Something is wrong with your domain, please check if A record is added correctly.
  • domain_name doesn’t point to 23.29.127.132 correctly
  • Something went wrong
  • To install domain isn’t failed

22. Update SMTP Setting

POST: /user/update-smtp-setting

Updates the SMTP configuration used for sending emails.

Header

Authorization: Bearer {api_key}

Request Body

{
	data: {
		userId: "12",
		smtp_host: "gm.co",
		smtp_port: "465",
		smtp_username: "...",
		smtp_password: "...",
		from_name: "...",
		from_email: "..."
	}
}

data

FieldTypeRequiredDescriptionExample
userIdstringtrueUser ID12
smtp_hoststringtrueSMTP hostgm.co
smtp_portstringtrueSMTP port465, 587
smtp_usernamestringtrueSMTP username
smtp_passwordstringtrueSMTP password
from_namestringtrueFrom name
from_emailstringtrueFrom email address

Response

Example Success

Status code: 200

{ status: true, user: updatedUserData }

Errors

{ status: false, error: "Something went wrong" }

Conclusion

This completes the User Services API section.
For workspace-wide features and automation flows, continue with the Workspace API Documentation.

Leave a reply

Your email address will not be published. Required fields are marked *

Automate your phone calls with AI

Create artificial inteligence powered, human-like voice agents ready to handle inbound and outbound calls 24/7

Discover Callfluent

Frequently asked questions

Get answers to commonly asked questions about our cutting-edge AI voice call technology & learn how our platform revolutionizes customer engagement line never before.

No, you don’t need to download or install anything. Callfluent is a cloud based app, that means that it is hosted in the cloud and you can access it from any device anytime.

Have more questions ? Check out our Knowledge base