Agencies

How to Build a White-Label Social Media Scheduler for Agencies

Build an agency scheduler on Outstand with tenant-safe account connections, revision-based approvals, branded OAuth choices, and per-account publishing outcomes.

A white-label social media scheduler needs more than a branded calendar. It needs to keep each client's accounts separate, publish only approved content, and explain which destinations succeeded when a multi-account post partially fails.

Outstand supplies the social publishing infrastructure that sits under white label social media management: connected accounts, OAuth, scheduling and per-account results. Your application supplies the agency product: client workspaces, roles, approvals, reporting, and branding. You do not need to build a second OAuth token-refresh service or wait until publish time to submit every scheduled post.

This tutorial follows one client workspace from connection through approval to publication. It is written for teams building their own product. If you only need a rebrandable tool for account managers, compare that option first in how to choose white label social media software.

What your white label social media dashboard has to own

The client-facing white label social media dashboard is yours: login, custom domain, calendar, approval screens, and the status view that tells a client which network published and which did not. Outstand stays invisible behind your backend, and with BYOK your own OAuth app name appears on the consent screens (see section 3). The rest of this guide is the backend that dashboard depends on. For what the publishing layer covers commercially, see the white label social media dashboard and API overview.

1. Draw the ownership boundary

Use this architecture:

plaintext
1Branded client portal and agency console
2                  |
3Your backend: authentication, tenant checks, approvals
4                  |
5Your database and submission outbox
6                  |
7Outstand API: account connections, scheduling, publishing
8                  |
9Social platforms
10
11Outstand webhooks -> your durable inbox -> outcome updates

Your application builds

Outstand provides

Custom domain, login, calendar, client portal

Unified social account and publishing APIs

Tenant membership and authorization

Tenant labels and account-list filters

Content revisions and approval audit trail

Scheduled publishing through scheduledAt

Durable submission and reconciliation logic

Platform integration and OAuth token handling

Client-facing status and recovery controls

Per-account results and publishing webhooks

Outstand supports 12 networks. That does not mean every network accepts identical content or has identical setup requirements. Validate each destination's media and platform-specific options before approval.

Your outbox is a reliable way to submit approved work, not a replacement for Outstand's publishing scheduler. Submit future posts after approval with their intended scheduledAt rather than maintaining another timer that waits until publication is due. Outstand accepts schedules up to 30 days ahead. Keep longer-horizon entries in your own calendar and submit them when they enter that window.

2. Model clients separately from your Outstand organization

An agency can keep client workspaces in its own database while connecting their accounts under an Outstand organization. Give each workspace a stable tenant identifier, such as client_northwind.

Store these records:

  • Workspace: tenant ID, brand settings, timezone, approval policy.
  • Membership: user, workspace, role, permitted actions.
  • Social account mapping: workspace, Outstand account ID, network, display name.
  • Content revision: text, media, destinations, intended publication time.
  • Approval: revision, approver, decision, timestamp, notes.
  • Submission: revision, idempotency key, Outstand post ID, submission state.
  • Destination outcome: submission, account ID, status, error, native post ID.

Use a unique constraint on submission plus account ID for destination outcomes. An account publishes many different posts, so account ID alone is not an outcome key.

Derive workspace access from the authenticated user's membership. Never trust a browser-supplied tenantId or account ID without checking ownership. Scope reads and writes by workspace, including background jobs and webhook updates.

Outstand's tenant label is not a separate client login or tenant-scoped API credential. Your backend API key operates within its organization and permissions. Keep it server-side, and enforce client isolation before making API calls. The organization permissions reference explains the additional permission ceiling on those calls.

3. Choose managed credentials or BYOK deliberately

Managed Keys cover LinkedIn, Instagram, Facebook, Threads, Bluesky, YouTube, Pinterest, and TikTok. They reduce setup work, but do not promise your agency's identity on provider consent screens.

For your own OAuth app identity, use BYOK: register your platform app and configure its credentials with Outstand. Platform reviews, permissions, and consent-screen rules still apply. X, Google Business Profile, Vimeo, and Reddit require BYOK because Outstand does not provide managed apps for them.

Bluesky is the exception to OAuth terminology: users connect with an app password, not an OAuth consent flow. Its connection request uses tenantId.

Credential configuration belongs to the Outstand organization; the auth-URL route selects a configured network by name. Do not assume adding a tenant label selects a different OAuth app for that client. If contracts require distinct client-owned apps, settle that organization and credential arrangement before implementation.

BYOK changes whose app credentials are used. It does not require your scheduler to exchange authorization codes, store social refresh tokens, or implement refresh locks. Outstand handles the provider connection and token lifecycle. Your responsibility is secure configuration and a reconnect experience when authorization can no longer be refreshed.

Start with the network configuration guides.

4. Carry the tenant through connection and discovery

For an OAuth network, your backend requests an authorization URL:

bash
1curl -X POST https://api.outstand.so/v1/social-networks/linkedin/auth-url \
2	-H "Authorization: Bearer $OUTSTAND_API_KEY" \
3	-H "Content-Type: application/json" \
4	-d '{
5		"tenant_id": "client_northwind",
6		"redirect_uri": "https://agency.example/social/connected"
7	}'

The response envelope is:

json
1{
2	"success": true,
3	"data": { "auth_url": "https://www.outstand.so/app/api/socials/..." }
4}

Redirect the user to data.auth_url. The path uses the network name; the body uses tenant_id, with letters, numbers, underscores, and hyphens. The redirect_uri is your final application destination after Outstand's callback, not the provider-registered OAuth callback.

