Skip to main content

Developer documentation

API docs for multi-platform publishing and analytics workflows.

Start with authentication, connected account discovery, media requirements, photo carousel payloads, status tracking, TikTok QR login, and analytics endpoints. Each guide is structured for server-side integrations and content team workflows.

Server-side quick start

Keep API keys in your backend or serverless environment. Do not expose keys in browser code.

const API_BASE_URL = 'https://api.wahdx.com';
const API_KEY = process.env.WAHDX_API_KEY;

await fetch(API_BASE_URL + '/api/content/post', {
  method: 'POST',
  headers: {
    'X-API-Key': API_KEY,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify(
    {
      "platform": "instagram",
      "accountId": "YOUR_CONNECTED_ACCOUNT_ID",
      "content": "Campaign caption",
      "mediaItems": [
        {
          "url": "https://your-domain.com/video.mp4"
        }
      ]
    }
  )
});

Endpoint model

Video and photo carousel use the same publishing endpoint.

The difference is not the endpoint. Use POST /api/content/post for TikTok, Instagram, Facebook, and Threads. The backend detects video or photo carousel from mediaItems URL extensions, then validates limits for the selected platform.

// Video and photo carousel use the SAME endpoint:
// POST /api/content/post

const videoPayload = {
  "platform": "tiktok",
  "accountId": "CONNECTED_ACCOUNT_ID",
  "content": "Video caption",
  "mediaItems": [
    {
      "url": "https://your-domain.com/video.mp4"
    }
  ]
};

const photoCarouselPayload = {
  "platform": "tiktok",
  "accountId": "CONNECTED_ACCOUNT_ID",
  "photoTitle": "Carousel title",
  "content": "Carousel caption",
  "mediaItems": [
    {
      "url": "https://your-domain.com/photo-1.jpg"
    },
    {
      "url": "https://your-domain.com/photo-2.jpg"
    }
  ]
};

Core docs

Read the API topics that should be linked from every integration plan.

API authentication

Authenticate Wahdx Connection API Requests

Learn how to authenticate Wahdx Connection API requests with X-API-Key and keep keys secure in backend or server-side environments.

Connected accounts API

List Connected Social Accounts with the Public API

Use GET /api/content/accounts to list TikTok, Instagram, Threads, and Facebook accounts connected to a Wahdx Connection workspace using an API key.

Video publishing requirements

Video Requirements for Social Publishing API Workflows

Review recommended video formats, size, duration, aspect ratio, and thumbnail settings for Wahdx Connection publishing workflows.

Photo carousel publishing

Photo Carousel Publishing API Guide

Learn how to prepare photo carousel posts, cover images, title fields, and media arrays for Wahdx Connection publishing workflows.

Text-only posting

Text-Only Post API for Threads and Facebook

Publish text-only posts with no media to Threads and Facebook Pages using the Wahdx Connection API, immediately or on a schedule.

Threads text & thread sequence

Threads Text Post & Thread Sequence API

Post text-only updates and linked thread sequences to Threads using Wahdx Connection API.

Post status tracking

Track Social Post Status with Wahdx Connection API

Check individual or batch post status for social publishing workflows and monitor queued, processing, published, or failed content.

QR login workflow

TikTok QR Login API Workflow

Learn the QR login request, display, polling, and account-linking flow for TikTok account connection workflows.

Publishing analytics API

Publishing Analytics with the Wahdx Connection API

Use GET /api/analytics/publishing to inspect request-level and provider-item-level publishing metrics from the Wahdx Connection ledger.