> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://customerhub.com/api/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://customerhub.com/api/_mcp/server.

# Get App Config

GET https://api.customerhub.com/web_api/app

Returns the full app configuration needed to bootstrap the client application.

**Authentication:** Public — no Bearer token required. If a valid Bearer token is provided, the response includes `current_user` data. On `api.customerhub.com` HMAC application authentication is still required.

**Response includes:**
- `theme` — Current theme version with compiled CSS/JS assets
- `brand` — Branding config (logo, colors, favicon, app name)
- `app` — App settings (features enabled, public_content, navigation, social links) plus the auth bootstrap fields below
- `current_user` — User profile if authenticated (null if not)
- `navigation` — Sidebar/nav menu items the user can access
- `ls_options` — LoyalStream (AI) chat configuration

**Auth bootstrap fields (under `app`):**
- `recaptcha_site_key` — reCAPTCHA v3 site key to load in the browser before calling `POST /session` or `POST /users`. `null` when reCAPTCHA is disabled for the environment, in which case `recaptcha_token` can be omitted
- `public_signup` — Whether `POST /users` self-registration is open on this app
- `google_oauth_client_id` — Google client ID for `POST /session/google_auth`
- `apple_oauth_client_id` — Apple client ID for `POST /session/apple_auth`
- `ws_url` — Action Cable WebSocket URL for real-time features

**Use this to:**
- Determine which features are enabled (posts, products, comments, directory)
- Decide whether a login or signup form must solve reCAPTCHA
- Build navigation menus
- Apply theming and branding
- Check if user is logged in

Reference: https://customerhub.com/api/api-reference/app-config/get-app-config

## Response

### 200

OK

## Examples

**Response**

```json
{
  "data": {
    "accessible_apps": [
      {
        "name": "app_name",
        "subdomain": "myapp"
      }
    ],
    "app": {
      "admin_panel": false,
      "apple_oauth_client_id": "com.example.myapp.web",
      "cookie_consent": {
        "enabled": false,
        "policy_url": null
      },
      "google_oauth_client_id": "533163428017-27sppujan9na75ija47du2q1n9o8mamk.apps.googleusercontent.com",
      "media_completed_threshold": 70,
      "name": "app_name",
      "nav_style": "header",
      "oauth_proxy_url": "https://app.customerhub.com/oauth/callback.html",
      "profile_completion_threshold": 70,
      "public_content": false,
      "public_signup": true,
      "recaptcha_site_key": "6Le4uWctAAAAANBCqaLPfLPsy9p-AhkrJ8rCuMfq",
      "subdomain": "myapp",
      "support_email": null,
      "theme_mode": "system",
      "use_v1_experience": false,
      "version_key": "educate1-4b983f82",
      "ws_url": "ws://localhost:5080/websocket"
    },
    "brand": {
      "color_primary": "#4F46E5",
      "color_secondary": "#7C3AED",
      "font_primary": "Inter",
      "logo_url": null
    },
    "community": {
      "allow_post_edit": true,
      "allow_posting_to_all": true,
      "chat_add_participants_enabled": true,
      "chat_history_for_new_participants": "full",
      "dms_enabled": true
    },
    "current_user": {
      "avatar_media_id": null,
      "avatar_url": null,
      "bio": "Community member",
      "cdata": {},
      "cover_image_url": null,
      "created_at": "2026-09-16T15:32:12Z",
      "email": "user@example.com",
      "engagement_score": 0,
      "facebook": null,
      "first_name": "John",
      "goal": null,
      "goal_author": null,
      "goal_highlights": [],
      "goal_history": [],
      "goal_updated_at": null,
      "id": "c7358892-5f29-47db-a705-2c53d10da4bd",
      "initials": "JD",
      "instagram": null,
      "last_name": "Doe",
      "last_reflection": null,
      "last_seen_at": null,
      "linkedin": null,
      "name": "John Doe",
      "otp_enabled": false,
      "phone": "+1 555 0100",
      "settings": {},
      "status": "active",
      "suspended_until": null,
      "updated_at": "2026-09-16T15:32:12Z",
      "website": "https://example.com",
      "x_twitter": null
    },
    "dashboard_widgets": null,
    "features": {
      "achievements": false,
      "calendar": false,
      "comments": true,
      "community": false,
      "directory": false,
      "filebox": false,
      "leaderboard": false,
      "live": false,
      "messages": false,
      "moderation": false,
      "onboarding": true,
      "posts": true,
      "products": true,
      "show_contact_details": false
    },
    "has_loyal_stream": false,
    "loyal_stream_icon": "bot-message",
    "ls_options": null,
    "navigation": [],
    "theme": null,
    "theme_component_configs": {},
    "user_experience_settings": null,
    "view_preferences": {
      "onboardings": "list",
      "products": "grid"
    }
  }
}
```

**SDK Code**

```python App Config_getAppConfig_example
import requests

url = "https://api.customerhub.com/web_api/app"

response = requests.get(url)

print(response.json())
```

```javascript App Config_getAppConfig_example
const url = 'https://api.customerhub.com/web_api/app';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go App Config_getAppConfig_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.customerhub.com/web_api/app"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby App Config_getAppConfig_example
require 'uri'
require 'net/http'

url = URI("https://api.customerhub.com/web_api/app")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java App Config_getAppConfig_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.customerhub.com/web_api/app")
  .asString();
```

```php App Config_getAppConfig_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.customerhub.com/web_api/app');

echo $response->getBody();
```

```csharp App Config_getAppConfig_example
using RestSharp;

var client = new RestClient("https://api.customerhub.com/web_api/app");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift App Config_getAppConfig_example
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://api.customerhub.com/web_api/app")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```