# Postploy > Connect your AI to Postploy, and schedule social posts from your own code with the REST API and webhooks. > ## Agent Instructions > Postploy's MCP server for posting is https://api.postploy.com/mcp and signs in with OAuth. The REST API base URL is https://api.postploy.com/public/v1 and takes an API key as a Bearer token. The API calls channels accounts. - [Postploy docs](https://docs.postploy.com/index.md): Schedule social posts from the AI you already use, or from your own code. - [Quickstart](https://docs.postploy.com/quickstart.md): Make your first post in a few minutes, with your AI or with the API. - [How Postploy works](https://docs.postploy.com/concepts.md): Teams, channels, posts, statuses and approvals. These ideas are behind every tool and endpoint. - [Connect your AI](https://docs.postploy.com/ai.md): Let Claude, ChatGPT, Cursor or any MCP app plan, check and schedule your posts. - [Claude](https://docs.postploy.com/ai/claude.md): Connect Postploy to Claude on the web, desktop and mobile. - [ChatGPT](https://docs.postploy.com/ai/chatgpt.md): Connect Postploy to ChatGPT on the web and in its apps. - [Claude Code](https://docs.postploy.com/ai/claude-code.md): Connect Postploy to Claude Code in your terminal. - [Cursor](https://docs.postploy.com/ai/cursor.md): Connect Postploy to Cursor. - [Codex](https://docs.postploy.com/ai/codex.md): Connect Postploy to the Codex CLI. - [Other apps](https://docs.postploy.com/ai/other-apps.md): Connect any app that supports remote MCP servers. - [MCP tools](https://docs.postploy.com/ai/tools.md): The tools Postploy gives your AI, and what each one takes. - [REST API](https://docs.postploy.com/api.md): Schedule and manage posts from your own code. - [Schedule posts](https://docs.postploy.com/api/posts.md): Create posts with text, media and threads, hold them for approval, change them and follow them until they go live. - [Platform options](https://docs.postploy.com/api/platform-options.md): What each platform needs, and the extra options you can set in platformFields. - [Errors](https://docs.postploy.com/api/errors.md): What each error means and what to do about it. - [Webhooks](https://docs.postploy.com/webhooks.md): Get a request the moment a post goes live, fails or needs approval. - [Verify requests](https://docs.postploy.com/webhooks/verify.md): Check each request's signature so you know it came from Postploy. - [List channels](https://docs.postploy.com/api-reference/channels/list-channels.md): The social accounts connected to your team that you can post to. Use an account's `id` as `socialAccountId` when you create posts. - [Get platform rules](https://docs.postploy.com/api-reference/channels/get-platform-rules.md): What each platform accepts, such as text length, media counts, file sizes, video lengths and post options. Check a post against these rules with [Check posts](/api-reference/posts/check-posts). - [Create posts](https://docs.postploy.com/api-reference/posts/create-posts.md): Creates up to 50 posts. Every post is checked against its platform first. If any post is invalid, nothing is saved. - [List posts](https://docs.postploy.com/api-reference/posts/list-posts.md): Lists posts, newest first. Narrow the list with the filters below. To give a filter several values, repeat it (`statusGroup=failed&statusGroup=approval`) or separate them with commas (`statusGroup=failed,approval`). - [Get a post](https://docs.postploy.com/api-reference/posts/get-a-post.md): One post, with its status, time, text, media and, once it's published, its link. - [Update a post](https://docs.postploy.com/api-reference/posts/update-a-post.md): Changes a post that hasn't been published. Fields you leave out keep their values. The changed post is checked against its platform before it's saved. - [Delete a post](https://docs.postploy.com/api-reference/posts/delete-a-post.md): Deletes a post. A post whose time is still ahead is deleted for good. A post whose time has passed, such as a published or failed one, moves to the [trash](/api-reference/trash/list-trash), where you can restore it. - [Check posts](https://docs.postploy.com/api-reference/posts/check-posts.md): Checks up to 50 posts against their platforms' rules without saving anything. Give each post a `socialAccountId`, or just a `platform` while you're still planning. - [Count posts](https://docs.postploy.com/api-reference/posts/count-posts.md): How many posts are in each status group, plus how many are blocked by a channel that needs reconnecting. - [Retry a failed post](https://docs.postploy.com/api-reference/posts/retry-a-failed-post.md): Publishes a failed post now. - [Approve posts](https://docs.postploy.com/api-reference/approvals/approve-posts.md): Approves up to 100 posts that are waiting for approval. Each one is scheduled for its time. Posts that can't be approved are listed in `failed` with the reason. - [Send a post back](https://docs.postploy.com/api-reference/approvals/send-a-post-back.md): Sends a post that's waiting for approval back to drafts, with an optional reason and note for the person who wrote it. They appear on the post as `sentBack`. - [Suggest reasons to send back](https://docs.postploy.com/api-reference/approvals/suggest-reasons-to-send-back.md): Short reasons a reviewer might give for sending this post back, written by AI from the post and your team's voice. Only for posts waiting for approval. - [Send posts for review](https://docs.postploy.com/api-reference/approvals/send-posts-for-review.md): Sends up to 50 drafts or posts waiting for approval to someone outside your team, like a client. They open a link, with no account, and approve each post, which schedules it for its time, or send it back with a note, which makes it a draft again with the note in `sentBack`. Give `reviewerId` for som… - [List reviewers](https://docs.postploy.com/api-reference/approvals/list-reviewers.md): The people outside your team you've sent posts to, with their links and how many posts wait on them. Reviewers whose link was turned off aren't listed. - [Import media](https://docs.postploy.com/api-reference/media/import-media.md): Copies an image or video from a public `https` URL into your team's media library. Attach it to posts by putting its `id` in `mediaIds`. - [List trash](https://docs.postploy.com/api-reference/trash/list-trash.md): Posts that were deleted after their time had passed. They stay here until you restore them or delete them for good. - [Restore posts](https://docs.postploy.com/api-reference/trash/restore-posts.md): Takes up to 100 posts out of the trash. - [Delete posts for good](https://docs.postploy.com/api-reference/trash/delete-posts-for-good.md): Deletes up to 100 posts from the trash. This can't be undone. - [Empty trash](https://docs.postploy.com/api-reference/trash/empty-trash.md): Deletes every post in the trash for good. - [Add an endpoint](https://docs.postploy.com/api-reference/webhooks/add-an-endpoint.md): Adds an endpoint that Postploy calls when the events you pick happen. A team can have up to 10. - [List endpoints](https://docs.postploy.com/api-reference/webhooks/list-endpoints.md): Your team's webhook endpoints. Needs owner or admin access. - [Update an endpoint](https://docs.postploy.com/api-reference/webhooks/update-an-endpoint.md): Changes an endpoint. Fields you leave out keep their values. Set `enabled` to `true` to switch an endpoint back on after Postploy switched it off. - [Remove an endpoint](https://docs.postploy.com/api-reference/webhooks/remove-an-endpoint.md): Removes an endpoint and its delivery history. - [Send a test event](https://docs.postploy.com/api-reference/webhooks/send-a-test-event.md): Sends a `ping` event to the endpoint once, without retries. It's sent even while the endpoint is switched off. - [Roll the secret](https://docs.postploy.com/api-reference/webhooks/roll-the-secret.md): Gives the endpoint a new signing secret, shown only this once. For the next 24 hours, requests carry signatures made with both the new and the old secret, so you can swap it in without missing events. - [List deliveries](https://docs.postploy.com/api-reference/webhooks/list-deliveries.md): The endpoint's last 50 deliveries, newest first, and how each went. Deliveries are kept for 30 days. - [Retry a delivery](https://docs.postploy.com/api-reference/webhooks/retry-a-delivery.md): Sends a delivery again, with the same body and delivery id. - [List events](https://docs.postploy.com/api-reference/webhooks/list-events.md): The events you can send to an endpoint. - [post.published](https://docs.postploy.com/webhooks/events/post-published.md): A post went live on its channel. - [post.failed](https://docs.postploy.com/webhooks/events/post-failed.md): A post couldn't be published. - [post.scheduled](https://docs.postploy.com/webhooks/events/post-scheduled.md): A post was added to the calendar. - [post.pending_approval](https://docs.postploy.com/webhooks/events/post-pending-approval.md): A post is waiting for someone to approve it. - [account.needs_reconnect](https://docs.postploy.com/webhooks/events/account-needs-reconnect.md): A channel lost access and must be reconnected. ## OpenAPI Specs - [openapi](/openapi.yaml) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.