Skip to content
Docs

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}/comments takes one MP4 in attachments (multipart), up to 50 MiB (52,428,800 bytes), as a post's video. The reply goes only once X shows the video ready; otherwise 422 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_busy with retry_at.
  • A video on a LinkedIn comment is refused (400): LinkedIn's comment box takes one image. See Replies.
  • The answer's media is what X showed for the video; a reply out without it confirmed says video_unconfirmed in warnings.
  • dry_run on an X reply does everything but press Reply and answers 200 CommentDryRun, nothing sent. See Dry run.

2026-11-13#

X API: big Article images and profile pictures travel safely#

  • POST /articles and PATCH /users/me/edit read and send their images once, as POST /posts does 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_busy with retry_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 /posts takes 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; its detail names the limit in bytes.
  • While another post's big files are being sent, a post with files can get 429 errors/files_busy with retry_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, or failed when the browser never got it. See Write Receipts.

X API: files over 10 MB on a post are refused, for now#

  • POST /posts answers 413 errors/payload_too_large when 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 5xx from POST /posts, read GET /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 /posts takes quote: 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 carries attachments, and checks the quoted post is in the box before Post. The answer adds quote: { post_id, confirmed }. Not with gif.
  • POST /posts takes paid_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 adds paid_partnership: { shown, sent }.
  • Files go only once X shows them ready: up to 3 minutes for a video, 40 seconds for images. New codes media_upload_failed and media_upload_timeout, nothing sent.
  • A dry run answers what the box showed: quote, paid_partnership and media (ready_s, status).
  • quote, paid_partnership and dry_run are X only, and part of the request's Idempotency-Key.
  • See Posts.

X API: posts confirm what was asked#

  • A post that asked for paid_partnership or quote and went out without the browser confirming it answers 201 with warnings (paid_label_unconfirmed, paid_label_not_sent, quote_unconfirmed, quote_not_confirmed), never a plain success. A dry run in that case answers 502 errors/not_sent.
  • dry_run takes true or false only: "1" or "True" is 400, never a real post.
  • quote as a JSON number must be exact (X ids don't fit): send it as a string.
  • paid_label_unavailable says 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_disabled otherwise). A duplicate refusal never answers as a labelled post or a quote (duplicate_post).
  • paid_partnership says which of X's two web apps the account was shown (app: x-web or responsive-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} takes lempile_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 with linkedin_sections=experience.
  • A light answer leaves out follower_count, connections_count, shared_connections_count, is_verified, websites, contact_info and birthdate. 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, limit 1–1000 (default 100), read-only. The twin of GET /users/followers: UserFollowingList of UserFollowing.
  • POST /users/follow with undo: true unfollows: the profile's Following button, then X's Unfollow, answered UserUnfollowed once the profile shows its Follow button again (an account it doesn't follow answers already: true with nothing pressed). Same keys and receipts as a follow; an unfollow's fingerprint differs from the follow's. undo takes true or false only.
  • A LinkedIn account answers 501 errors/feature_not_implemented on 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}/capture is 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 own code (x_post_author_mismatch, x_post_protected, x_post_deleted, x_post_age_restricted, x_post_unavailable; x_post_not_loaded when X never showed it). An X post takes no clip.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_hidden when 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: false with code: "capture_blank".

X API: rebrand an account with the API alone#

  • PATCH /users/me/edit changes the whole X profile, not only its website: name, bio, location (an empty one clears it), website, avatar, banner and username (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: true reads every window and presses nothing. A website alone works and answers exactly as before.
  • The answer is ProfileEdited with changed (read back from X), previous and already. 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 in done. Pictures and a handle can take a few minutes: past 140 seconds the answer is 504 and the receipt (GET /writes/{key}) gets the result.
  • After a new handle, Lempile's record of the account follows in the same request (GET /accounts shows 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/repost with undo: true takes the account's repost back (PostUnreposted; a post it hasn't reposted answers already: 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, with in_reply_to on a reply, reposted_id on a repost (what undo takes) and a cursor for the next page.
  • dry_run and undo take true or false only: anything else answers 400 instead of being read as false.
  • 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 with code naming why: replies_limited, post_not_accepted, gif_not_found, browser_busy…
  • GET /posts/{post_id}/comments on X: sort_by=MOST_RECENT (the default) puts replies newest first, MOST_RELEVANT keeps X's order, and comment_id reads that reply's replies. POST /posts/reaction on X likes the reply given as comment_id.
  • X lists come in one page: a cursor on X's replies or a profile's posts answers 400 errors/invalid_parameters instead of the first page again.
  • GET /writes/{key} needs a key with accounts.read or accounts.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#

2026-10-30#

Lempile Direct: reposts read as Unipile's, and undone#

  • A plain repost now reads as Unipile's Post on every read (a profile's posts, one post, the posts search): the reposted post (its id, social_id, author, text and counts) with is_repost: true, reposted_by, repost_id (the repost's own id), repost_parsed_datetime and repost_content. A repost with words is the reposter's own post, with repost_content the 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, websites and contact_info with 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/following answers Unipile's own 501.
  • Chats: content_type: "linkedin_offer" for the ads LinkedIn labels "LinkedIn Offer".
  • Company search: each company's logo, and no object, as Unipile's.
  • Comments: author_details and network_distance as Unipile's; a reply's thread_id is its parent comment.
  • POST /chats with linkedin[inmail]=true sends LinkedIn's Premium InMail as the web does.

Lempile Direct: search, company pages, received invitations and message actions#

  • POST /linkedin/search searches people (every Unipile filter: a company's employees with company), posts and jobs, besides companies, by Unipile's body, a LinkedIn search address (url) or cursor alone. GET /linkedin/search/parameters finds the ids the filters take. Sales Navigator and Recruiter answer 403 errors/feature_not_subscribed.
  • GET /linkedin/company/{identifier}: a company page. GET /users/{identifier}/comments and /reactions: a member's comments and reactions.
  • GET /users/invite/received and POST /users/invite/received/{invitation_id} (accept or decline).
  • Messages: POST and DELETE /messages/{message_id}/reaction, PATCH /messages/{message_id} (an edit, within 60 minutes). Chats: PATCH /chats/{chat_id} (setReadStatus, setMuteStatus) and DELETE /chats/{chat_id}.
  • POST /posts takes repost (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}/messages and POST /chats send 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 answers 415 errors/unsupported_media_type.
  • Read back, a voice note is an attachment of type: "audio" with voice_note: true and its duration.
  • 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 example https://lempile.com/docs/direct/quick-start.md.
  • https://lempile.com/llms.txt lists every page; https://lempile.com/llms-full.txt has 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/followers and GET /users/following answer 501 errors/feature_not_implemented.

2026-06-12#

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.