Access the Zernio API with managed authentication. Read profiles, connected accounts, posts, analytics, and inbox conversations; publish and schedule posts; and send messages and run campaigns across connected accounts. Posts publish publicly, messages and calls reach real people, and ads spend money. All access runs through the Maton gateway and the maton CLI.
Permissions
Suggested read access
In the Console, Read limits the connection to these 453 read-only endpoints, plus deny rules for any write endpoint a broader rule would otherwise match. Endpoints Maton has found to return credentials, start jobs, or spend credits are left out; a few reads that can change state or return a secret depending on their parameters stay in, and their descriptions say how. It is a suggestion: the saved rules are exactly the ones you see, and you can change them with Custom. See Access policy.
Reference
Account and Billing
Get the Current User
maton api '/zernio/v1/users/me'Response:
{
"_id": "6650a1b2c3d4e5f601234567",
"name": "Jane Doe",
"image": "https://lh3.googleusercontent.com/a/example",
"createdAt": "2026-11-30T21:04:11.000Z",
"lastLoginAt": "2026-12-01T18:22:40.000Z",
"isRoot": true,
"invitedBy": null,
"role": "owner",
"workspaceId": "6650a1b2c3d4e5f601234500",
"workspaceName": "Acme Marketing"
}Get Usage and Plan
maton api '/zernio/v1/usage-stats'
maton api '/zernio/v1/billing'usage-stats returns planName, billingPeriod, plan limits (uploads, profiles), usage (connectedAccounts, X API call counts), and spend (currentPeriodCents, creditsRemainingCents). billing returns the plan, the current period, the balance (accruedThisPeriodCents, creditsRemainingCents), spend caps, and the account status (hasAccess, suspended).
Profiles
List Profiles
maton api '/zernio/v1/profiles'Response:
{
"profiles": [
{
"_id": "6650a1b2c3d4e5f601234601",
"userId": "6650a1b2c3d4e5f601234567",
"name": "Default",
"isDefault": true,
"color": "#ffeda0",
"timezone": null,
"externalId": null,
"contentRetention": "default",
"createdAt": "2026-11-30T21:04:12.000Z",
"updatedAt": "2026-11-30T21:04:12.000Z",
"effectiveContentRetention": "90d"
}
]
}Create a Profile
maton api '/zernio/v1/profiles' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{"name": "Marketing Team", "description": "Profile for marketing campaigns", "timezone": "Europe/London"}
JSONAnswers 201 with {"message": ..., "profile": {...}}. Other fields: color, externalId (your own ID for the profile), contentRetention, and per-profile calling limits (maxOutboundCallsPerHour, maxDailyCallSpendUsd, maxForwardedMinutesPerDay).
Update or Delete a Profile
maton api '/zernio/v1/profiles/{profile_id}' -X PUT -H 'Content-Type: application/json' --input - <<'JSON'
{"name": "Marketing Team (EU)"}
JSON
maton api '/zernio/v1/profiles/{profile_id}' -X DELETEPUT changes only the fields it sends; "isDefault": true makes the profile the default. Deleting a profile answers {"message": ...}.
Accounts
List Connected Accounts
maton api '/zernio/v1/accounts?profileId={profile_id}'Query parameters: profileId, platform (such as twitter, instagram, linkedin, tiktok), status, search, category, sort, order.
Response:
{
"accounts": [
{
"_id": "64e1f0a9e2b5af0012ab34cd",
"platform": "twitter",
"username": "acme",
"displayName": "Acme",
"profileId": "6650a1b2c3d4e5f601234601",
"isActive": true
}
],
"hasAnalyticsAccess": false
}The account's _id is the accountId that posts, messages, and analytics calls take. Accounts are connected in the Zernio dashboard or through the connect endpoints, which are kept out of the read-only policy.
maton api '/zernio/v1/accounts/{account_id}'
maton api '/zernio/v1/account-groups'Posts
List Posts
maton api '/zernio/v1/posts?limit=20&status=scheduled'Query parameters: limit, offset or cursor, status, platform, profileId, updatedSince, externalId, source.
Response:
{
"posts": [],
"pagination": {"page": 1, "limit": 20, "total": 0, "pages": 0, "nextCursor": null}
}Get a Post
maton api '/zernio/v1/posts/{post_id}'Create or Schedule a Post
maton api '/zernio/v1/posts' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{
"content": "We just launched!",
"platforms": [{"platform": "twitter", "accountId": "64e1f0a9e2b5af0012ab34cd"}],
"scheduledFor": "2026-12-15T10:00:00Z",
"timezone": "UTC"
}
JSONBody fields:
content(string): The post text.platforms(array, required): Each target as{"platform": ..., "accountId": ...}, with optionalcustomContent,customMedia, and its ownscheduledFor.scheduledFor(string): When to publish, ISO 8601. UsepublishNow: trueinstead to publish immediately, orisDraft: trueto save without publishing.mediaItems(array): Images or video to attach.dryRun(boolean): Validate the post without creating it.- Platform settings such as
tiktokSettings, plustags,hashtags, andexternalId.
Send an Idempotency-Key header so a retried request doesn't create the post twice. A post can only target accounts that are connected; with none, there is nothing to publish to.
Delete a Post
maton api '/zernio/v1/posts/{post_id}' -X DELETEDeleting a scheduled post cancels it.
Analytics and Metrics
maton api '/zernio/v1/analytics?profileId={profile_id}&limit=20'
maton api '/zernio/v1/metrics/catalog'analytics returns post analytics, filtered by postId, platform, profileId, accountId, fromDate, and toDate. metrics/catalog lists the metric entities (posts, accounts, inbox, ads, campaigns) with their paths, scopes, date limits, granularities, and metrics; query one with its path, such as metrics/posts or metrics/accounts. Platform-specific insights live under analytics/{platform}/..., for example analytics/instagram/account-insights.
Inbox, Messages, and Comments
maton api '/zernio/v1/inbox/conversations?limit=20'
maton api '/zernio/v1/inbox/conversations/{conversation_id}/messages'
maton api '/zernio/v1/inbox/comments?limit=20'
maton api '/zernio/v1/inbox/mentions'Response (inbox/conversations):
{
"data": [],
"pagination": {"hasMore": false, "nextCursor": null},
"meta": {"accountsQueried": 0, "accountsFailed": 0, "failedAccounts": [], "lastUpdated": "2026-12-01T22:10:05.000Z", "accountsSkipped": []}
}The inbox collects direct messages, comments, and mentions from every connected account. To reply in a conversation:
maton api '/zernio/v1/inbox/conversations/{conversation_id}/messages' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{"accountId": "64e1f0a9e2b5af0012ab34cd", "message": "Thanks for reaching out, we'll follow up today."}
JSONComment moderation lives under inbox/comments/{post_id}/{comment_id} (reply, hide, pin, like, private-reply). Contacts and broadcasts:
maton api '/zernio/v1/contacts?limit=20'
maton api '/zernio/v1/broadcasts'Messaging Channels
Zernio also sends over WhatsApp, SMS, email, and voice from numbers and mailboxes connected to the workspace:
- WhatsApp:
whatsapp/templates,whatsapp/phone-numbers,whatsapp/business-profile,whatsapp/flows, and calling underwhatsapp/calls. Messages to a WhatsApp conversation go through the inbox endpoint above. - SMS:
POST sms/messageswithfrom,to,text, optionalmediaUrls, andsendAt;sms/opt-outsandsms/sender-idsmanage compliance. - Email:
email/threads,email/messages,email/drafts,email/folders, andemail/messages/{message_id}/reply.
maton api '/zernio/v1/sms/messages' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{"from": "+15550100100", "to": "+15550100199", "text": "Your order has shipped."}
JSONEach send reaches a real person and is usually billed.
Ads
maton api '/zernio/v1/ads/campaigns?accountId={account_id}&limit=20'
maton api '/zernio/v1/ads/campaigns/{campaign_id}'Ads endpoints cover ad accounts, campaigns, ad sets, ads, creatives, audiences, rules, insights, and lead forms on the connected ad platforms. Most ads reads need an accountId (or adAccountId) and answer 400 accountId is required without one. Status, budget, bidding, and schedule changes go to ads/campaigns/{campaign_id}/status, /bidding, and /ad-schedule.
Webhooks
webhooks/settings lists the workspace's webhooks and can include their signing secrets, so it is kept out of the read-only policy. webhooks/logs lists recent deliveries and is a read:
maton api '/zernio/v1/webhooks/logs?limit=20'Pagination
Lists page in one of three ways: limit with offset (posts, contacts, broadcasts; responses carry pagination.total), limit with cursor (inbox, posts, metrics; continue with pagination.nextCursor until hasMore is false), or page. Pass back exactly what the previous response returned.
Notes
- Connection. The connection holds a Zernio API key (it starts with
sk_), created at https://zernio.com/dashboard/api-keys. A key is either read-write or read-only: a read-only key answers403"This API key has read-only permission. Use a read-write key to perform this action."on every write. The connection's metadata names the key's user (user_id,name,role) and workspace (workspace_id,workspace_name), fromGET v1/users/me. Zernio was formerly called Late. - Zernio organizes work by profile (a brand or client, each with its own connected accounts) and account (one connected social, messaging, or ad account). Most write calls need an
accountIdfromv1/accounts, and many reads acceptprofileIdto narrow the results. The API has about 1,400 endpoints; this reference covers the core, and Zernio's OpenAPI specification lists the rest (see Resources). - Other reads kept out of the read-only policy:
accounts/{accountId}/wechat-server-config(the WeChat server's token and EncodingAESKey),tracking-sites(each site's proxy secret), andfiles/{fileId}/share-link, which is aGETbut grants anyone with the link read access to the file on its storage provider. - Errors are JSON
{"error": ..., "type": ..., "code": ..., "param": ...};missing_required_fieldnames the missing parameter (for exampleprofileIdonqueue/slots,accountIdon ads reads). Unknown paths answer404endpoint_not_found. - The read-only access policy collapses every ads read into one
GET v1/ads/**rule, because a connection's policy holds at most 500 rules and Zernio has more read endpoints than that. It leaves out theconnectendpoints,api-keys, webhook settings, an account's webhook subscription, and the/public/...pages, which take a creator's invite token instead of the API key. - A read-only API key enforces the same split on Zernio's side: any write answers
403. - Posting to X (Twitter) is metered separately:
usage-statsreports X API calls and spend againstxSpendLimitCents.