Publish through Lyne from your own tools.
One API key, the profiles already connected to your Lyne account, and the same quota as the app. Call it from code, or plug it into Claude, ChatGPT, Perplexity or any MCP client.
1. Get your key
Keys are issued by the Lyne team for a Lyne account. Connect the profiles you want to publish to in the app first; the key only reaches those profiles. The key is shown once: store it like a password.
Request a key2. Call the API
Every request sends the key as a Bearer token.
See which profiles this key can publish to
curl https://www.lyneonline.com/api/public/contas \
-H "Authorization: Bearer lyne_YOUR_KEY"Publish now, or schedule with scheduled_at. One media item makes a post; two to ten make a carousel. "account" picks the profile when more than one is connected.
curl -X POST https://www.lyneonline.com/api/public/publish \
-H "Authorization: Bearer lyne_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"platform": "instagram",
"account": "yourclient",
"caption": "New collection, live today.",
"media_urls": ["https://example.com/photo.jpg"],
"scheduled_at": "2026-10-02T12:00:00Z"
}'Check how a post went
curl "https://www.lyneonline.com/api/public/publish?post_id=POST_ID" \
-H "Authorization: Bearer lyne_YOUR_KEY"3. Plug Lyne into an assistant
Lyne speaks the Model Context Protocol, so the same endpoint works in every client that supports it. The assistant gets three tools: list connected accounts, publish or schedule a post, and check a post status.
Claude Code
Run once in the terminal:
claude mcp add --transport http lyne https://www.lyneonline.com/api/mcp \
--header "Authorization: Bearer lyne_YOUR_KEY"Claude Desktop, Cursor, Perplexity and other MCP clients
Add this to the client MCP settings file (Claude Desktop: Settings, Developer, Edit Config):
{
"mcpServers": {
"lyne": {
"command": "npx",
"args": [
"mcp-remote",
"https://www.lyneonline.com/api/mcp",
"--header",
"Authorization: Bearer lyne_YOUR_KEY"
]
}
}
}ChatGPT
- Create a custom GPT and open Configure, then Actions.
- Import from URL: https://www.lyneonline.com/api/public/openapi
- Authentication: API Key, type Bearer, and paste your key.
Anything else
The OpenAPI description at the address below generates a client in any language.
https://www.lyneonline.com/api/public/openapiGood to know
- Instagram today. Other networks open here as they are cleared for outside use.
- Media must be public https URLs. Captions up to 2,200 characters, up to 10 media items.
- Publishing uses your plan quota, exactly like the app. When it runs out, the API answers 402.
- Every call is logged against its key. A key can be revoked at any time.
- Publishing cannot be undone. Assistants are told to confirm caption, media and profile before posting.