Configuration API

returns configuration for the app

GET /api/v1/config

Request

Headers

Accept: application/json
X-Api-Token: oHDNjHQ5sfTVcbxMcTdy5sdc3ym6dz8CHQ
X-Api-Email: user-472@example.com

Route

GET /api/v1/config

Query Parameters

{}: 

cURL

curl "http://localhost:3000/api/v1/config" -X GET \
	-H "Accept: application/json" \
	-H "X-Api-Token: oHDNjHQ5sfTVcbxMcTdy5sdc3ym6dz8CHQ" \
	-H "X-Api-Email: user-472@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

Content-Type: application/json; charset=utf-8
Content-Length: 1456

Status

200 OK

Body

{
  "vat_tax": false,
  "disable_offer_reports": false,
  "search": true,
  "welcome_popup": true,
  "myteachable_help_form_enabled": true,
  "email_auth": true,
  "sentry_public_dsn": null,
  "sentry_environment": "production",
  "commit_sha": 20191031175808,
  "secure_url": "http://sso.worksonmy.computer:3001",
  "default_school_plan_id": 381,
  "show_email_event_stats": true,
  "teachable_payments_enabled_by_default": true,
  "paths": {
    "swifticon": "/admin/assets/images/swifticons/outlined/",
    "icons": "/admin/assets/images/icons/"
  },
  "keys": {
    "filepicker_api_key": "ADNupMnWyR7kCWRvm76Laz",
    "stripe_api_key": "pk_test_SgUVhQjn0U2VleXHIeRTiGaV",
    "environment": "test",
    "wistia_api_key": "cc146cf989929820de3128b5d248cf4ba764c8ce",
    "pusher_api_key": "f9a23dc2172da257d128",
    "notifications_inject_script_url": null,
    "headway_account_id": "xGne8y",
    "pendo_api_key": "2d171711-e80f-4c99-471f-503c367c5bbe",
    "analytics": {
      "enabled": false,
      "keys": {
        "segmentio_api_key": "y1dH8dabkhO9n9fMf008SVDt2ZSOlB0n",
        "facebook_pixel_id": null,
        "profitwell_api_key": "c73a37dec4e02a585a09bd1997ebfa57"
      }
    },
    "hellosign_client_id": "363cd048a210f3f1a5c1516febc34be6",
    "iris_url": "https://eventable.zeachable.cloud",
    "algolia_application_id": "DIKGJAE8K5",
    "algoia_search_api_key": "5fb7b5fbcefa70a8d05c9d707311705c"
  },
  "enable_css_props": true,
  "disabled_help_form_paths": [
    "courses/(\\d*)/certificates/(\\d*)/edit",
    "site/pages/(\\d*)/edit",
    "courses/(\\d*)/pages/(\\d*)/edit",
    "courses/(\\d*)/sales-page",
    "courses/(\\d*)/checkout-page",
    "courses/(\\d*)/thank-you-page"
  ]
}