> ## Documentation Index
> Fetch the complete documentation index at: https://developer.hubfluence.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Health & Profile

> Basic system and user profile endpoints

## Health Check

<ParamField query="GET /health">
  Check the health status of the API
</ParamField>

### Response

<ResponseField name="status" type="string">
  Current health status of the API ("healthy" or "unhealthy")
</ResponseField>

<ResponseField name="timestamp" type="string">
  ISO timestamp of the health check
</ResponseField>

<ResponseField name="uptime" type="number">
  Server uptime in seconds
</ResponseField>

```json
{
  "status": "healthy",
  "timestamp": "2024-03-14T12:00:00Z",
  "uptime": 3600
}
```

## User Profile

<ParamField query="GET /profile">
  Get the user's profile information
</ParamField>

### Parameters

<ParamField query="userId" type="string" required>
  The ID of the user
</ParamField>

### Response

<ResponseField name="id" type="string">
  User's unique identifier
</ResponseField>

<ResponseField name="integrations" type="object">
  Integration details including TikTok credentials and account information
</ResponseField>

```json
{
  "id": "user123",
  "integrations": {
    "tiktok": {
      "connected": true,
      "shopId": "shop123",
      "accessTokenExpiry": "2024-04-14T12:00:00Z"
    },
    "email": {
      "connected": true,
      "accounts": ["account1", "account2"]
    }
  }
}
```

## Integration Status

<ParamField query="GET /integrations/status">
  Get the status of all user integrations
</ParamField>

### Parameters

<ParamField query="userId" type="string" required>
  The ID of the user
</ParamField>

### Response

<ResponseField name="tiktok" type="object">
  Status of TikTok integration
</ResponseField>

<ResponseField name="email" type="object">
  Status of email integration
</ResponseField>

```json
{
  "tiktok": {
    "connected": true,
    "lastSync": "2024-03-14T12:00:00Z",
    "status": "active"
  },
  "email": {
    "connected": true,
    "accounts": [
      {
        "id": "account1",
        "status": "active",
        "lastSync": "2024-03-14T12:00:00Z"
      }
    ]
  }
}
```
