Appearance
Build a Platform (Multi-Tenant Architecture)
How to build social posting into your own app: one Zernio profile per customer, their accounts connected under it, webhooks routed back to the right customer record.
The model
- Profile creation,
POST /v1/profileswith the customer's identifier as the name. Store the returnedprofile._idon your customer record. - Account connection,
GET /v1/connect/{platform}with that customer'sprofileId. Subscribe toaccount.connectedwebhooks to map the resultingaccountIdback to theprofileId. - Publishing,
GET /v1/accounts?profileId=...to list the customer's connected accounts, thenPOST /v1/postsagainst those account IDs. - Webhook routing, point every platform at one team-level webhook endpoint. Route incoming events by
accountIdfor post-level events, orprofileIdfor account-level events. - Account health monitoring. Watch for
account.disconnectedwebhooks and run periodic account-health checks, then prompt the customer to reconnect on an auth failure.
Rate limits and access control
Rate limits scale with the number of connected accounts across the team. Use scoped API keys to restrict a key to specific profiles, or to disable whole resource groups, when a key is handed to a per-customer backend.
Billing and offboarding
GET /v1/usage?groupBy=profileattributes usage cost back to each profile, so you can bill customers individually.- To offboard a customer: disconnect their accounts first, then delete the profile.
See also
- Security Overview: team roles and scoped API key access that this model relies on.
- Profiles: create a profile and connect a second account into it, step by step.
- Profiles API
- Connecting Accounts