LotsSocial

API Documentation

RESTful API documentation for developers

Quick Info
Base URL
https://api.lots.social
Authentication

API Key (Bearer token or X-API-Key header)

Total Endpoints

49

Getting Started

Authentication

All API requests require authentication using an API key. You can create an API key from your dashboard.

curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://api.lots.social/api/v1/lotssocial/billing

access

GET
/api/v1/lotssocial/billing

Get Billing Status

get_billing_status

Show what LotsSocial costs this person right now: LotsTech Credits balance, which plan (if any) covers how many accounts, how many accounts are paid from credits, the monthly credit spend, and roughly how long the balance lasts. Use it when they ask about credits, cost, billing or whether they can add another account, and after they buy credits to confirm the top-up arrived. Accounts beyond a plan cost credits monthly; posts, media storage, workspaces and brands are free (fair use). Members of someone else's workspace see only whether another account can be added, since the owner pays.

POST
/api/v1/lotssocial/connect-link

Get Connect Link

get_connect_link

Create a link the person opens in their browser to connect a social account (LinkedIn, Instagram, X and the rest) to LotsSocial, or to reconnect one they already have. Use it whenever they ask to connect, add or link an account, or when list_connected_accounts shows the account they want to post to is missing. To renew an existing account (expired, needs reconnecting, or posts fail with an authorization error) pass its account_id: the link renews that same account in place, keeping its ID, brand, post history and scheduled posts, and adds nothing new. Give them the url and ask them to open it; never open it yourself, because it signs in to their social account. The link works for one hour. A new-account link can connect several accounts; accounts beyond plan coverage are paid from credits automatically, and if the balance cannot cover the account, offer get_credits_link. Afterwards call list_connected_accounts (or get_account_details for a reconnect) to confirm. For an agency client who should connect their own accounts without a LotsSocial login, pass purpose client with a label (the client's name) and usually brand_id: that link lasts up to 7 days (expiry_days), returns link_id, is shown only once and can be listed with list_connect_links and revoked with revoke_connect_link (or on the Accounts page). If that client signs in to an account the workspace already has, it is renewed in place, not added again. When the account to renew belongs to the client (you cannot sign in to it), pass purpose client with its account_id: the client renews that one account in place without a LotsSocial login; only that same account is accepted (a different sign-in adds nothing), the link works once, up to 7 days, and is listed and revoked like a client link. Only workspace owners, admins and managers can create client links. For an agency client who should approve or reject posts before they go out, with no LotsSocial login, pass purpose approval with brand_id (required), a label and optionally post_ids (up to 100 posts of that brand, which are put in waiting for approval): the client sees the brand's posts that wait for approval, approves or rejects each with an optional comment, and an approved post goes out on its schedule. The link lasts up to 7 days, is shown only once, and is listed and revoked like a client link. For an agency client who should send photos and videos for one brand, with no LotsSocial login, pass purpose upload with brand_id (required), a label (the client's name), expiry_days and optionally max_files (1 to 50, default 50): the client opens the link on their phone and adds photos and videos in original quality (images up to 50 MB, videos up to 1 GB); each file lands in the brand's media library marked as from the client (list_media with source client_upload). The link is shown only once and is listed and revoked like a client link.

POST
/api/v1/lotssocial/credits/checkout

Get Credits Link

get_credits_link

Create a checkout link to buy LotsTech Credits, which pay for connected accounts beyond plan coverage. Use it when the person asks to add credits, or when get_billing_status or get_connect_link shows there are not enough credits for what they want. Ask how much they want to spend if they have not said (minimum $10). Give them the url to pay in their browser; never ask for card details in the chat. Purchased credits never expire. Call get_billing_status afterwards to confirm they arrived.

GET
/api/v1/lotssocial/connect-links

List Connect Links

list_connect_links

List a workspace's connect links, newest first: link_id, label, brand_id, status (active, expired, revoked, or used: a client reconnect link that already renewed its account) and expires_at. Client links by default (platforms, accounts_connected, reconnect_account_id for a reconnect link); purpose self shows the one-hour links agents created; purpose approval shows client approval links (posts, views, decisions, last_decision_at); purpose upload shows client upload links (files_received, max_files, last_upload_at); all shows every kind. URLs are never shown again after creation. Owners, admins and managers only.

DELETE
/api/v1/lotssocial/connect-links/:link_id

Revoke Connect Link

revoke_connect_link

Revoke a connect link, a client approval link or a client upload link so it no longer opens. Accounts already connected through a connect link stay connected; decisions already made on an approval link stay, and posts still waiting for approval stay held; files already received through an upload link stay in the media library. The link is kept (not deleted) with its history. Owners, admins and managers only.

accounts

GET
/api/v1/lotssocial/accounts/:account_id/reddit-flairs

List Subreddit Flairs

list_subreddit_flairs

List the post flairs of a subreddit, read through one of the person's connected Reddit accounts. Call it before you create, schedule or validate a Reddit post: many communities remove posts without a flair. Returns flairs, each with flair_id and flair_text (pass the one you choose as flair_id and flair_text in platform_fields.reddit), and flair_required (true or false when known, null when it is not). An empty list means the community has no flairs this account can use. Needs a Reddit account from list_connected_accounts (account_id) and the subreddit name without r/. Reads only; nothing is posted.

DELETE
/api/v1/lotssocial/accounts/:account_id

Disconnect Account

disconnect_account

Disconnect a connected social account from LotsSocial so it stops counting toward daily account charges. Use only when the person asks to remove that account. Its LotsSocial post history and analytics are removed with it; posts already on the network stay live there. Refused while the account is in a scheduled post: cancel or edit those posts first. Reconnect later with get_connect_link.

GET
/api/v1/lotssocial/accounts/:account_id

Get Account Details

get_account_details

Get one connected account's profile, follower count, connection health (active, expiring or needs reconnect, with the last error; health.needs_reconnect is true when the network no longer accepts the connection) and posting record. account.audience has the latest daily follower count (subscribers on YouTube) with captured_on and followers_change_7d / followers_change_30d; each change states the days it actually covers, which is shorter while tracking is new. Networks without counts return unavailable_reason, never 0. Pinterest, Instagram and TikTok accounts carry posting_fields: what to pass in platform_fields; for Pinterest the account's boards (board IDs), for Instagram the Facebook Pages usable as a location (location_pages). Use it when posts to the account fail or the person asks about it; if it needs reconnecting, call get_connect_link with account.reconnect.arguments (this account_id) and give them the link (add purpose client when the account belongs to an agency's client): it renews this same account in place. Posts that failed while it needed reconnecting do not retry by themselves: publish them again with update_social_post (post_id, publish_now: true) after the person confirms.

media

POST
/api/v1/lotssocial/media/folders

Create Media Folder

create_media_folder

Create a folder in the media library before uploading into it or moving files in. folder_path may be nested, for example LotsBusiness/Shorts: every level is created. A folder that already exists is reused (created false), and a name that differs only in capitals from one of your folders uses the existing spelling. Folder names use letters, numbers, spaces, - and _. You do not need this before move_media or an upload with folder_path: those create the folder too.

GET
/api/v1/lotssocial/media/folders

List Media Folders

list_media_folders

List the media library's folders: each folder's path, name, parent_path, file_count (files directly in it), image_count, video_count, total_size and subfolder_count. "/" is the root and is always listed, with the files not in any folder. Pass workspace_id to list one workspace's library. Use list_media with folder_path to see one folder's files.

POST
/api/v1/lotssocial/media/move

Move Media

move_media

Move up to 100 files into a folder in one call; folder_path "/" moves them back to the root. The folder is created if it does not exist (nested paths like LotsSocial/Shorts too). All or nothing: if one media_id is not found or you cannot organize it, nothing moves. The stored files, their links and posts using them do not change. Returns each file's from and to folder. Find media_ids with list_media.

POST
/api/v1/lotssocial/media/metadata

Update Media Metadata

update_media_metadata

Update a media file's name, description, alt text, tags or folder so people and agents can find and reuse it. filename renames the file as shown in the media library and in list_media (the stored file and posts using it do not change); list_media search finds it by the new name. folder_path moves the file into a folder ("/" for the root); to move several files at once use move_media.

POST
/api/v1/lotssocial/media/uploads/complete

Complete Media Upload

complete_media_upload

Finish an upload started with create_media_upload after the file has been PUT to upload_url. Verifies the file, saves it to the media library and returns its media_id for create_social_post or update_social_post. Add a description and alt text so the file can be found and reused.

POST
/api/v1/lotssocial/media/uploads

Create Media Upload

create_media_upload

Start uploading a video or image file you have locally. Returns a short-lived upload_url: PUT the raw file bytes to it with the given Content-Type header, then call complete_media_upload with the file_key to get a media_id. Use this for every video and for any image you cannot pass as a URL.

posts

POST
/api/v1/lotssocial/post-logs/:post_log_id/removed

Mark Post Removed

mark_post_removed

Mark a published post as removed from its network (deleted there), or undo that. Analytics stop updating for it; nothing is deleted on the network.

POST
/api/v1/lotssocial/posts/:post_id/cancel

Cancel Scheduled Post

cancel_scheduled_post

Cancel a scheduled post and return it to draft. Use list_social_posts with type=scheduled to find the post UUID.

POST
/api/v1/lotssocial/posts

Create Social Media Post

create_social_post

Create one post for selected connected accounts: a draft, scheduled (scheduled_time), or published right away (publish_now: true, only after the person confirms). Use platform_captions for account-specific copy and platform_fields for Pinterest (board_id, title, link) TikTok on our own app (send_as_draft) and Instagram (trial_reel, cover_media_id or cover_frame_seconds and share_to_feed on a Reel; location_id and collaborators on any post). Brand-scoped work must pass brand_id. Scheduling and publishing now run every network rule (validate_social_post is the dry run); drafts may stay incomplete. publish_now returns accounts[] with each account's status; get_social_post shows the final results. A draft for TikTok on our own app returns review_url, where the person approves it. request_approval: true saves the post as waiting for approval: it never publishes (scheduled or now) until it is approved; send a client the posts with get_connect_link purpose approval.

DELETE
/api/v1/lotssocial/posts/:post_id

Delete Social Post

delete_social_post

Permanently delete a draft or scheduled post from LotsSocial. Published posts cannot be deleted: LotsSocial cannot remove a post from the network, so the refusal returns each network's live link for the person to open and delete it there while signed in. Creators can delete only their own drafts; owners and admins can delete any draft or scheduled post in their workspace. Managers cannot delete posts.

GET
/api/v1/lotssocial/posts/:post_id/analytics

Get Post Analytics

get_post_analytics

Return engagement analytics for one published post, per network. Use list_social_posts with type=posted to find the post UUID. For a post published in the last 7 days this reads the networks first (at most once an hour), so the numbers are current; last_updated says when they were read. A network entry with analytics_available=false has no data yet (or the network does not share it) and gives a reason: report that reason, never as zero engagement.

GET
/api/v1/lotssocial/posts/:post_id

Get Social Post Details

get_social_post

Retrieves complete details for a single social post including all media files, platform logs, connected accounts, publishing status, and edit history. Enforces role-based access control - creators can only access their own posts unless they have manager/admin permissions. approval_status is none, pending (waiting for approval), approved or rejected; client_feedback is the client's latest decision with their comment, and awaiting_client says an approval link is waiting on the post.

GET
/api/v1/lotssocial/posts

List Social Posts

list_social_posts

List draft, scheduled, or published posts with platform, media, creator, workspace, and optional brand filtering. approval_status is none, pending (waiting for approval), approved or rejected; client_feedback is the client's latest decision with their comment, and awaiting_client says an approval link is waiting on the post.

PATCH
/api/v1/lotssocial/posts/:post_id

Update Social Post

update_social_post

Update an existing draft or scheduled post, or publish it right away with publish_now: true (only after the person confirms). Supports account-specific captions, Pinterest and Instagram platform_fields (trial reel, cover, share to Feed, location, collaborators; merged over the saved ones), and replacement platform/media selections; preserves existing attribution and fields not changed by the request. publish_now runs every network rule and returns accounts[] with each account's status; get_social_post shows the final results. A published post whose accounts failed (for example because an account needed reconnecting) does not retry by itself after the account is fixed: pass only post_id and publish_now: true (after the person confirms) to publish its failed accounts again, unchanged; accounts already published are not sent again. request_approval: true puts the post in waiting for approval: it never publishes until it is approved. Changing the content of a post after it was approved or rejected asks for approval again.

POST
/api/v1/lotssocial/posts/validate

Validate Social Post

validate_social_post

Check a post against every network rule without saving it: caption and title limits, required media and fields, file count, format, size, aspect ratio, video length, transparency and animation, per account, and whether each account can publish (an account that needs reconnecting is an error until it is reconnected). Takes the same input as create_social_post (or post_id to check an update, or posts plus platforms for a bulk batch). Returns valid, ready_to_schedule, errors (block scheduling), warnings (a draft can keep them) and notices (files LotsSocial will convert), each with account_id, media_id and the sentence the dashboard shows. Without scheduled_time or type it checks a draft, where every rule is only a warning: valid is then true, and ready_to_schedule is false when scheduling the post as it stands would be refused. Pass scheduled_time to see those as errors. Fix the errors before scheduling; for account_needs_reconnect, get_connect_link with that account_id renews it in place. A trial reel on an Instagram account with fewer than 1,000 followers gets a warning that Instagram may refuse it.

research

GET
/api/v1/lotssocial/research/brand-winners

Get Brand Winning Posts

get_brand_winning_posts

Return the brand’s published posts ranked against its median engagement per platform, from saved analytics. Use for requested performance analysis or relevant prior examples. Reports coverage and relative performance; it does not require a research workflow.

strategy

GET
/api/v1/lotssocial/platform-playbook

Get Platform Playbook

get_platform_playbook

Get versioned, dated platform guidance with official-policy, observed-practice, and experimental evidence kept separate. Agents must obey official rules and treat reach guidance as testable rather than guaranteed.

support

POST
/api/v1/lotssocial/workspaces/:workspace_id/support-access

Grant Support Access

grant_support_access

Let LotsTech support (support@lotstech.com) into one workspace for a limited time so they can look at a problem and fix it. Support joins as Admin and can never change billing, payments, the owner or the team. Without confirmed: true it changes nothing and returns the consent text; grant only after the person has read it and said yes. duration is 24h, 7d (default) or 30d. may_publish (default false) lets support publish fixes live. Granting again while access is on changes the end time. It opens a support case for the person.

GET
/api/v1/lotssocial/workspaces/:workspace_id/support-access

List Support Access

list_support_access

Whether LotsTech support has access to this workspace, until when, and what support did there. available false means support access is not set up yet.

DELETE
/api/v1/lotssocial/workspaces/:workspace_id/support-access

Revoke Support Access

revoke_support_access

End LotsTech support's access to this workspace now. Support leaves the team at once.

workspaces

POST
/api/v1/lotssocial/workspace-transfers/accept

Accept Workspace Transfer

accept_workspace_transfer

For the person a workspace was transferred to. With no arguments: the transfers waiting for you. With transfer_id (or the token from the email link) and no confirm: what moves (brands, connected accounts by name, scheduled and published posts, media, members) and whether your LotsSocial plan or credits cover its connected accounts; show this to the user before accepting. With confirm: true, under the user's instruction: accept. You become the owner, the accounts stay connected, scheduled posts keep publishing, and your plan or credits pay for them from today; the previous owner stays in the workspace if they chose to. Refused with FUNDING_REQUIRED when your plan or credits do not cover the accounts (nothing changes). You must be signed in with the address the transfer was sent to.

DELETE
/api/v1/lotssocial/workspaces/:workspace_id/transfer

Cancel Or Decline Workspace Transfer

cancel_workspace_transfer

Stop a pending workspace transfer, under the user's instruction. The owner cancels with workspace_id; the person it was sent to declines with transfer_id (or the token from the email link), and the owner is told. Nothing moves and the link stops working.

POST
/api/v1/lotssocial/workspace-transfers/decline

Cancel Or Decline Workspace Transfer

cancel_workspace_transfer

Stop a pending workspace transfer, under the user's instruction. The owner cancels with workspace_id; the person it was sent to declines with transfer_id (or the token from the email link), and the owner is told. Nothing moves and the link stops working.

POST
/api/v1/lotssocial/workspaces/:workspace_id/invitations

Invite Workspace Member

invite_workspace_member

Invite someone to a workspace by email as admin, manager, creator or viewer (never owner). Sends the LotsSocial invitation email; the person accepts it signed in with that email address. Owners and admins only. Confirm the email address and role with the person first. Inviting an address with a pending invitation sends it again (at most once a minute). emailSent says whether the email went out.

POST
/api/v1/lotssocial/workspaces/:workspace_id/leave

Leave Workspace

leave_workspace

Leave a workspace you are a member of. The owner cannot leave (the owner deletes the workspace instead). You lose access at once; your posts and media stay in the workspace. Confirm with the person first.

GET
/api/v1/lotssocial/workspaces/:workspace_id/members

List Workspace Members

list_workspace_members

List the members of a workspace: member_id, email, role (owner, admin, manager, creator, viewer), status and joined_at; is_you marks the caller. Owners and admins also get pending_invitations. Any member can call it.

DELETE
/api/v1/lotssocial/workspaces/:workspace_id/members/:member_id

Remove Workspace Member

remove_workspace_member

Remove a member from a workspace. Owners and admins only; the owner cannot be removed. The person loses access at once; their posts and media stay in the workspace. Confirm with the person first.

POST
/api/v1/lotssocial/workspaces/:workspace_id/transfer

Transfer Workspace To Another Account

transfer_workspace

Give a whole workspace to another LotsSocial account, under the owner's instruction. Owner only. We email to_email a link; nothing moves until that person signs in to LotsSocial with that address and accepts, and their own plan or credits must cover the workspace's connected accounts. Everything moves with it: brands, connected social accounts (they stay connected, nobody reconnects), scheduled posts (they keep publishing), published history and analytics, media, team and client connect and approval links. keep_previous_owner (default true) keeps you in the workspace as previous_owner_role (admin by default, or manager, creator or viewer); false makes you leave it. One pending transfer per workspace: a new one replaces it. The link works for 7 days. cancel_workspace_transfer cancels it.

PATCH
/api/v1/lotssocial/workspaces/:workspace_id/members/:member_id

Update Workspace Member

update_workspace_member

Change a member's role to admin, manager, creator or viewer. Workspace owners only. No one can be made owner, and the owner's own role cannot be changed.

General

POST
/api/v1/lotssocial/posts/bulk

Bulk Create Social Media Posts

bulk_create_social_posts

Create up to 50 drafts or scheduled posts for one shared set of connected accounts. Brand-scoped work must pass brand_id. Pinterest needs platform_fields (board_id and title), batch-wide or per post; media-required platforms need media before scheduling.

POST
/api/v1/lotssocial/workspaces

Create Workspace

create_workspace

Create a new workspace owned by the person, for example one per business or client they run. Accounts, posts, media and results in different workspaces never mix. Workspaces are free and unlimited. Afterwards, use get_connect_link with the new workspace_id to connect its social accounts.

DELETE
/api/v1/lotssocial/media/:media_id

Delete Media File

delete_media

Permanently deletes a media file. IMPORTANT: Requires media_id — call list_media first to get the UUID of the media file. Deletion is irreversible.

GET
/api/v1/lotssocial/analytics

Get Aggregate Analytics

get_aggregate_analytics

Return normalized engagement totals, platform breakdowns, top posts, analytics freshness and follower counts for a workspace, brand, account subset, platform, or date range. Totals cover only posts with analytics; analytics_freshness.posts_without_analytics counts published posts that have none yet or whose network does not share them. summary.avg_engagement_rate counts only posts that reported exposure (impressions, else views, else reach): their engagement over their exposure; summary.engagement_rate_basis says how many posts and which denominators it used, and the rate is null with a reason when none did. audience lists every account in scope with its latest daily follower count, captured_on, followers_change_7d / followers_change_30d (each states the days it covers) or unavailable_reason; it ignores the date range.

GET
/api/v1/lotssocial/media/:media_id

Get Media Details

get_media_details

Retrieves details for a specific media file (image/video), including download_url: a link that saves the file with its original name, valid for 15 minutes (download_expires_in, in seconds). Give the person that link when they want the file itself; ask again for a fresh one after it expires. IMPORTANT: Requires media_id. Call list_media first to get the UUID of the media file.

GET
/api/v1/lotssocial/brands

List Brands

list_brands

List the brands in a workspace with how many connected accounts each holds. Brands group accounts (for example one company or client); pass a brand_id when posting so only that brand's accounts are used. Create or regroup brands with create_brand and update_brand.

GET
/api/v1/lotssocial/accounts

List Connected Accounts

list_connected_accounts

List connected social accounts for you, a workspace or one brand: platform, name, connection status, health (needs_reconnect, consecutive_failures, last_error; an account that needs reconnecting also carries reconnect, the get_connect_link arguments that renew it in place), brand, caption_limit (characters this account accepts; X Premium allows 25,000, free X 280) and requires_media (Instagram, YouTube, Pinterest and TikTok need an image or video). Write each caption to its account's caption_limit. When working for a brand, pass brand_id: a workspace can hold several brands' accounts.

GET
/api/v1/lotssocial/media

List Media Files

list_media

Search accessible images and videos by filename, tags, description, or alt text before asking the owner for a new asset. Files a client sent through an upload link have source client_upload and uploaded_via_link (link_id, label, brand_id); pass source client_upload to list only those.

GET
/api/v1/lotssocial/workspaces

List Workspaces

list_workspaces

Retrieves all workspaces the authenticated user is a member of. Returns workspace details including name, slug, type, owner, and the user role and join date for each workspace. Automatically checks subscription status.

PATCH
/api/v1/lotssocial/workspaces/:workspace_id

Update Workspace

update_workspace

Rename a workspace or change its description or logo. Owners and admins only. Manage its members with list_workspace_members, invite_workspace_member, update_workspace_member and remove_workspace_member. Deleting a workspace is done in the LotsSocial app.

POST
/api/v1/lotssocial/media

Upload Media

upload_media

Store an image or video in the LotsSocial media library from a public link (url), or an image from base64, and return its media_id and public URL. Videos (MP4, MOV, WebM up to 200 MB) are streamed from the link. For a file on your computer, use create_media_upload and complete_media_upload instead. Add a description and alt text so the asset can be found and reused.

billing

GET
/api/v1/lotssocial/funding

Check product funding

get_funding_status

Check plan coverage, credit funding and current capacity rates. Plan coverage is used first; capacity beyond it is paid from the owner's credits automatically, charged daily (free credits first, then plan credits, then purchased). If credits run low, give the returned settings_url so the owner can top up or choose a plan.