For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get Settings

Retrieves the current system configuration settings including common application settings and email service configuration. This endpoint provides essential information about the platform's operational

Endpoint

GET/v2/messages/settings

Link

Request

Headers

Key
Value
Required

Authorization

Bearer <JWT>

Yes

Accept

application/json

Yes


Response (200 OK)

Returns the system configuration settings organized into logical groups.

Response Fields

1. Common Settings (common)

Field
Type
Description
Example

enabled

boolean

Overall system status. true = operational, false = maintenance mode.

true

appHostname

string

Backend application hostname.

"api.paymentsystem.com"

frontHostname

string

Frontend application hostname.

"app.paymentsystem.com"

frontName

string

Frontend display name.

"Payment Portal"

companyName

string

Company legal name.

"Acme Payments Inc."

companyPhone

string

Company support phone number.

"+1-800-123-4567"

2. Email Settings (email)

Field
Type
Description
Example

enabled

boolean

Email service status. true = active, false = disabled.

true

emailAccount

string

SMTP email account.

"[email protected]"

emailPassword

string

SMTP account password (may be masked).

"********"

smtpHost

string

SMTP server hostname.

"smtp.gmail.com"

smtpPort

integer

SMTP server port.

587

Example Response:

json


Examples

Request

bash

Response in Maintenance Mode

json


Error Responses

  1. Unauthorized:

    json


Notes

  • Maintenance Mode: When common.enabled is false, the system may be in maintenance mode with limited functionality.

  • Email Service: If email.enabled is false, email notifications will not be sent.

  • Security: Passwords are typically masked or returned only in encrypted form.

  • Hostnames: Used for generating links in emails and notifications.

Common Use Cases:

  • Displaying company information in UI

  • Configuring email client connections

  • Checking system status before operations

  • Building dynamic URLs for notifications

Real request example

Real response example

Last updated