LinkedIn and Facebook can require a page/profile picker. When your return URL receives a session parameter, have your backend retrieve the pending connection, show permitted choices, and finalize the selection. Bind this return flow to the initiating workspace and user. Remove the session value from the browser URL after reading it, and avoid logging it. Outstand carries the pending connection's tenant into the created accounts.

Discover the connected accounts with:

bash
1curl 'https://api.outstand.so/v1/social-accounts?tenantId=client_northwind&limit=100&offset=0' \
2	-H "Authorization: Bearer $OUTSTAND_API_KEY"

Here the query parameter is tenantId; returned accounts expose the label as tenant_id. The envelope contains success, data (the account array), count, total, limit, and offset. Page through all matching results and persist each returned id with your workspace mapping. Accounts connected without a tenant label do not match this filter.

Posts do not carry a separate tenant of their own. GET /v1/posts?tenant_id=client_northwind filters through their target accounts; tenantId is also accepted. A matching post still returns its full account array. Never fan one post across different client workspaces: a tenant filter is not a redaction boundary. Keep one client's destinations per submission and authorize get-by-ID requests against your local workspace mapping.

Normal account responses omit provider tokens. Your portal does not need includeTokens=true.

5. Approve a revision, not a mutable post

Keep this editorial lifecycle in your application:

plaintext
1draft -> awaiting_approval -> approved -> submitting -> scheduled
2                    |
3                 rejected -> draft

These are your workflow states, not Outstand status values. Add destination-level publishing outcomes separately.

An approval must cover the exact text, media, destination accounts, network overrides, and publication time shown to the approver. Editing any of those should invalidate approval or create a new revision requiring approval.

Commit the approval audit record and submission-outbox entry in the same database transaction. A worker atomically claims that entry, rechecks its revision and tenant-owned destinations, and submits it once logically. This avoids a crash between recording approval and scheduling submission.

Store the intended UTC instant and the client's IANA timezone. Resolve ambiguous daylight-saving times explicitly in the UI. Recurring editorial schedules are your application logic; materialize each occurrence with its own approved revision and submission.

Do not submit unapproved content as an immediately publishable Outstand post. Once submitted, cancellation or edits must also reach Outstand. A local cancelled flag does not cancel an already queued remote post. Use the update and cancel endpoints, check the response, and handle races with publication.

6. Submit opaque account IDs and inspect the response

The following placeholders must be replaced with IDs returned by account discovery:

bash
1curl -X POST https://api.outstand.so/v1/posts \
2	-H "Authorization: Bearer $OUTSTAND_API_KEY" \
3	-H "Content-Type: application/json" \
4	-H "Idempotency-Key: $SUBMISSION_KEY" \
5	-d '{
6		"content": "Our winter collection arrives next week.",
7		"accounts": ["STORED_LINKEDIN_ACCOUNT_ID", "STORED_FACEBOOK_ACCOUNT_ID"],
8		"scheduledAt": "2026-12-15T09:00:00Z"
9	}'

accounts identifies connected accounts, not networks. Never send ["linkedin", "facebook"], generate IDs, or automatically target every connected account. Resolve only the destinations selected for the approved revision. Exact usernames are supported, but opaque IDs avoid ambiguity in a multi-client product.

An unresolved identifier can be silently dropped when another identifier resolves. Compare returned post.socialAccounts[].id against every intended account ID and surface mismatches rather than reporting complete success.

Create responses use { success: true, post: ... }, not data.id or a top-level postId. Persist post.id immediately. Both create and get-post responses expose post.socialAccounts.

Check post.scheduled, not just HTTP success. If task scheduling fails after creation, the API returns HTTP 202 with success: true, the created post, scheduled: false, and an error. Record that the post exists but needs scheduling recovery; do not blindly create a replacement. A successful create is not proof of publication either.

Persist one idempotency key per logical submission and reuse it with the same body on retries. Keys last 24 hours. Reconcile uncertain older submissions before resending, and honor Retry-After on in-progress conflicts. Replaying a create returns its stored response, not necessarily current publishing state.

For media, follow upload and confirmation, then use container media objects containing url and filename. Media IDs are not post attachments.

7. Track publication per account

Outstand reports destination status as pending, published, or failed, alongside error, platformPostId, and publishedAt. A post-level publishedAt means at least one account published, not that every destination succeeded.

Subscribe to post.published, post.error, and account.token_expired. Configure a signing secret and verify the raw request body's HMAC-SHA256 against X-Outstand-Signature, including its sha256= format, using a timing-safe comparison.

Durably save or enqueue a verified webhook before returning 2xx. Acknowledging first can lose the event if your process dies before enqueueing. Make processing repeat-safe; the documented publishing payload has no top-level unique event ID to use as payload.id.

Publishing events contain data.postId, data.orgId, and data.socialAccounts; each result uses accountId, whereas REST post accounts use id. Match the organization, stored post, and destination account before updating your tenant's records.

post.published means at least one destination succeeded and can include failed destinations. post.error means all targeted accounts failed. Show partial success explicitly, with an error and recovery action per account. Retry only failed destinations after resolving the cause, rather than duplicating successful publications. Use get post details to reconcile missed or ambiguous events.

Before onboarding clients

Test cross-client account IDs, edited approvals, picker returns, duplicate submissions, scheduling failures, mixed publishing results, webhook redelivery, expired authorization, and cancellation near publication. Monitor stuck submissions and pending outcomes, not only HTTP error rates.

The result is a branded agency product with a clear boundary: your software decides who may publish what for each client; Outstand handles connected-account publishing. Keep the post lifecycle and webhook reference beside your implementation, and use the white-label overview when planning the client-facing offer.