Skip to main content
This guide walks you from a fresh account to a live post on Instagram and Facebook.

1. Get an API key

Sign in to hub.madiad.com, open API Keys, and create one. Keys are shown only once — copy it immediately.
Treat API keys like passwords. Do not commit them to git or expose them in client-side code.

2. Connect a profile

A profile represents a brand, client, or sub-account that you publish on behalf of. Create one and connect the social platforms you want to publish to.
Response:
Open access_url in a browser and sign in to each social platform you want to publish to (Instagram, Facebook, TikTok, etc.). Connections persist until revoked.

3. Publish to multiple platforms

Send a single request — the Hub fans it out.
Response:
A video (or any asynchronous upload) instead returns "status": "processing" with a request_id to poll. See Posts for every status value.

4. (Optional) Schedule for later

Replace the immediate publish with a future timestamp.

5. (Optional) Subscribe to webhooks

Get notified when uploads finish or a connection changes, instead of polling. Create an endpoint from your dashboard at hub.madiad.com/dashboard/webhooks — set the URL to receive deliveries and pick the events (post.completed, connection.connected, connection.disconnected, connection.reauth_required). The Hub signs every callback with HMAC-SHA256. See Webhooks for verification.

Next steps

Profile model

How profiles work across brands and clients.

Per-platform fields

Override captions, thumbnails, and visibility per platform.

Scheduling

Exact times vs. recurring queue slots.

Idempotency

Make safe retries from any client.