Get private settings

List all private settings. Learn how this can be used in configuring your server in this guide.

URLRequires AuthHTTP Method

/api/v1/settings

yes

GET

Example Call

curl --location --request GET 'http://localhost:3000/api/v1/settings' \
--header 'X-Auth-Token: w4KGA2YwTmz4k0cEwa58F6T-gyN4p4MLLWPDfDE8Sgi' \
--header 'X-User-Id: g8aroJivN5R32TxCm'

Example Result

Sucess

{
  "settings": [
          { "_id": "API_Allow_Infinite_Count", "value": true },
          { "_id": "API_CORS_Origin", "value": "*" }
  ],
  "count": 50,
  "offset": 0,
  "total": 299,
  "success": true
}

Errors

The following error can occur on the endpoint.

  • Authorization: Requires an authentication token for the request to be made.

{
    "status": "error",
    "message": "You must be logged in to do this."
}

Last updated

Rocket.Chat versions receive support for six months after release.