### Example Agent Interaction Source: https://github.com/adaptlypost/agent/blob/main/README.md Shows a sample user request and agent response for scheduling a LinkedIn post. ```text You: Schedule a LinkedIn post for tomorrow at 9am about our new feature launch Agent: Done. Post scheduled for tomorrow at 9:00 AM on your LinkedIn account. ``` -------------------------------- ### Setup AdaptlyPost Agent with API Key Source: https://github.com/adaptlypost/agent/blob/main/README.md Runs the setup script to configure the agent with your API token. Requires an account and API token created at adaptlypost.com. ```bash ./scripts/adaptlypost.js setup --key adaptly_xxxxx ``` -------------------------------- ### GET /api/v1/webhooks Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Lists all webhooks configured for the workspace. ```APIDOC ## [GET] /api/v1/webhooks ### Description Lists all webhooks configured for the workspace. ### Method GET ### Endpoint /api/v1/webhooks ### Response #### Success Response (200) - List of webhooks (each with id, url, active, etc.) ``` -------------------------------- ### get_webhook Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Get one webhook endpoint. ```APIDOC ## get_webhook ### Description Get one webhook endpoint. ### Method MCP Tool ### Endpoint get_webhook ``` -------------------------------- ### GET /api/v1/me Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Returns information about the current API key or OAuth token, including workspace, role, and permissions. ```APIDOC ## GET /api/v1/me ### Description Returns information about the current API key or OAuth token, including workspace, role, and permissions. ### Method GET ### Endpoint /api/v1/me ### Response #### Success Response (200) - **tokenType** (string) - Type of token. - **tokenId** (string) - Token identifier. - **tokenName** (string) - Token name. - **workspace** (object) - `{ id }`. - **organizationId** (string) - Organization identifier. - **role** (object) - `{ key, name }`. - **issuerRole** (string) - Role of the issuer. - **permissions** (array) - List of permissions. - **can** (object) - `{ draft, schedule, publish }`. - **summary** (string) - Summary. - **expiresAt** (string) - Expiration timestamp. ### Request Example ``` GET /api/v1/me ``` ``` -------------------------------- ### ./scripts/adaptlypost.js setup --key Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Stores the API key for the CLI. Use --local to store it for this project only. This command is run by the user, not the agent. ```APIDOC ## ./scripts/adaptlypost.js setup --key ### Description Stores the API key for the CLI. Use --local to store it for this project only. This command is run by the user, not the agent. ### Method CLI ### Command `./scripts/adaptlypost.js setup --key ` ### Parameters - `--key` (string) - Required - The API key to store. - `--local` (flag) - Optional - Store the key for this project only. ``` -------------------------------- ### Store API key: ./scripts/adaptlypost.js setup --key Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Stores the API key. Use --local to store it for this project only. The user runs this command, not the agent. ```bash ./scripts/adaptlypost.js setup --key ``` -------------------------------- ### generate_image Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Queue an image and get { jobId, sessionId, status } at once. 2 credits standard, 4 premium, refunded on failure. ```APIDOC ## generate_image ### Description Queue an image and get { jobId, sessionId, status } at once. 2 credits standard, 4 premium, refunded on failure. ### Method MCP Tool ### Endpoint generate_image ``` -------------------------------- ### Run MCP Server with Docker Source: https://github.com/adaptlypost/agent/blob/main/README.md Builds and runs the AdaptlyPost MCP server in a Docker container, passing the API token via environment variable. ```bash docker build -t adaptlypost-mcp . ``` ```bash docker run -i -e ADAPTLYPOST_API_TOKEN=adaptly_your_key adaptlypost-mcp ``` -------------------------------- ### Get one post: ./scripts/adaptlypost.js posts:get Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Returns one post's full record with per-platform status and errors. Ids outside the workspace return 404. ```bash ./scripts/adaptlypost.js posts:get --id ``` -------------------------------- ### GET /api/v1/analytics/platform-breakdown Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Returns analytics metrics per platform for a specified date window, along with the metrics each platform supports. ```APIDOC ## GET /api/v1/analytics/platform-breakdown ### Description Returns analytics metrics per platform for a specified date window, along with the metrics each platform supports. ### Method GET ### Endpoint /api/v1/analytics/platform-breakdown ### Parameters #### Query Parameters - **from** (string, ISO 8601) - Required - Start of the window. - **to** (string, ISO 8601) - Required - End of the window, not earlier than `from`. ### Response #### Success Response (200) - **platforms** (array) - Overview metrics per platform. - **supportedMetrics** (array) - Metrics that platform reports. ### Request Example ``` GET /api/v1/analytics/platform-breakdown?from=...&to=... ``` ``` -------------------------------- ### Install Agent Skill via npx Source: https://github.com/adaptlypost/agent/blob/main/mcp-server/README.md Command to add the AdaptlyPost agent skill for Claude Code, Cursor, Windsurf, or Codex. ```bash npx skills add adaptlypost/agent ``` -------------------------------- ### GET /api/v1/social-accounts//pinterest-boards Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Lists all Pinterest boards for a given Pinterest account, including secret boards. Requires posts.draft permission. ```APIDOC ## GET /api/v1/social-accounts//pinterest-boards ### Description Lists all Pinterest boards for a given Pinterest account, including secret boards. ### Method GET ### Endpoint /api/v1/social-accounts//pinterest-boards ### Parameters #### Path Parameters - **id** (string) - Required - Pinterest account ID ### Response #### Success Response (200) - **boards** (array) - List of boards - **id** (string) - Board ID - **name** (string) - Board name - **description** (string) - Board description (optional) - **privacy** (string) - Privacy level: PUBLIC, PROTECTED, or SECRET (optional) - **pinCount** (integer) - Number of pins (optional) ### Error Responses - **400** - Pinterest refuses the request (e.g., account needs reconnection) - **404** - Account not found or not a Pinterest account in this workspace ``` -------------------------------- ### get_analytics_timeseries Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md The same metrics bucketed by day, week or month. ```APIDOC ## get_analytics_timeseries ### Description The same metrics bucketed by day, week or month. ### Method MCP Tool ### Endpoint get_analytics_timeseries ``` -------------------------------- ### get_platform_breakdown Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md The same metrics per platform, with the metrics each platform reports. ```APIDOC ## get_platform_breakdown ### Description The same metrics per platform, with the metrics each platform reports. ### Method MCP Tool ### Endpoint get_platform_breakdown ``` -------------------------------- ### post --google-topic Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Sets Google Business options. The topic defaults to `STANDARD`. ```APIDOC ## [CLI] post --google-topic STANDARD|EVENT|OFFER ### Description Sets Google Business options. The topic defaults to `STANDARD`. ### Method CLI flag ### Parameters #### Flag Parameters - **--google-topic** (enum) - Optional - STANDARD, EVENT, or OFFER - **--google-cta** (string) - Optional - CTA type - **--google-cta-url** (string) - Optional - CTA URL - **--google-event-title** (string) - Optional - Event title - **--google-event-start** (string) - Optional - Event start - **--google-event-end** (string) - Optional - Event end - **--google-offer-code** (string) - Optional - Offer code - **--google-offer-url** (string) - Optional - Offer URL - **--google-offer-terms** (string) - Optional - Offer terms ### Notes - Maps to `googleBusinessConfigs[]` ``` -------------------------------- ### MCP Server Configuration for Local stdio with Bun Source: https://github.com/adaptlypost/agent/blob/main/README.md JSON configuration to run the MCP server locally over stdio using Bun. Requires the server source in mcp-server/ and an ADAPTLYPOST_API_TOKEN environment variable. ```json { "mcpServers": { "adaptlypost": { "command": "bun", "args": ["run", "/path/to/agent/mcp-server/src/index.ts"], "env": { "ADAPTLYPOST_API_TOKEN": "adaptly_your_key" } } } } ``` -------------------------------- ### GET /api/v1/social-accounts//wordpress-categories Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Lists all categories for a WordPress site. Requires posts.draft permission. ```APIDOC ## GET /api/v1/social-accounts//wordpress-categories ### Description Lists all categories for a WordPress site. ### Method GET ### Endpoint /api/v1/social-accounts//wordpress-categories ### Parameters #### Path Parameters - **id** (string) - Required - WordPress account ID ### Response #### Success Response (200) - **categories** (array) - List of categories - **id** (string) - Category ID - **name** (string) - Category name - **parentId** (string or null) - Parent category ID, null for top-level ### Error Responses - **404** - Account not found or not a WordPress account in this workspace - **error** - Site refuses request or cannot be reached ``` -------------------------------- ### GET /api/v1/analytics/overview Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Returns aggregated analytics metrics for posts published within a specified date window, including comparisons with the previous period. Supports optional platform filtering. ```APIDOC ## GET /api/v1/analytics/overview ### Description Returns aggregated analytics metrics for posts published within a specified date window, including comparisons with the previous period. Supports optional platform filtering. ### Method GET ### Endpoint /api/v1/analytics/overview ### Parameters #### Query Parameters - **from** (string, ISO 8601) - Required - Start of the window. - **to** (string, ISO 8601) - Required - End of the window, not earlier than `from`. - **platforms** (string, repeated) - Optional - Filter to specific platforms. ### Response #### Success Response (200) - **views** (object) - `{ value, previousValue, deltaPercent }` - **likes** (object) - `{ value, previousValue, deltaPercent }` - **comments** (object) - `{ value, previousValue, deltaPercent }` - **shares** (object) - `{ value, previousValue, deltaPercent }` - **followers** (object) - `{ value, previousValue, deltaPercent }` - **postsCount** (object) - `{ value, previousValue, deltaPercent }` - **avgViewsPerPost** (object) - `{ value, previousValue, deltaPercent }` - **engagementRate** (object) - `{ value, previousValue, deltaPercent }` - **partialMetrics** (array) - Metrics some selected platform cannot report. - **lastSyncedAt** (string) - Timestamp of last sync. ### Request Example ``` GET /api/v1/analytics/overview?from=2026-08-01&to=2026-08-31&platforms=INSTAGRAM ``` ``` -------------------------------- ### list_webhooks Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md List webhook endpoints and their delivery state. ```APIDOC ## list_webhooks ### Description List webhook endpoints and their delivery state. ### Method MCP Tool ### Endpoint list_webhooks ``` -------------------------------- ### GET /api/v1/analytics/timeseries Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Returns analytics metrics broken down by time buckets (daily, weekly, or monthly) for a specified date window. ```APIDOC ## GET /api/v1/analytics/timeseries ### Description Returns analytics metrics broken down by time buckets (daily, weekly, or monthly) for a specified date window. ### Method GET ### Endpoint /api/v1/analytics/timeseries ### Parameters #### Query Parameters - **from** (string, ISO 8601) - Required - Start of the window. - **to** (string, ISO 8601) - Required - End of the window, not earlier than `from`. - **granularity** (string) - Optional - `DAILY` (default), `WEEKLY`, or `MONTHLY`. ### Response #### Success Response (200) - **points** (array) - Each point: `{ date, views, likes, comments, shares, followers, postsCount, engagementRate }`. ### Request Example ``` GET /api/v1/analytics/timeseries?from=...&to=...&granularity=DAILY ``` ``` -------------------------------- ### GET /api/v1/me Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Retrieves the current API key's role, permissions, and capabilities. Use this endpoint to check what actions the key can perform before planning write operations. ```APIDOC ## GET /api/v1/me ### Description Retrieves the current API key's role, permissions, and capabilities. ### Method GET ### Endpoint /api/v1/me ### Response #### Success Response (200) - **role** (string) - The role associated with the API key. - **permissions** (array) - List of permissions granted to the key. - **can** (object) - Object containing boolean flags for draft, schedule, and publish capabilities. ``` -------------------------------- ### post --youtube-ai-generated Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Sets YouTube AI-generated flag and audio language. ```APIDOC ## [CLI] post --youtube-ai-generated ### Description Sets YouTube AI-generated flag and audio language. ### Method CLI flag ### Parameters #### Flag Parameters - **--youtube-ai-generated** (boolean) - Optional - Sets `aiGenerated` - **--youtube-audio-language** (string) - Optional - BCP-47 tag (e.g., `en`, `pt-BR`, `es-419`) ### Notes - Maps to `youtubeConfigs[].aiGenerated`, `defaultAudioLanguage` ``` -------------------------------- ### create_webhook Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Register an endpoint for every event; the signing secret is shown only in this response. ```APIDOC ## create_webhook ### Description Register an endpoint for every event; the signing secret is shown only in this response. ### Method MCP Tool ### Endpoint create_webhook ``` -------------------------------- ### GET /api/v1/analytics/posts Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Returns per-post analytics metrics for posts published within a specified date window, with pagination and sorting options. ```APIDOC ## GET /api/v1/analytics/posts ### Description Returns per-post analytics metrics for posts published within a specified date window, with pagination and sorting options. ### Method GET ### Endpoint /api/v1/analytics/posts ### Parameters #### Query Parameters - **from** (string, ISO 8601) - Required - Start of the window. - **to** (string, ISO 8601) - Required - End of the window, not earlier than `from`. - **sortBy** (string) - Optional - One of `VIEWS`, `LIKES`, `COMMENTS`, `SHARES`, `SAVES`, `CLICKS`, `IMPRESSIONS`, `ENGAGEMENT_RATE`, `PUBLISHED_AT`. Default `PUBLISHED_AT`. - **page** (integer) - Optional - Page number. - **limit** (integer) - Optional - Number of items per page. ### Response #### Success Response (200) - **posts** (array) - Each post: `{ platform, publishedAt, title, thumbnailUrl, permalink, accountName, metrics { views, likes, comments, shares, saves, clicks, impressions, reach, engagementRate } }`. - **total** (integer) - Total number of posts. - **page** (integer) - Current page. - **limit** (integer) - Items per page. - **hasMore** (boolean) - Whether more pages exist. ### Request Example ``` GET /api/v1/analytics/posts?from=...&to=...&sortBy=VIEWS&page=1&limit=20 ``` ``` -------------------------------- ### GET /api/v1/social-accounts Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Lists all connected social accounts with their details. Returns an array of accounts with id, platform, displayName, username, avatarUrl, and status. ```APIDOC ## GET /api/v1/social-accounts ### Description Lists all connected social accounts with their details. ### Method GET ### Endpoint /api/v1/social-accounts ### Response #### Success Response (200) - **accounts** (array) - List of account objects - **id** (string) - Account ID - **platform** (string) - Platform name (e.g., LINKEDIN, TWITTER) - **displayName** (string) - Display name of the account - **username** (string) - Username (may be empty) - **avatarUrl** (string) - Avatar URL (may be empty) - **status** (string) - 'active' or 'unauthorized' - **pageId** (string) - Facebook Page ID (only for Facebook page accounts) - **supportsInstagramAudio** (boolean) - True if Instagram account supports audio (only for Instagram) - **unauthorizedReason** (string) - Platform's message when status is 'unauthorized' ``` -------------------------------- ### preview_rss_feed Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Fetch a feed without saving it and show the 5 newest items as posts. ```APIDOC ## preview_rss_feed ### Description Fetch a feed without saving it and show the 5 newest items as posts. ### Method MCP Tool ### Endpoint preview_rss_feed ``` -------------------------------- ### POST /api/v1/ai/images Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Starts an AI image generation job. Returns a jobId, sessionId, and status immediately; poll the status endpoint or wait for a webhook. ```APIDOC ## POST /api/v1/ai/images ### Description Starts an AI image generation job. Returns a jobId, sessionId, and status immediately; poll the status endpoint or wait for a webhook. ### Method POST ### Endpoint /api/v1/ai/images ### Parameters #### Request Body - **prompt** (string) - Required - Description of the image. - **aspectRatio** (string) - Optional - One of: 1:1, 16:9, 9:16, 3:2, 2:3, 4:5, 5:4, 21:9, 9:21. - **model** (string) - Optional - `standard` or `premium`. - **quality** (string) - Optional - `LOW`, `MEDIUM`, or `HIGH`. - **referenceImages** (array of strings) - Optional - Public image URLs to steer the result. ### Response #### Success Response (200) - **jobId** (string) - Identifier for the job. - **sessionId** (string) - Identifier to group related images. - **status** (string) - Initial status (e.g., "queued"). ``` -------------------------------- ### ./scripts/adaptlypost.js posts:get --id Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Returns one post's full record with per-platform status and errors. Ids outside the workspace return 404. ```APIDOC ## ./scripts/adaptlypost.js posts:get --id ### Description Returns one post's full record with per-platform status and errors. Ids outside the workspace return 404. ### Method CLI ### Command `./scripts/adaptlypost.js posts:get --id ` ### Parameters - `--id` (string) - Required - The post ID. ### Response Returns the full post record with per-platform status and errors. ``` -------------------------------- ### trigger_analytics_sync Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Refresh analytics now, once per 4 hours per workspace. ```APIDOC ## trigger_analytics_sync ### Description Refresh analytics now, once per 4 hours per workspace. ### Method MCP Tool ### Endpoint trigger_analytics_sync ``` -------------------------------- ### Create a WordPress image post with POST /api/v1/social-posts Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Creates an image post on WordPress. The text becomes the blog post body (up to 100,000 characters); blank lines start paragraphs and bare links become clickable. Supports contentType TEXT, IMAGE, VIDEO, or CAROUSEL with up to 20 images (20 MB each) or one video (MP4/MOV up to 500 MB). wordpressConfigs sets title, excerpt, categoryIds, and tags; a missing tag is created if the user can manage tags, otherwise skipped. A site returning 401 or 403 is marked for reconnect. ```http POST /api/v1/social-posts Body: { "platforms": ["WORDPRESS"], "contentType": "IMAGE", "text": "Our autumn collection is here.\n\nRead about every piece at https://example.com/autumn", "timezone": "UTC", "wordpressConnectionIds": ["conn_id"], "wordpressConfigs": [{ "connectionId": "conn_id", "title": "The autumn collection", "categoryIds": [12], "tags": ["autumn", "new"] }], "mediaUrls": ["https://cdn.adaptlypost.com/.../autumn.jpg"] } ``` -------------------------------- ### refine_caption Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Rewrite originalText from an instruction, or continue partialText. 2 AI credits. ```APIDOC ## refine_caption ### Description Rewrite originalText from an instruction, or continue partialText. 2 AI credits. ### Method MCP Tool ### Endpoint refine_caption ``` -------------------------------- ### resume_rss_feed Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Resume a paused feed. ```APIDOC ## resume_rss_feed ### Description Resume a paused feed. ### Method MCP Tool ### Endpoint resume_rss_feed ``` -------------------------------- ### post --tumblr-tag Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Sets Tumblr tags, title, and source URL. ```APIDOC ## [CLI] post --tumblr-tag ### Description Sets Tumblr tags, title, and source URL. ### Method CLI flag ### Parameters #### Flag Parameters - **--tumblr-tag** (string) - Required - Tag, repeatable up to 30, no commas - **--tumblr-title** (string) - Optional - Title - **--tumblr-source-url** (string) - Optional - Source URL ### Notes - Maps to `tumblrConfigs[].tags`, `title`, `sourceUrl` ``` -------------------------------- ### list_top_posts Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md The best posts in a window by one metric, in one call. ```APIDOC ## list_top_posts ### Description The best posts in a window by one metric, in one call. ### Method MCP Tool ### Endpoint list_top_posts ``` -------------------------------- ### get_rss_feed Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Get one RSS feed with its settings and status. ```APIDOC ## get_rss_feed ### Description Get one RSS feed with its settings and status. ### Method MCP Tool ### Endpoint get_rss_feed ``` -------------------------------- ### get_recurring_post Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Get one recurring post, including why it paused. ```APIDOC ## get_recurring_post ### Description Get one recurring post, including why it paused. ### Method MCP Tool ### Endpoint get_recurring_post ``` -------------------------------- ### GET /api/v1/webhooks/ Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Retrieves a single webhook by its ID. ```APIDOC ## [GET] /api/v1/webhooks/ ### Description Retrieves a single webhook by its ID. ### Method GET ### Endpoint /api/v1/webhooks/ ### Parameters #### Path Parameters - **id** (string) - Required - The webhook ID ### Response #### Success Response (200) - Webhook details (id, url, active, etc.) ``` -------------------------------- ### Store API key in .env Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Required before using the skill. Replace adaptly_xxxxx with your actual API token from Settings > API Tokens. ```bash ADAPTLYPOST_API_KEY=adaptly_xxxxx ``` -------------------------------- ### POST /api/v1/webhooks//test Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Sends a test event to the webhook to verify delivery. ```APIDOC ## [POST] /api/v1/webhooks//test ### Description Sends a test event to the webhook to verify delivery. ### Method POST ### Endpoint /api/v1/webhooks//test ### Parameters #### Path Parameters - **id** (string) - Required - The webhook ID ### Response #### Success Response (200) - Confirmation that the test event was sent ``` -------------------------------- ### recurring:resume command Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Continues from the next occurrence after now. Slots missed while paused are skipped. ```bash ./scripts/adaptlypost.js recurring:resume --id ``` -------------------------------- ### list_post_analytics Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Per-post metrics sorted by any metric; top posts and "how did this post do". ```APIDOC ## list_post_analytics ### Description Per-post metrics sorted by any metric; top posts and "how did this post do". ### Method MCP Tool ### Endpoint list_post_analytics ``` -------------------------------- ### GET /api/v1/analytics/discovered-posts Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Returns posts found on connected accounts that were not published through AdaptlyPost. ```APIDOC ## GET /api/v1/analytics/discovered-posts ### Description Returns posts found on connected accounts that were not published through AdaptlyPost. ### Method GET ### Endpoint /api/v1/analytics/discovered-posts ### Parameters #### Query Parameters - **from** (string, ISO 8601) - Required - Start of the window. - **to** (string, ISO 8601) - Required - End of the window, not earlier than `from`. - **limit** (integer) - Optional - Maximum number of posts to return. ### Response #### Success Response (200) - **posts** (array) - Each post: `{ id, platform, publishedAt, text, thumbnailUrl, permalink, accountName }`. ### Request Example ``` GET /api/v1/analytics/discovered-posts?from=...&to=...&limit=200 ``` ``` -------------------------------- ### get_analytics_overview Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Views, likes, comments, shares, followers, posts and engagement rate for a window, with the change against the previous window. ```APIDOC ## get_analytics_overview ### Description Views, likes, comments, shares, followers, posts and engagement rate for a window, with the change against the previous window. ### Method MCP Tool ### Endpoint get_analytics_overview ``` -------------------------------- ### recurring:get Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Shows one recurring post, including pauseReason and lastError when it paused itself. ```APIDOC ## [CLI] recurring:get ### Description Shows one recurring post, including pauseReason and lastError when it paused itself. ### Command `./scripts/adaptlypost.js recurring:get --id ` ### Parameters - **--id** (string) - Required - Recurring post ID ``` -------------------------------- ### generate_caption Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Write a caption from a prompt, held to a platform's length. Returns { caption }; nothing is posted. 2 AI credits. ```APIDOC ## generate_caption ### Description Write a caption from a prompt, held to a platform's length. Returns { caption }; nothing is posted. 2 AI credits. ### Method MCP Tool ### Endpoint generate_caption ``` -------------------------------- ### recurring:get command Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Shows one recurring post, including pauseReason and lastError when it paused itself. ```bash ./scripts/adaptlypost.js recurring:get --id ``` -------------------------------- ### GET /api/v1/analytics/sync-status Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Returns the current synchronization status for analytics data, including per-account status and any errors. ```APIDOC ## GET /api/v1/analytics/sync-status ### Description Returns the current synchronization status for analytics data, including per-account status and any errors. ### Method GET ### Endpoint /api/v1/analytics/sync-status ### Response #### Success Response (200) - **syncInProgress** (boolean) - Whether a sync is currently running. - **lastSyncedAt** (string) - Timestamp of last sync. - **historyHorizonAt** (string) - Earliest date any account has data for. - **accounts** (array) - One row per account: `{ status, lastSyncedAt, lastErrorMessage, needsAnalyticsReconnect }`. ### Request Example ``` GET /api/v1/analytics/sync-status ``` ``` -------------------------------- ### posts:retry command Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Re-queues FAILED platforms by platformId or platform name. Omit --platforms to retry every failed one after fixing the cause. ```bash ./scripts/adaptlypost.js posts:retry --id [--platforms pid1,BLUESKY] ``` -------------------------------- ### GET /api/v1/analytics/top-posts Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Returns the top posts by a specified metric within a date window, limited to a maximum of 50. ```APIDOC ## GET /api/v1/analytics/top-posts ### Description Returns the top posts by a specified metric within a date window, limited to a maximum of 50. ### Method GET ### Endpoint /api/v1/analytics/top-posts ### Parameters #### Query Parameters - **from** (string, ISO 8601) - Required - Start of the window. - **to** (string, ISO 8601) - Required - End of the window, not earlier than `from`. - **sortBy** (string) - Optional - One of `VIEWS`, `LIKES`, `COMMENTS`, `SHARES`, `SAVES`, `CLICKS`, `IMPRESSIONS`, `ENGAGEMENT_RATE`, `PUBLISHED_AT`. Default `VIEWS`. - **limit** (integer) - Optional - Maximum number of posts to return (max 50). ### Response #### Success Response (200) - **posts** (array) - Each post: `{ platform, publishedAt, title, thumbnailUrl, permalink, accountName, metrics { views, likes, comments, shares, saves, clicks, impressions, reach, engagementRate } }`. ### Request Example ``` GET /api/v1/analytics/top-posts?from=...&to=...&sortBy=VIEWS&limit=10 ``` ``` -------------------------------- ### post --platform-thumbnail Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Sets a thumbnail for a video post on a specific platform. Repeatable flag. A number becomes `thumbnailTimestampMs`, anything else `thumbnailUrl`. ```APIDOC ## [CLI] post --platform-thumbnail PLATFORM= ### Description Sets a thumbnail for a video post on a specific platform. Repeatable flag. A number becomes `thumbnailTimestampMs`, anything else `thumbnailUrl`. ### Method CLI flag ### Parameters #### Flag Parameters - **PLATFORM** (string) - Required - Platform identifier - **** (string or number) - Required - Thumbnail URL or timestamp in milliseconds ### Notes - Repeatable: yes - Also available on `posts:update` - VIDEO posts only ``` -------------------------------- ### GET /api/v1/social-accounts//instagram-audio Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Searches Instagram audio tracks or returns trending audio. Requires posts.draft permission. ```APIDOC ## GET /api/v1/social-accounts//instagram-audio ### Description Searches Instagram audio tracks or returns trending audio when no search query is provided. ### Method GET ### Endpoint /api/v1/social-accounts//instagram-audio ### Parameters #### Path Parameters - **id** (string) - Required - Social account ID #### Query Parameters - **audioType** (string) - Required - Type of audio: `music` or `original_sound` - **searchQuery** (string) - Optional - Search query (up to 100 characters); if omitted, returns trending audio ### Response #### Success Response (200) - **audio** (array) - List of audio items - **audioId** (string) - Audio ID - **audioType** (string) - Type of audio - **title** (string) - Title of the audio - **displayArtist** (string) - Artist name (for music) - **igUsername** (string) - Instagram username (for original sounds) - **durationMs** (integer) - Duration in milliseconds - **coverArtworkUrl** (string) - URL to cover artwork - **profilePictureUrl** (string) - URL to profile picture - **previewUrl** (string) - Preview URL (expires after ~1.5 days) - **instagramUrl** (string) - Instagram URL - **isAdsEligible** (boolean) - Whether audio is eligible for ads ### Error Responses - **400** - Account not connected through Facebook or Instagram rejects the search - **404** - Unknown account ``` -------------------------------- ### GET /api/v1/ai/images/ Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Polls the status of an AI image generation job. Returns completed or failed status with relevant details. ```APIDOC ## GET /api/v1/ai/images/ ### Description Polls the status of an AI image generation job. Returns completed or failed status with relevant details. ### Method GET ### Endpoint /api/v1/ai/images/ ### Parameters #### Path Parameters - **jobId** (string) - Required - The job identifier returned from POST /api/v1/ai/images. ### Response #### Success Response (200) - **status** (string) - `completed` or `failed`. - **imageUrl** (string) - Present when status is `completed`. - **imageId** (string) - Present when status is `completed`. - **error** (string) - Present when status is `failed`. ``` -------------------------------- ### results command Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Shows per-platform outcomes for one post and the source of platformId for retry. Poll while rows are PENDING or PUBLISHING. ```bash ./scripts/adaptlypost.js results --id ``` -------------------------------- ### create_rss_feed Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Connect a feed: each new item becomes a draft, a scheduled post or a published post on the target accounts. ```APIDOC ## create_rss_feed ### Description Connect a feed: each new item becomes a draft, a scheduled post or a published post on the target accounts. ### Method MCP Tool ### Endpoint create_rss_feed ``` -------------------------------- ### post --aspect-ratio Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Sets the aspect ratio for a post on a specific platform. Repeatable flag. Example: `INSTAGRAM=PORTRAIT` or `TIKTOK=VERTICAL:PAD`. ```APIDOC ## [CLI] post --aspect-ratio PLATFORM=RATIO[:PAD] ### Description Sets the aspect ratio for a post on a specific platform. Repeatable flag. Example: `INSTAGRAM=PORTRAIT` or `TIKTOK=VERTICAL:PAD`. ### Method CLI flag ### Parameters #### Flag Parameters - **PLATFORM** (string) - Required - Platform identifier - **RATIO** (string) - Required - Aspect ratio (e.g., PORTRAIT, VERTICAL) - **PAD** (string) - Optional - Padding option ### Notes - Repeatable: yes - IMAGE and CAROUSEL posts only ``` -------------------------------- ### posts:bulk command Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Schedules up to 100 posts, each processed independently. Read every result row. ```bash ./scripts/adaptlypost.js posts:bulk --file posts.json ``` -------------------------------- ### POST /api/v1/connect-links Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Creates a link that lets someone connect social accounts to this workspace without signing in. All body fields are optional; sending no body creates a quick link that expires after 7 days. ```APIDOC ## [POST] /api/v1/connect-links ### Description Creates a link that lets someone connect social accounts to this workspace without signing in. All body fields are optional; sending no body creates a quick link that expires after 7 days. ### Method POST ### Endpoint /api/v1/connect-links ### Parameters #### Request Body - **name** (string, up to 80 characters) - Optional - Label in the dashboard list of links - **visibility** (`PUBLIC` or `PRIVATE`) - Optional - `PRIVATE` shows the client only the accounts they connected through this link - **allowedPlatforms** (array of platform types) - Optional - Platforms the client can pick. Omit or send `[]` for every platform - **maxAccounts** (integer, 1 or more) - Optional - The link stops working once that many accounts are connected through it - **expiresAt** (ISO 8601 date-time with `Z` or an offset) - Optional - When the link stops working, at least 1 hour and at most 365 days away - **neverExpires** (boolean) - Optional - `true` keeps the link working until it is revoked. Don't send it with `expiresAt` ### Response #### Success Response (200) - **url** (string) - The link URL - **token** (string) - The link token - **expiresAt** (string or null) - When the link expires, `null` for a link that never expires - **name** (string) - Label in the dashboard list of links - **visibility** (`PUBLIC` or `PRIVATE`) - Visibility setting - **allowedPlatforms** (array) - Platforms the client can pick - **maxAccounts** (integer) - Maximum number of accounts #### Error Response (400) - Expiry out of range, or both `expiresAt` and `neverExpires` sent together ``` -------------------------------- ### GET /api/v1/workspaces Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Retrieves the list of workspaces accessible to the current API key. Use this to obtain valid workspace IDs for the X-Workspace-Id header. ```APIDOC ## GET /api/v1/workspaces ### Description Retrieves the list of workspaces accessible to the current API key. ### Method GET ### Endpoint /api/v1/workspaces ### Response #### Success Response (200) - **workspaces** (array) - List of workspace objects, each containing an id and other details. ``` -------------------------------- ### analytics command Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Shows views, likes, comments, shares, followers, posts, and engagement rate for the window, each with the change against the previous window of the same length. ```bash ./scripts/adaptlypost.js analytics --from 2026-08-01 --to 2026-08-31 [--platforms A,B] ``` -------------------------------- ### GET /api/v1/recurring-posts Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Lists recurring posts with optional pagination and status filters. Returns a list of recurring posts with total count and hasMore flag. ```APIDOC ## GET /api/v1/recurring-posts ### Description Lists recurring posts with optional pagination and status filters. ### Method GET ### Endpoint /api/v1/recurring-posts ### Parameters #### Query Parameters - **limit** (integer) - Optional - Number of results (1-100, default 20) - **offset** (integer) - Optional - Offset for pagination - **statuses** (string) - Optional - Status filter, repeatable (ACTIVE, PAUSED, ENDED) ### Response #### Success Response (200) - **recurringPosts** (array) - List of recurring posts - **total** (integer) - Total number of matching posts - **hasMore** (boolean) - Whether more results are available ``` -------------------------------- ### List Pinterest boards: ./scripts/adaptlypost.js pinterest:boards Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Lists the boards a Pinterest account can pin to, including secret boards, with id, name, and privacy. A board belongs to one Pinterest account, so run it for each Pinterest account you post to. Ask the user which board to use and pass its id to post --pinterest-board, or its name to --pinterest-board-name. ```bash ./scripts/adaptlypost.js pinterest:boards --id ``` -------------------------------- ### GET /api/v1/workspaces Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Lists workspaces accessible to the current token. For API keys, only the key's workspace is returned; for OAuth tokens, all member workspaces are returned. ```APIDOC ## GET /api/v1/workspaces ### Description Lists workspaces accessible to the current token. For API keys, only the key's workspace is returned; for OAuth tokens, all member workspaces are returned. ### Method GET ### Endpoint /api/v1/workspaces ### Response #### Success Response (200) - **workspaces** (array) - Each workspace: `{ id, name, organization { id, name }, role { key, name }, permissions, isDefault, current, can }`. ### Request Example ``` GET /api/v1/workspaces ``` ``` -------------------------------- ### GET /api/v1/recurring-posts/ Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Retrieves a single recurring post by its ID. Returns the full recurring post object including status, schedule, and content details. ```APIDOC ## GET /api/v1/recurring-posts/ ### Description Retrieves a single recurring post by its ID. ### Method GET ### Endpoint /api/v1/recurring-posts/ ### Parameters #### Path Parameters - **id** (string) - Required - ID of the recurring post ### Response #### Success Response (200) - **id** (string) - Recurring post ID - **status** (string) - Status (ACTIVE, PAUSED, ENDED) - **pauseReason** (string) - Reason for pause when status is PAUSED (USER, CONSECUTIVE_FAILURES, SUBSCRIPTION_INACTIVE, ACCESS_LOST, CONNECTION_REMOVED, INVALID_CONTENT) - **lastError** (string) - Last error message - **frequency** (string) - Frequency of recurrence - **interval** (integer) - Interval between occurrences - **weekdays** (array) - Days of the week - **startsAt** (string) - Start date/time - **timezone** (string) - Timezone - **endsOn** (string) - End date/time - **maxOccurrences** (integer) - Maximum number of occurrences - **nextOccurrenceAt** (string) - Next occurrence time (absent when ENDED) - **occurrenceCount** (integer) - Number of posts created so far - **content** (object) - Content to post - **platforms** (array) - Platforms to post to ### Error Responses - **404** - Recurring post not found ``` -------------------------------- ### Request presigned upload URLs Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Mints presigned upload URLs for the given files. Does not store the file; you must PUT the file bytes to uploadUrl and wait for a 2xx response before using publicUrl in mediaUrls. If the PUT is not completed or the URL expires (1 hour), creating a post is rejected with 400 Bad Request and 'Media file(s) not found in storage: '. ```http POST /api/v1/upload-urls Body: { "files": [{ "fileName": "photo.jpg", "mimeType": "image/jpeg" }] } ``` -------------------------------- ### POST /api/v1/ai/captions Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Generates an AI caption for a given prompt and platform. Returns a caption immediately, costing 2 AI credits unless a provider key is connected. ```APIDOC ## POST /api/v1/ai/captions ### Description Generates an AI caption for a given prompt and platform. Returns a caption immediately, costing 2 AI credits unless a provider key is connected. ### Method POST ### Endpoint /api/v1/ai/captions ### Parameters #### Request Body - **prompt** (string) - Required - Up to 2000 characters. - **platform** (string) - Required - Any postable platform, including GOOGLE_BUSINESS. ### Response #### Success Response (200) - **caption** (string) - The generated caption. ### Error Codes - **402** - No credits left. ``` -------------------------------- ### posts:bulk dry-run command Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Checks every item of the same file with POST /api/v1/social-posts/bulk/validate and prints one report per item. Nothing is created. ```bash ./scripts/adaptlypost.js posts:bulk --file posts.json --dry-run ``` -------------------------------- ### Get Post Results (GET /api/v1/social-posts//results) Source: https://github.com/adaptlypost/agent/blob/main/skills/adaptlypost/SKILL.md Retrieves per-platform publishing results for a post. Each platform reports its own status (PENDING, PUBLISHING, PUBLISHED, or FAILED); poll until none are PENDING or PUBLISHING. Use platformId from FAILED rows for retry. tiktokDraftFallback indicates TikTok's daily cap sent content to the inbox as a draft. ```http GET /api/v1/social-posts//results ```