API Reference
Laetium REST API
Get a Bearer token from /api/v1/auth/login, or an API key from Settings → API Keys.
Base URL
https://laetium.doombringerz.comPass Authorization: Bearer <token> on every authenticated request. Rate limit: 300 requests / 5 min per IP.
Authentication
/api/v1/auth
/api/v1/auth/registerCreate a user account.
/api/v1/auth/loginAuthenticate and receive access + refresh tokens.
/api/v1/auth/refreshExchange a refresh token for a new access token.
/api/v1/auth/logoutRevoke the current session.
/api/v1/auth/2fa/setupGenerate a TOTP secret and QR code URI.
/api/v1/auth/2fa/verifyVerify a TOTP code and enable 2FA.
/api/v1/auth/eclipsecp/ssoExchange an EclipseCP SSO token for a Laetium session.
Workspaces
/api/v1/workspace
/api/v1/workspace/Workspaces the authenticated user belongs to.
/api/v1/workspace/Create a workspace.
/api/v1/workspace/:idWorkspace details and member list.
/api/v1/workspace/:idUpdate workspace name, slug or branding.
/api/v1/workspace/:id/inviteInvite a user by email with a given role.
/api/v1/workspace/:id/members/:userIdRemove a member from the workspace.
Social accounts
/api/v1/social-accounts
/api/v1/social-accounts/Connected social accounts in the current workspace.
/api/v1/social-accounts/:idDisconnect a social account.
/api/v1/social-accounts/:id/refreshForce-refresh OAuth tokens for an account.
Scheduler
/api/v1/posts
/api/v1/posts/Scheduled and published posts, filterable by status, platform and date range.
/api/v1/posts/Create a scheduled post.
/api/v1/posts/batchBulk-create posts from a CSV payload.
/api/v1/posts/:idUpdate a draft or scheduled post.
/api/v1/posts/:idDelete a post.
/api/v1/posts/:id/publish-nowPublish a scheduled post now.
Analytics
/api/v1/analytics
/api/v1/analytics/overviewAggregate KPIs (followers, impressions, reach, engagement) for a date range.
/api/v1/analytics/top-postsTop posts ranked by engagement rate, reach or likes.
/api/v1/analytics/heatmapEngagement heatmap (hour × day of week).
/api/v1/analytics/best-timesRecommended posting times per platform.
/api/v1/analytics/audienceAudience demographics (age, gender, location), where the platform returns them.
Competitors
/api/v1/competitors
/api/v1/competitors/Tracked competitor accounts.
/api/v1/competitors/Add a public account to track.
/api/v1/competitors/:idRemove a competitor from tracking.
/api/v1/competitors/:id/statsGrowth, posting frequency and engagement trends. Stat collection is not live yet, so this returns whatever has been recorded, which today is nothing.
Reports
/api/v1/reports
/api/v1/reports/List reports and their schedules.
/api/v1/reports/Create a report. Branding fields are refused while report branding is gated off.
/api/v1/reports/:id/downloadDownload a generated report. The PDF renderer is not running, so a report ends at FAILED and there is no file to return.
/api/v1/reports/schedulesRecord a recurring delivery schedule. Nothing runs it while report scheduling is gated off.
/api/v1/reports/schedules/:idCancel a scheduled report.
API keys
/api/v1/api-keys
/api/v1/api-keys/API keys for the current workspace.
/api/v1/api-keys/Create an API key with scopes.
/api/v1/api-keys/:idRevoke an API key.
Need help with the API?
Request body schemas, response shapes, and error codes on request.
contactlaetium@doombringerz.com →
