Skip to main content
GET
/
configs
Get the portal config
curl --request GET \
  --url http://localhost:3001/portal-api/configs \
  --header 'Authorization: <api-key>'
[
  {
    "Blog": {
      "AllowFormSubmission": true,
      "Enable": true
    },
    "Database": {
      "ConnectionString": "por....db",
      "Dialect": "`sqlite3`",
      "EnableLogs": true,
      "MaxRetries": 3,
      "RetryDelay": 5000
    },
    "Forms": {
      "Enable": false
    },
    "HostPort": 3001,
    "JwtSigningKey": "<string>",
    "LicenseKey": "XXX",
    "LogFormat": "prod",
    "LogLevel": "info",
    "PortalAPISecret": "portal123",
    "ProductDocRenderer": "stoplight",
    "RefreshInterval": 10,
    "S3": {
      "ACL": "<string>",
      "AccessKey": "<string>",
      "Bucket": "<string>",
      "Endpoint": "<string>",
      "PresignURLs": true,
      "Region": "<string>",
      "SecretKey": "<string>"
    },
    "Site": {
      "Enable": true
    },
    "Storage": "`db`",
    "StoreSessionName": "portal-store-session-name",
    "TLSConfig": {
      "Certificates": [
        {
          "CertFile": "portal.crt",
          "KeyFile": "portal.key",
          "Name": "localhost"
        }
      ],
      "Enable": true,
      "InsecureSkipVerify": true,
      "MinVersion": 123,
      "MaxVersion": 123,
      "PreferServerCipherSuites": true,
      "CipherSuites": [
        "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"
      ]
    },
    "Theming": {
      "Path": "./themes",
      "Theme": "default"
    }
  }
]

Authorizations

Authorization
string
header
required

Response

200 - application/json
Blog
object
Database
object
Forms
object
HostPort
integer
Example:
JwtSigningKey
string
LicenseKey
string
Example:
LogFormat
enum<string>
Available options:
dev,
prod
Example:
LogLevel
enum<string>
default:info
Available options:
debug,
info,
warn,
error,
dpanic,
panic,
fatal
Example:
PortalAPISecret
string
Example:
ProductDocRenderer
enum<string>
default:stoplight
Available options:
stoplight,
redoc
Example:
RefreshInterval
integer
default:10
Example:
S3
object
Site
object
Storage
enum<string>
Available options:
`fs`,
`db`,
`s3`
Example:
StoreSessionName
string
default:portal-store-session-name
Example:
TLSConfig
object
Theming
object