Changelog
What changed in Lempile's APIs and in these docs, newest first.
2026-11-29#
Instagram API, in early access#
- Instagram direct messages, profiles, followers, posts, comments and likes from your own connected Instagram accounts, on Unipile's v1 paths, fields and errors. Each account signs in once, in its own browser, behind its own IP.
- Start with the Overview. Unipile Compatibility lists every Unipile route and what Lempile does with it.
- Early access: write to support@lempile.com to open it for your workspace.
2026-11-15#
X API: a reply with a video, and a reply's dry run#
POST /posts/{post_id}/commentstakes one MP4 inattachments(multipart), up to 50 MiB (52,428,800 bytes), as a post's video. The reply goes only once X shows the video ready; otherwise422 errors/not_sent(media_upload_failed,media_upload_timeout), nothing sent.- The video is part of the request's
Idempotency-Key. Over 50 MiB:413 errors/payload_too_large; while other big files are being sent:429 errors/files_busywithretry_at. - A video on a LinkedIn comment is refused (
400): LinkedIn's comment box takes one image. See Replies. - The answer's
mediais what X showed for the video; a reply out without it confirmed saysvideo_unconfirmedinwarnings. dry_runon an X reply does everything but press Reply and answers200CommentDryRun, nothing sent. See Dry run.
2026-11-13#
X API: big Article images and profile pictures travel safely#
POST /articlesandPATCH /users/me/editread and send their images once, asPOST /postsdoes since yesterday, so a big Article (up to 40 MiB of images) or picture no longer risks losing its HTTP answer. Limits are unchanged.- A body larger than any valid one is refused before it is read: over 60 MiB (62,914,560 bytes) for an Article, over 24 MiB (25,165,824 bytes) for a profile edit,
413 errors/payload_too_large, nothing sent. - While other big files are being sent, either can get
429 errors/files_busywithretry_at: nothing was sent; send it again then, same key.
2026-11-12#
X API: big files travel safely again; pending writes settle by themselves#
POST /poststakes files up to its limits again: 4 images of 8 MiB (8,388,608 bytes), or one video of 50 MiB (52,428,800 bytes). Files are read and sent once, so a big video no longer loses its HTTP answer while the post goes on. Over 50 MiB in all:413 errors/payload_too_large, nothing sent; itsdetailnames the limit in bytes.- While another post's big files are being sent, a post with files can get
429 errors/files_busywithretry_at: nothing was sent; send it again then, same key. - A write left
pending(its HTTP answer lost) settles by itself within minutes from the browser's own answer:done, orfailedwhen the browser never got it. See Write Receipts.
X API: files over 10 MB on a post are refused, for now#
POST /postsanswers413 errors/payload_too_largewhen its files are over 10 MB in all (10,485,760 bytes), before the key is taken or anything is sent: a bigger file could lose its HTTP answer (500 WorkerRequestCancelled) while the post went on. The 50 MB video limit comes back once big files travel safely.- On any
5xxfromPOST /posts, readGET /writes/{key}with the same key, or send again with the same key; never under a new one. See Posts.
X API: quote a post with files, and the Paid partnership label#
POST /poststakesquote: the post to quote, as its id or its link. The browser uses X's own Quote (the post's Repost menu → Quote), so a quote carriesattachments, and checks the quoted post is in the box before Post. The answer addsquote: { post_id, confirmed }. Not withgif.POST /poststakespaid_partnership: true: X's own Paid partnership label on a sponsored post, a quote included. No label in X's post box, no post (422 errors/not_sent,code: "paid_label_unavailable"). The answer addspaid_partnership: { shown, sent }.- Files go only once X shows them ready: up to 3 minutes for a video, 40 seconds for images. New
codesmedia_upload_failedandmedia_upload_timeout, nothing sent. - A dry run answers what the box showed:
quote,paid_partnershipandmedia(ready_s,status). quote,paid_partnershipanddry_runare X only, and part of the request'sIdempotency-Key.- See Posts.
X API: posts confirm what was asked#
- A post that asked for
paid_partnershiporquoteand went out without the browser confirming it answers201withwarnings(paid_label_unconfirmed,paid_label_not_sent,quote_unconfirmed,quote_not_confirmed), never a plain success. A dry run in that case answers502 errors/not_sent. dry_runtakestrueorfalseonly:"1"or"True"is400, never a real post.quoteas a JSON number must be exact (X ids don't fit): send it as a string.paid_label_unavailablesays what X showed (its buttons and menus), and the label is checked again right before Post.- The label works in both of X's web apps: x-web (New Post → Content Disclosures → Paid Partnership) and the older one (the toolbar's Content disclosure → the Paid partnership switch → Done), confirmed by X's own switch state, also right before Post.
- A dry run also checks that Post could be pressed (
post_button_disabledotherwise). A duplicate refusal never answers as a labelled post or a quote (duplicate_post). paid_partnershipsays which of X's two web apps the account was shown (app:x-weborresponsive-web). Proven on a real post on Nov 12: the label shows on the live post.- Big files (over about 5 MB) can lose the HTTP answer (
500 WorkerRequestCancelled) while the write goes on: read the receipt with the same key, never send again under a new one.
2026-11-08#
Lempile Direct: light profile reads#
GET /users/{identifier}takeslempile_light=true, Lempile's own parameter (not Unipile's): the profile's top card and the sections asked, without the second card and the contact info. A profile costs 1 LinkedIn call instead of 3, and 2 instead of 4 withlinkedin_sections=experience.- A light answer leaves out
follower_count,connections_count,shared_connections_count,is_verified,websites,contact_infoandbirthdate. Without the parameter, answers are unchanged. - See Users And Profiles.
2026-11-07#
X API: whom an account follows, and unfollow#
GET /users/me/following?account_id=&limit=(also/users/following): the accounts the X account follows, newest follow first,limit1–1000 (default 100), read-only. The twin ofGET /users/followers:UserFollowingListofUserFollowing.POST /users/followwithundo: trueunfollows: the profile's Following button, then X's Unfollow, answeredUserUnfollowedonce the profile shows its Follow button again (an account it doesn't follow answersalready: truewith nothing pressed). Same keys and receipts as a follow; an unfollow's fingerprint differs from the follow's.undotakestrueorfalseonly.- A LinkedIn account answers
501 errors/feature_not_implementedon both, nothing changed. - Rebrand An X Account gets a step: unfollow what the old brand followed.
X API: page capture, with public X posts and status pages#
POST /accounts/{account_id}/captureis documented: a JPEG of one page from the X account's own browser, read-only (cookie banners and X's overlays hidden, never clicked).- It now opens public X posts, exactly
https://x.com/<handle>/status/<digits>with no query: the picture is the post alone, read from the account's own signed-in X, and only when X shows it under that handle. A post X shows under another author, a protected, deleted, age-gated or unavailable post gives no picture, with its owncode(x_post_author_mismatch,x_post_protected,x_post_deleted,x_post_age_restricted,x_post_unavailable;x_post_not_loadedwhen X never showed it). An X post takes noclip.selector. - And the status pages of Vercel, GitHub, Supabase, Cloudflare, OpenAI, Claude, Netlify, Render, Fly.io, Clerk and Resend: the page itself or one incident's page (
/incidents/<id>). - New guide: Page Capture.
- An X post's picture is taken as the post shows on screen: the first ones came out white. It ends at the post's action bar, without X's sort row, and hides the author's Subscribe and Follow buttons.
x_post: { counts: false }leaves out the time and views row and the action bar too, ending under the post's last content (counts_not_hiddenwhen they can't be hidden: never a picture with counts). A picture that comes out blank, or a post X drew empty, is never returned:ok: falsewithcode: "capture_blank".
X API: rebrand an account with the API alone#
PATCH /users/me/editchanges the whole X profile, not only its website:name,bio,location(an empty one clears it),website,avatar,bannerandusername(the handle, with or without@). Pictures go as files in a multipart body or as JSON{ name, content_type, data_base64 }: a JPEG or PNG, at most 2 MB for the avatar and 5 MB for the header photo. Unipile's names work too (picture,cover_picture,summary,custom_link).dry_run: truereads every window and presses nothing. A website alone works and answers exactly as before.- The answer is
ProfileEditedwithchanged(read back from X),previousandalready. A refusal on the handle (409 errors/username_taken,422 errors/username_field_not_found,403 errors/password_required) carries what was saved before it indone. Pictures and a handle can take a few minutes: past 140 seconds the answer is504and the receipt (GET /writes/{key}) gets the result. - After a new handle, Lempile's record of the account follows in the same request (
GET /accountsshows the new handle). GET /users/me?account_id=on an X account: its profile as X shows it (name, handle, bio, location, website, pictures,can_change_username).POST /posts/repostwithundo: truetakes the account's repost back (PostUnreposted; a post it hasn't reposted answersalready: true).GET /users/me/posts?account_id=&kind=posts|replies|reposts: the account's own posts, replies or reposts from its profile's tabs, newest first, within_reply_toon a reply,reposted_idon a repost (whatundotakes) and acursorfor the next page.dry_runandundotaketrueorfalseonly: anything else answers400instead of being read asfalse.- New guide: Rebrand An X Account.
X API: clearer answers, and three parameters that now work#
- A post or reply the browser refused before pressing Post or Reply still answers
422 errors/not_sent, now withcodenaming why:replies_limited,post_not_accepted,gif_not_found,browser_busy… GET /posts/{post_id}/commentson X:sort_by=MOST_RECENT(the default) puts replies newest first,MOST_RELEVANTkeeps X's order, andcomment_idreads that reply's replies.POST /posts/reactionon X likes the reply given ascomment_id.- X lists come in one page: a
cursoron X's replies or a profile's posts answers400 errors/invalid_parametersinstead of the first page again. GET /writes/{key}needs a key withaccounts.readoraccounts.write.- Answers shared by X and LinkedIn no longer name LinkedIn, and the daily limit says posts and replies, with when the account has room again.
X API: documented#
- The X API has its own docs: Overview, Posts, Replies, Likes, Reposts And Follows, Search And Reads, Profile And Analytics, Articles, Write Receipts and Errors And Limits, with its OpenAPI reference.
DELETE /posts/{post_id}on X now opens the post's menu once it's in place, as pinning does: the first deletes had answered422 errors/delete_unavailablewith nothing deleted.
2026-10-30#
Lempile Direct: reposts read as Unipile's, and undone#
- A plain repost now reads as Unipile's
Poston every read (a profile's posts, one post, the posts search): the reposted post (itsid,social_id,author, text and counts) withis_repost: true,reposted_by,repost_id(the repost's own id),repost_parsed_datetimeandrepost_content. A repost with words is the reposter's own post, withrepost_contentthe post it shares. DELETE /posts/{repost_id}undoes the account's own plain repost, as LinkedIn's "Delete repost" does; the reposted post stays.
Lempile Direct: Unipile's fields, side by side#
GET /users/{identifier}answers what Unipile answers:follower_count,connections_count,shared_connections_count,is_verified,connected_at,websitesandcontact_infowith every profile (three LinkedIn calls), pictures at Unipile's sizes, and an invitation's real direction and state (RECEIVED/IGNORED).GET /users/followers: the account's followers, newest first.GET /users/followinganswers Unipile's own501.- Chats:
content_type: "linkedin_offer"for the ads LinkedIn labels "LinkedIn Offer". - Company search: each company's
logo, and noobject, as Unipile's. - Comments:
author_detailsandnetwork_distanceas Unipile's; a reply'sthread_idis its parent comment. POST /chatswithlinkedin[inmail]=truesends LinkedIn's Premium InMail as the web does.
Lempile Direct: search, company pages, received invitations and message actions#
POST /linkedin/searchsearches people (every Unipile filter: a company's employees withcompany), posts and jobs, besides companies, by Unipile's body, a LinkedIn search address (url) orcursoralone.GET /linkedin/search/parametersfinds the ids the filters take. Sales Navigator and Recruiter answer403 errors/feature_not_subscribed.GET /linkedin/company/{identifier}: a company page.GET /users/{identifier}/commentsand/reactions: a member's comments and reactions.GET /users/invite/receivedandPOST /users/invite/received/{invitation_id}(accept or decline).- Messages:
POSTandDELETE /messages/{message_id}/reaction,PATCH /messages/{message_id}(an edit, within 60 minutes). Chats:PATCH /chats/{chat_id}(setReadStatus,setMuteStatus) andDELETE /chats/{chat_id}. POST /poststakesrepost(a plain repost, as a page, or with your words).POST /linkedin(Unipile's raw route) reads LinkedIn's API with the account's session; writes go through Direct's own routes.
Lempile Direct: voice notes#
POST /chats/{chat_id}/messagesandPOST /chatssend LinkedIn voice notes (voice_message), as Unipile does. Any audio works (m4a, mp3, ogg, webm, wav, aac, flac): Direct turns it into LinkedIn's AAC .m4a. 60 seconds at most (422 errors/invalid_message); a file that isn't audio answers415 errors/unsupported_media_type.- Read back, a voice note is an attachment of
type: "audio"withvoice_note: trueand itsduration. DELETE /messages/{message_id}deletes one of the account's own messages within 60 minutes of sending it, as Unipile does.
Ask AI#
- Ask AI in the header, or ⌘I: ask a question in your own words and get an answer written from these docs, with links to the pages it comes from. Follow-up questions keep the conversation.
- In search, the last row asks Ask AI your search.
- Answers are written by AI, so check the linked pages before you build on them. Questions and answers aren't kept.
The docs for AI tools#
- Copy page on every page: the page as Markdown, ready for an AI chat, or opened straight in ChatGPT or Claude.
- Every page is plain Markdown at its own address plus
.md, for examplehttps://lempile.com/docs/direct/quick-start.md. https://lempile.com/llms.txtlists every page;https://lempile.com/llms-full.txthas them all in one file.- An MCP server at
https://lempile.com/docs/mcp: Cursor, VS Code, Claude Code or any MCP client can search these docs and read any page. Connect in one click from any page's menu.
2026-10-29#
Docs on lempile.com/docs#
Every guide and API reference now lives at https://lempile.com/docs, built from the same Markdown and OpenAPI files as before. New: search across guides and endpoints, code samples in cURL, JavaScript and Python, and Try it on every endpoint, with your own API key. On Lempile Direct, writes are tried with ?dry_run=true first.
Lempile Direct#
- 13 guides and the full API reference: accounts and hosted auth, webhooks, profiles, relations and invitations, chats and messages, posts, comments and reactions, company search.
- Keys belong to a workspace: a Direct key sees only its own workspace's accounts and webhooks. Another workspace's account answers like an unknown one.
- A required parameter that's missing or of the wrong type answers Unipile's
400(errors/missing_parameters,errors/invalid_parameters). GET /users/followersandGET /users/followinganswer501 errors/feature_not_implemented.
2026-06-12#
People Search#
POST /people/search documented: filters by country, location, job title, seniority, company domain, size and industry, with facets and contact availability.
2026-06-11#
Email Finder#
Candidates are verified by Lempile's own verifier; the external verifier fallback is off by default.
2026-06-04#
Email Finder#
POST /email-finder creates a job from LinkedIn profile URLs or ids; poll it, then read its items or download them as CSV.
2026-06-01#
Google Search API#
New searches are queue-first: they answer 202 Accepted with a json_endpoint to poll until status is Success or Error. Cached searches may still answer 200 at once.