/api/v1/accountsList connected Instagram professional accounts
accounts:read
Show request & response schema
Loading schema...
Most link-in-bio and comment tools only edit inside a web dashboard. lnkib ships a public REST API and MCP (Model Context Protocol) so external workflows and AI agents can drive Instagram automation and bio pages directly.
Send the key from Settings as the `X-API-Key` header to list and change accounts, media, automation rules, comments, raffles, logs, and bio pages.
Base URL
https://api.lnkib.comAuth
Every `/api/v1` request needs the `X-API-Key` HTTP header. Issue keys in Settings → API Key, and optionally pin scopes and a single Instagram account.
Request example
curl -H "X-API-Key: YOUR_API_KEY" \
https://api.lnkib.com/api/v1/accountsA machine-readable spec with every endpoint's request and response schema, required scope (x-required-scopes) and error format. Give this URL to your AI agent or code generator so it calls the API accurately.
OpenAPI 3.1 (JSON)
https://api.lnkib.com/api/v1/openapi.json/api/v1/accountsList connected Instagram professional accounts
accounts:read
Loading schema...
/api/v1/accounts/:accountId/mediaList Reels and posts for an account
accounts:read
Loading schema...
/api/v1/accounts/:accountId/rulesList comment/DM automation rules
rules:read
Loading schema...
/api/v1/accounts/:accountId/rulesCreate or update an automation rule
rules:write
Loading schema...
/api/v1/rules/:ruleId/toggleEnable or pause a rule
rules:write
Loading schema...
/api/v1/rules/:ruleIdDelete an automation rule
rules:write
Loading schema...
/api/v1/accounts/:accountId/commentsFetch collected comments
comments:read
Loading schema...
/api/v1/accounts/:accountId/comments/raffleDraw fair comment raffle winners
raffle:run
Loading schema...
/api/v1/accounts/:accountId/logsRead auto-reply and DM execution logs
logs:read
Loading schema...
/api/v1/bioList link-in-bio pages
bio:read
Loading schema...
/api/v1/bioCreate a bio page as a private draft (never published by this call)
bio:write
Loading schema...
/api/v1/bio/:bioIdUpdate bio fields (publish state is never changed)
bio:write
Loading schema...
/api/v1/bio/:bioId/publishPublish or unpublish a bio page
bio:publish
Loading schema...
/api/v1/bio/:bioId/linksAppend a link to a bio page
bio:write
Loading schema...
/api/v1/booking-profilesList booking pages
bookings:read
Loading schema...
/api/v1/bookingsList bookings (includes customer details)
bookings:read
Loading schema...
/api/v1/bookingsAdd a manual booking (no customer message is sent)
bookings:write
Loading schema...
/api/v1/storage/presignCreate a presigned URL for bio image upload
bio:write
Loading schema...
The MCP server talks to the same public API. Connect it to Claude, Cursor, or other MCP clients to list accounts, write rules, and run raffles in conversation.
`@lnkib/mcp` is published on npm (source: github.com/lnkib-org/lnkib-mcp). Issue an API key in Settings, then add the config below to Claude or Cursor. The REST API is at `https://api.lnkib.com`.
Claude / Cursor config example
{
"mcpServers": {
"lnkib": {
"command": "npx",
"args": ["-y", "@lnkib/mcp"],
"env": {
"LNKIB_API_KEY": "YOUR_API_KEY",
"LNKIB_API_BASE": "https://api.lnkib.com"
}
}
}
}list_accountsList connected Instagram account UUIDs
list_mediaList posts and Reels for an account
list_rulesList automation rules
upsert_ruleCreate or update a rule (including per-keyword DMs)
toggle_ruleEnable or pause a rule
get_commentsFetch collected comments
draw_comment_raffleDraw comment raffle winners
get_logsRead automation execution logs
list_bio_pagesList your Link-in-Bio pages
create_bio_pageCreate a private bio draft
update_bio_pageUpdate a bio page (links/socials replace the whole list)
append_bio_linkAdd one link to a bio page
set_bio_publishedPublish or unpublish a bio page (needs bio:publish)
list_booking_profilesList booking pages
list_bookingsList bookings (customer data)
create_manual_bookingAdd a manual booking
Connect Claude, ChatGPT or any MCP-capable assistant to lnkib and let it build your Link-in-Bio, read your bookings and add manual bookings. You pay your AI provider; lnkib only provides the connection.
Link-in-Bio and bookings do not require an Instagram connection.
Open Account Settings → API Keys. Start with the "Read-only" preset, or "Read + draft writes" if you want the AI to create bio drafts and manual bookings. Keep bio:publish off until you need it.
Add the MCP config above to your AI app (Claude Desktop, Cursor, …) and restart it. The app runs `npx -y @lnkib/mcp` for you.
Use the example prompts below.
AI-created pages are always private drafts. Open the draft in the Bio tab, check it, and publish it yourself.
Create a Link-in-Bio draft for my bakery "Mina's Baking Studio" with these links: class booking https://example.com/class, recipes https://example.com/recipe. Add my Instagram @mina.bakes and TikTok @mina. Keep it private and show me the result.Show my pending bookings and tell me which days are busiest.Add a manual booking: Jia Kim, 2026-11-20 at 14:00 for 30 minutes, note "beginner class for 2".bio:read · bookings:readRead only. bookings:read includes customer names and contact details.
bio:write · bookings:writeCreate bio drafts, edit pages, add links and add manual bookings. Nothing is published and no customer is messaged.
bio:publishMake a page public or private again. Enable it only if you will approve each publish.
Create a master account with social login, then connect an Instagram professional account if you need automation.
In Settings, pick a name, scopes, and optional account pin. The raw key is shown only once.
Call REST with `X-API-Key`, or paste the MCP JSON copied from Settings into your AI client.
Public API and MCP are available on the free plan. Keys are issued from Settings.
Go to Settings