⚡ Quick Setup
Integrate ConnectHub's social APIs in under 5 minutes. Install the official SDK, configure your environment, and make your first authenticated request.
🔐 Authentication Flow
ConnectHub uses OAuth 2.0 with PKCE for public clients and JWT-based session management. All API requests require a valid `Authorization` header.
Register App
Create a developer app in the Dashboard to receive your Client ID & Secret.
Token Exchange
Redirect users to `/oauth/authorize` and exchange the code for an access token.
API Requests
Attach `Bearer {access_token}` to requests. Refresh tokens last 30 days.
👤 Users & Profiles
Manage user accounts, retrieve public profiles, and update preferences.
GET Retrieve Current User
Returns the authenticated user's public profile, subscription tier, and basic engagement stats.
| Parameter | Type | Required | Description |
|---|---|---|---|
| fields | string | No | Comma-separated list of fields to return (`id,username,avatar,bio`) |
| expand | string | No | Include related resources (`stats,followers`) |
POST Update Profile
Update public-facing profile information. Changes propagate to the CDN within 200ms.
| Parameter | Type | Required | Description |
|---|---|---|---|
| display_name | string | No | New display name (max 30 chars) |
| bio | string | No | Profile biography (max 280 chars, markdown supported) |
| avatar_url | url | No | Direct link to square image (min 400x400) |
📝 Posts & Media
Create, query, and moderate content across the platform. Supports text, images, video, and rich embeds.
POST Create Post
📊 Rate Limits & Quotas
API limits are enforced per application and per authenticated user. Exceeding limits returns `429 Too Many Requests` with a `Retry-After` header.
💡 Need higher limits? Upgrade to Enterprise or contact our developer success team.