Skip to main content
Parameters are used to control behavior without changing the source code. They store important information that the system need at runtime across different environments.

How to create a parameter?

Step 1: Access the Strapi admin panel.
Step 2: Go to the “Littlebox Strapi Suite”.
Step 3: Select “Parameter”.
Step 4: Click “Create new entry”.
Step 5: Set the value, the UID, and whether the parameter is private (available only to the backend and other plugins) or public (also available to the frontend).

API

To get the data from the frontend, use your preferred HTTP client:
curl -X GET "/api/littlebox-strapi-suite/modules/parameters"
[
    {
        "uid": "recaptcha-public-key",
        "value": "iuyTYYT7ybknokdiuYTtdjapodu"
    }
]
This request will only return public parameters. To get the private parameters from the Strapi backend (e.g. for use in other plugins), use the @strapi/strapi/admin library:
import { getFetchClient } from '@strapi/strapi/admin';
const { get } = getFetchClient();
const data = await get('/littlebox-strapi-suite/admin/parameters');