Instagram API API reference
Early access. Tell us what you're building and we'll set you up. Contact us
Instagram direct messages, profiles, followers, posts, comments and likes from your own connected Instagram accounts, each in its own browser with its own IP. Paths, fields, status codes and error types are Unipile's (v1); what Lempile doesn't do answers 501 errors/feature_not_implemented.
- Base URL
https://api.lempile.com- Authentication
- X-API-KEY header
- Endpoints
- 46 endpoints · v1.0.0
Accounts
Connecting Instagram accounts (API, checkpoints, hosted links), reading and removing them.
- GET
/api/v1/accountsList accounts - POST
/api/v1/accountsConnect an account - POST
/api/v1/accounts/checkpointAnswer a checkpoint - POST
/api/v1/accounts/checkpoint/resendSend the code again - GET
/api/v1/accounts/{account_id}Retrieve an account - POST
/api/v1/accounts/{account_id}Reconnect an account - DELETE
/api/v1/accounts/{account_id}Remove an account - POST
/api/v1/hosted/accounts/linkCreate a hosted link
Chats and messages
The inbox: chats, messages, files, reactions, starting a chat.
- GET
/api/v1/chatsList chats - POST
/api/v1/chatsStart a chat - GET
/api/v1/chats/{chat_id}Retrieve a chat - GET
/api/v1/chats/{chat_id}/messagesList a chat's messages - POST
/api/v1/chats/{chat_id}/messagesSend a message - GET
/api/v1/chats/{chat_id}/attendeesList a chat's attendees - GET
/api/v1/chats/{chat_id}/syncRead a chat again - GET
/api/v1/messagesList messages - GET
/api/v1/messages/{message_id}Retrieve a message - GET
/api/v1/messages/{message_id}/attachments/{attachment_id}Retrieve an attachment - POST
/api/v1/messages/{message_id}/reactionReact to a message - DELETE
/api/v1/messages/{message_id}/reactionRemove a reaction
Attendees
The people the account has chats with.
- GET
/api/v1/chat_attendeesList attendees - GET
/api/v1/chat_attendees/{attendee_id}Retrieve an attendee - GET
/api/v1/chat_attendees/{attendee_id}/pictureRetrieve an attendee's picture - GET
/api/v1/chat_attendees/{attendee_id}/chatsList an attendee's chats - GET
/api/v1/chat_attendees/{attendee_id}/messagesList an attendee's messages
Users
Profiles, followers and following, follows, follow requests, the account's own profile.
- GET
/api/v1/users/meRetrieve the account's own profile - PATCH
/api/v1/users/me/editEdit the profile - GET
/api/v1/users/followersList followers - GET
/api/v1/users/followingList following - POST
/api/v1/users/inviteFollow someone - DELETE
/api/v1/users/invite/sent/{invitation_id}Unfollow someone - GET
/api/v1/users/invite/receivedList follow requests - POST
/api/v1/users/invite/received/{invitation_id}Answer a follow request - GET
/api/v1/users/{identifier}Retrieve a profile
Posts
Posts and reels, comments, likes, creating a feed post.
- GET
/api/v1/users/{identifier}/postsList a profile's posts - POST
/api/v1/postsCreate a post - POST
/api/v1/posts/reactionLike a post - GET
/api/v1/posts/{post_id}Retrieve a post - GET
/api/v1/posts/{post_id}/commentsList comments - POST
/api/v1/posts/{post_id}/commentsComment on a post - GET
/api/v1/posts/{post_id}/reactionsList likes
Webhooks
Messaging and account status events, sent to your address.
Write receipts
What became of a write, by its Idempotency-Key.