Measura API documentation · v1

Get app settings

Retrieve public-facing application settings that are safe and useful for external API consumers.

Code example
GET /api/v1/app-settings

Headers:
  Authorization: Bearer <api-key>
  Content-Type: application/json

Query parameters

Scroll horizontally to see all columns.

ParameterTypeDescription
localestringOptional - ISO locale code (e.g., en, fr, es). If provided, only returns localized labels for that locale. If omitted, returns labels for the default locale (en).

Response example (200 success)

Code example
{
  "success": true,
  "data": {
    "settings": {
      "localizedLabels": {
        "unitPricePropertyName": "Price per",
        "unitPricePropertyValue": "kg",
        "netMeasurementLabel": "Net",
        "netMeasurementValue": "Weight"
      },
      "mergeMatchingLineItems": true
    }
  },
  "error": null
}

Response fields

Scroll horizontally to see all columns.

FieldTypeDescription
successbooleanIndicates whether the request was successful
dataobjectResponse data object
data.settingsAppSettingsApplication settings object
data.settings.localizedLabelsLocalizedLabelsLabels for the requested locale, or English when locale is omitted. Omitted if no labels are configured for that locale.
data.settings.mergeMatchingLineItemsbooleanIndicates whether the app is configured to merge matching line items in the cart. true means multiple cart additions with the same product/variant and options will be merged into a single line item.
errorobject | nullError object if the request failed, null if successful
metaobject | undefinedOptional metadata; omitted by this endpoint
requestIdstring | undefinedOptional request identifier for tracking

Error responses

Scroll horizontally to see all columns.

Status codeDescription
401Unauthorized - Invalid or missing API key
403Forbidden - Public API access is unavailable on this shop
500Internal Server Error - Server-side error occurred

Note

  • The endpoint includes a Cache-Control header with private and a max-age of 300 seconds (5 minutes). Clients should respect this cache directive.
  • If a locale is specified but no labels exist for that locale, the endpoint omits localizedLabels.
  • If no locale is specified, the default locale (en) is used.
  • The API key should be in the format: apik_<keyId>_<secret>
  • Use the Authorization header for this GET request. The legacy key fallback applies only to actual form bodies.
  • The endpoint automatically tracks API key usage by updating the lastUsedAt timestamp for the API key. This update is performed asynchronously and does not block the response.
  • The API key is associated with a specific Shopify shop. The endpoint returns settings for the shop associated with the provided API key.

Related:

See the AppSettings object documentation for details about the response structure. See the LocalizedLabels object for details about the localized labels structure.

Example: Get settings for specific locale

Request:

GET /api/v1/app-settings?locale=fr

Response:

{
  "success": true,
  "data": {
    "settings": {
      "localizedLabels": {
        "unitPricePropertyName": "Prix par",
        "unitPricePropertyValue": "kg",
        "netMeasurementLabel": "Net",
        "netMeasurementValue": "Poids"
      },
      "mergeMatchingLineItems": true
    }
  },
  "error": null
}