{
  "$comment": "Settings for a Retool REST API resource. Retool does not import resources from a file, so enter these values in Resources > Create new > REST API. This file is the reference the README and tests check against.",
  "resource_type": "REST API",
  "name": "FXMacroData",
  "description": "Official macro, FX and central-bank data from FXMacroData (read-only).",
  "base_url": "https://api.fxmacrodata.com",
  "url_parameters": [],
  "headers": [
    {
      "key": "X-API-Key",
      "value": "{{ environment.variables.FXMD_API_KEY }}",
      "note": "Business and Enterprise plans: a secret configuration variable named FXMD_API_KEY. Other plans: paste the key itself as the value. Leave the header out to use the free USD tier."
    },
    {
      "key": "Accept",
      "value": "application/json"
    }
  ],
  "authentication": "None",
  "configuration_variable": {
    "name": "FXMD_API_KEY",
    "secret": true,
    "description": "FXMacroData API key from https://fxmacrodata.com/subscribe",
    "where": "Settings > Configuration variables (Business and Enterprise plans)"
  },
  "options": {
    "sanitize_custom_headers_in_logs": true,
    "forward_cookies": false
  },
  "methods_used": ["GET"],
  "openapi_alternative": {
    "spec_url": "https://fxmacrodata.com/api/openapi.json",
    "server_url": "https://api.fxmacrodata.com",
    "note": "Optional: choose 'Spec URL' instead of 'Base URL' to get an endpoint picker. Add the same X-API-Key header."
  }
}
