# Flenvio API > Flenvio publishes and schedules posts to Facebook Pages, Instagram, Threads, YouTube and TikTok from one composer. Its HTTP API lets your own code and AI agents list connected accounts, upload media, publish or schedule one post to many accounts, follow each account’s delivery, retry failures, manage groups and work with comments and direct messages, using an API key. - API base URL: https://api.flenvio.com - Authentication: send your API key in the `x-api-key` header. - Everything in one file: http://flenvio.com/llms-full.txt - Safety rule for agents: ask the human before publishing, scheduling, rescheduling, canceling, retrying, replying, messaging, hiding, deleting or disconnecting anything. ## Get started - [Flenvio API](http://flenvio.com/docs): Publish and schedule to Facebook, Instagram, Threads, YouTube and TikTok from your own code, automations and AI agents, with an API key. - [Quickstart](http://flenvio.com/docs/quickstart): Create an API key, list your connected accounts and publish your first post, with copy-paste examples in curl, JavaScript and Python. - [Authentication](http://flenvio.com/docs/authentication): Authenticate with an API key in the x-api-key header. How keys are scoped, how to revoke them, how to keep them secret and what they can’t do. - [Core concepts](http://flenvio.com/docs/concepts): Accounts and platforms, groups, posts and deliveries, statuses, scheduling and idempotency in the Flenvio API. ## Guides - [Publish to several accounts](http://flenvio.com/docs/guides/publish-to-several-accounts): Send one post to many accounts across platforms, use groups as shortcuts without duplicates, and fit every platform’s rules. - [Upload media](http://flenvio.com/docs/guides/upload-media): Upload images and videos with a direct upload URL, then attach them to posts as single media or carousels. - [Schedule and cancel](http://flenvio.com/docs/guides/schedule-and-cancel): Schedule a post for later, move it to another time, cancel it, and hide old posts from your list. - [Delivery status and retries](http://flenvio.com/docs/guides/delivery-status-and-retry): Follow each account’s delivery until it finishes, find failed deliveries and retry them safely. - [Platform rules and limits](http://flenvio.com/docs/guides/platform-rules): Text length, media counts and types, sizes and video rules for Facebook, Instagram, Threads, YouTube and TikTok, generated from the rules the API enforces. ## API reference - [API reference](http://flenvio.com/docs/reference): Base URL, conventions and every Flenvio API endpoint you can call with an API key. - [Accounts](http://flenvio.com/docs/reference/accounts): List the accounts you can publish to and disconnect accounts. Connecting accounts happens in the dashboard. - [Groups](http://flenvio.com/docs/reference/groups): List, create, update and delete groups: named shortcuts for selecting several accounts at once. - [Posts](http://flenvio.com/docs/reference/posts): Create, list and fetch posts; reschedule, cancel and archive them; retry failed deliveries. - [Media](http://flenvio.com/docs/reference/media): Upload images and videos for posts: direct uploads with a presigned URL, or a single multipart request for small files. - [Comments and messages](http://flenvio.com/docs/reference/comments): Read your comments inbox, reply to, hide and delete comments, and read and send Instagram and Facebook direct messages. - [TikTok creator info](http://flenvio.com/docs/reference/tiktok): Fetch which audiences and interaction settings a TikTok account allows before posting to it. ## More - [Errors and rate limits](http://flenvio.com/docs/errors): The error format, what each status code means, request rate limits, usage limits and how to retry safely. - [For AI agents](http://flenvio.com/docs/ai-agents): Give an AI agent like Claude Code, Cursor or ChatGPT safe access to Flenvio, with a copyable setup prompt and machine-readable docs. - [Changelog](http://flenvio.com/docs/changelog): Changes to the Flenvio API. The API is in early access and endpoints may change.