Skip to main content
GET/global-variables/

Get all global variable

You can return a list of all of your global variables.

Results are paginated: follow next to get the next page (see Response pagination).

Request​

curl -X GET "https://<your_app_subdomain>.user.com/api/public/global-variables/" \
-H "Authorization: Token <your_64_char_api_key>" \
-H "Accept: */*; version=2"

Response examples​

{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"id": 6,
"custom_id": "promo-banner",
"name": "Promo banner text",
"name_std": "20261110_0936_promo_banner_text",
"author": null,
"parent": null,
"text_content": "Free shipping on all orders.",
"integer_content": null,
"float_content": null,
"language": null,
"created_at": "2026-11-10T08:36:54.885824Z",
"updated_at": "2026-11-10T08:36:55.632176Z"
}
]
}

Response fields​

Fields returned in the 200 OK response body.

countinteger
Number of results across all pages. It can lag behind recent changes; see Response pagination.
nextstring (URL)nullable
URL of the next page of results. null on the last page.
previousstring (URL)nullable
URL of the previous page of results. null on the first page.
resultsarray of objects
Results on this page.
results[].idinteger
A unique identifier for the global variable which is given by User automatically.
results[].custom_idstringnullable
The unique identifier for the global variable which is provided by the client.
results[].namestring
A global variable name.
results[].name_stdstring
A standarize global variable name.
results[].authorintegernullable
A unique identifier of an agent who created a global variable. A visible author.
results[].parentintegernullable
An id of the parent global variable.
results[].text_contentstring
A text value of a global variable. Can be used to store HTML code, string, or JSON.
results[].integer_contentintegernullable
An integer value of a global variable.
results[].float_contentstringnullable
Decimal value of the variable as a string with five decimal places; null unless the variable holds a decimal number.
results[].languagestringnullable
ISO 639-1 code of the language.
results[].created_atstring (date-time)
A creation date of a global variable.
results[].updated_atstring (date-time)
A date of last global variable update.
note

Errors that can come from any endpoint (401, 429, 500, 502, 504) are described in HTTP response codes.