Seenpaid Referrals API
The Referrals API from Seenpaid — 1 operation(s) for referrals.
The Referrals API from Seenpaid — 1 operation(s) for referrals.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/seenpaid-com:seenpaid-com-referrals-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Seenpaid Com Referrals API
version: 1.0.0
contact:
name: seenpaid support
email: support@seenpaid.com
url: https://seenpaid.com
description: 'Operations tagged Referrals across 2 of this provider''s published API definitions: openapi.json, seenpaid-com-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.seenpaid.com
description: Production API (Railway)
security:
- ApiKeyAuth: []
- OAuth2:
- mcp
tags:
- name: Referrals
paths:
/api/referrals:
get:
operationId: getReferralsOverview
summary: Referral program overview
description: The caller's referral code + link, stats, reward ledger, milestone progress, and the leaderboard.
security:
- ApiKeyAuth: []
- OAuth2: []
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
enum:
- true
data:
type: object
'401':
$ref: '#/components/responses/Unauthorized'
tags:
- Referrals
servers:
- url: https://api.seenpaid.com
description: Production API (Railway)
components:
responses:
Unauthorized:
description: Missing or invalid credential (API key or OAuth token).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
Error:
type: object
properties:
success:
type: boolean
enum:
- false
error:
type: string
description: Human-readable error message.
issues:
type: array
description: Present only on a 400 Zod validation failure.
items:
type: object
properties:
path:
type: array
items: {}
message:
type: string
required:
- success
- error
securitySchemes:
ApiKeyAuth:
type: http
scheme: bearer
bearerFormat: sp_...
description: 'A per-org API key generated in Settings → API (dashboard) or POST /api/api-keys. Send as `Authorization: Bearer sp_...`. Shown in full only once, at creation.'
x-scopes:
- accounts:read
- accounts:write
- accounts:delete
- posts:read
- posts:write
- posts:delete
- org:billing
- org:manage_members
OAuth2:
type: oauth2
description: 'OAuth 2.1 authorization-code flow with PKCE, for clients that can''t send a static bearer header (e.g. the claude.ai web MCP connector). Consent happens in the seenpaid dashboard; the minted access token (`spa_...`) resolves to the same org context as an API key. Discovery: GET /.well-known/oauth-protected-resource (RFC 9728) and GET /.well-known/oauth-authorization-server.'
flows:
authorizationCode:
authorizationUrl: https://api.seenpaid.com/authorize
tokenUrl: https://api.seenpaid.com/token
refreshUrl: https://api.seenpaid.com/token
scopes:
mcp: Full access to the org's seenpaid workspace (superset scope — currently the only scope actually enforced at the token layer; the granular scopes below are declared for forward compatibility with per-scope OAuth clients and mirror the REST API's real RBAC permissions).
accounts:read: List connected social accounts and revenue-connector connections.
accounts:write: Connect a new social account or revenue connector.
accounts:delete: Disconnect a social account.
posts:read: Read posts, analytics, revenue, insights, notifications, autopilot, experiments and recycle state.
posts:write: Create, edit, or generate posts, media, autopilot config, experiments and recycle rules.
posts:delete: Permanently delete a post.
org:billing: Manage subscription, Stripe Connect, and billing portal access.
org:manage_members: Manage organization membership and roles.
x-refined-from:
- openapi.json
- seenpaid-com-openapi.json
x-mcp:
description: 'The recommended way for an AI agent to drive seenpaid: a single stateless streamable-HTTP MCP endpoint exposing 50 typed, described tools — richer and more agent-native than the raw REST layer above. Authenticate the same way (API key or OAuth Bearer token).'
endpoint: https://api.seenpaid.com/mcp
protocol: Model Context Protocol (JSON-RPC 2.0 over streamable HTTP)
documentation: https://seenpaid.mintlify.app/agents/mcp
x-mcp-tools:
- name: list_posts
description: List posts with status, schedule time, target platforms and any publish errors. Filter by status to answer questions like "what is scheduled this week" or "did anything fail".
- name: get_post
description: Get one post in full, including per-platform publish results — which platforms succeeded, the live URL of each published copy, and the exact error for any that failed.
- name: schedule_post
description: Schedule or immediately publish a post. Give a caption plus either platforms or account_ids; omit both to post to every active account. Omit schedule_for to publish now. Use per_account_captions to tailor the text per platform (e.g. shorter for X).
- name: bulk_schedule
description: Schedule many posts in one call — a content calendar, a thread split across days, a week of promos. Each item is scheduled independently; if one fails the rest still go through and the failures are reported per item.
- name: update_post
description: Edit a draft or scheduled post — change its caption, its time, or both. Published posts cannot be edited (the platforms already have them).
- name: cancel_post
description: Cancel a scheduled post before it goes out. Stops every pending platform job; platforms it already published to are untouched. Reversible in the sense that the post row survives — use delete_post to remove it entirely.
- name: delete_post
description: Permanently delete a post and cancel any pending publishes. This cannot be undone — prefer cancel_post unless the user explicitly asked to delete.
- name: get_analytics
description: The account's revenue attribution over a window — clicks, sales, revenue — with per-platform, per-country and per-device breakdowns, plus the change vs the previous equal-length period.
- name: get_analytics_breakdown
description: Slice attribution by one dimension — where the traffic and money actually came from. Use this to answer "which referrer converts best" or "which UTM campaign earned the most".
- name: get_analytics_timeseries
description: Day-by-day clicks, sales and revenue across a window, plus the change from the previous day. Use for trend questions — "is this growing", "which day spiked" — rather than a single total.
- name: get_top_posts
description: Posts ranked by revenue earned. Answers "which post made the most money" and "what should I do more of".
- name: get_dead_posts
description: 'Posts that got clicks but earned nothing — the content that looks like it worked and didn''t. The single most actionable list in seenpaid: it tells you what to stop making.'
- name: get_post_revenue
description: Revenue, clicks and sales for one specific post.
- name: get_money_dna
description: The patterns behind this account's earning posts — best platform, best caption length, whether links help, best posting time. Derived from posts that actually earned, so it needs a few earning posts before it reports anything.
- name: forecast_post
description: Predict what a draft would earn, based on this account's own history — returns a low/high range and the factors driving it. Use BEFORE scheduling to compare two versions of a caption.
- name: get_money_feed
description: The live activity stream — recent clicks, sales and refunds newest-first, each with the platform and country it came from. Use to answer "what just happened" or "did that post land".
- name: get_attribution_health
description: How much of this account's real Stripe revenue seenpaid can trace back to a post. A low match rate means the tracking setup is incomplete, not that the posts failed — check this before trusting a low revenue number.
- name: create_tracked_link
description: Mint a tracked short link for a post. Clicks on it are attributed to that post, and any Stripe sale that follows is traced back to it. Use this when publishing somewhere seenpaid doesn't post to directly (a newsletter, a video description, a manual post) so the revenue still lands on the right post.
- name: repost
description: 'Re-publish a post that already worked, as a brand-new post with fresh tracking. The classic use: call get_top_posts, then repost the top earner. Optionally override the caption or the platforms — the original post is left untouched.'
- name: get_next_slot
description: Suggest when to schedule the next post. Picks the soonest time on the weekday that has actually earned this account the most money, skipping slots already taken by scheduled posts. Falls back to 'a few hours from now' when there isn't enough revenue history to have an opinion yet.
- name: get_channel_roi
description: Rank connected platforms by what they actually return — revenue, revenue per click, and revenue per post. Answers 'where should I spend my effort' with money instead of follower counts.
- name: add_media_from_url
description: Pull an image or video from a public URL into this account's media library and get back a media id for schedule_post.
- name: create_media_upload
description: 'Step 1 of 2 for uploading a file you already have (rather than one at a public URL — for that use add_media_from_url). Returns a URL to HTTP PUT the bytes to, then call finish_media_upload with the same r2_key to get a media id. Use this for large videos: the bytes go straight to storage, so there is no size ceiling.'
- name: finish_media_upload
description: 'Step 2 of 2 after create_media_upload: confirms the bytes arrived and returns a media id for schedule_post. Verifies the file against storage rather than trusting what you report, so call it only after the PUT succeeded.'
- name: get_connect_url
description: Get the URL a human needs to open to connect a new social account. The agent can't complete OAuth itself — hand this link to the user.
- name: disconnect_account
description: Disconnect a social account. Scheduled posts targeting only that account will stop publishing, so check list_posts first.
- name: summarize_performance
description: 'A single briefing an agent can read aloud: what went out, what earned, what died, what''s broken and what to do next. Use this for ''how are we doing'' rather than calling five tools and stitching them together.'
- name: get_platform_requirements
description: 'What each platform will and won''t accept: caption character limit, whether media is mandatory, whether links in the post body can be tracked, and any platform-specific catch. Check this before writing captions for several platforms at once.'
- name: validate_post
description: Dry-run a caption against the platforms you plan to send it to, WITHOUT publishing. Reports per platform whether it would publish, and exactly why not — too long by N characters, media required and none attached, account disconnected. Call this before schedule_post whenever one caption goes to several platforms.
- name: list_media
description: The account's media library, newest first — images and videos already uploaded or generated. Returns ids you can pass straight to schedule_post instead of regenerating something that already exists.
- name: list_workspaces
description: The workspaces (brands or clients) this account belongs to. Each has its own posts, channels and revenue — an API key is scoped to exactly one, so this is how an agent knows which set of numbers it is looking at.
- name: get_autopilot_status
description: Whether autopilot is on, how often it generates drafts, which platforms it targets, and how many suggestions are waiting for approval.
- name: configure_autopilot
description: Turn autopilot on/off and set its cadence, batch size, target platforms and topic. Autopilot drafts posts for you on a schedule; nothing publishes without approval.
- name: generate_suggestions
description: Run autopilot immediately instead of waiting for its next scheduled batch. Returns how many drafts were created.
- name: list_suggestions
description: The autopilot-generated drafts waiting for a decision. Each has an id to pass to approve_suggestion or dismiss_suggestion.
- name: approve_suggestion
description: Approve an autopilot draft. Returns its caption and intended platform so you can then schedule it with schedule_post — approving does NOT publish on its own.
- name: dismiss_suggestion
description: Reject an autopilot draft so it stops appearing in the queue.
- name: list_experiments
description: All caption A/B tests with their variants, status and which variant is winning on revenue.
- name: get_experiment
description: One A/B test in full — every variant with its clicks, sales and revenue.
- name: create_experiment
description: 'Create a caption A/B test: give one idea and a platform, and seenpaid writes N variants. Nothing goes live until launch_experiment. The winner is decided on revenue earned, not engagement.'
- name: launch_experiment
description: Publish every variant of an A/B test. Each goes out as a real post with its own tracked link, so revenue can be attributed per variant.
- name: get_experiment_winner
description: The winning caption of a finished A/B test, ready to reuse or scale up.
- name: get_recycle_status
description: The rule for automatically re-posting content that already earned money, and which posts currently qualify.
- name: configure_recycle
description: 'Set the auto-recycle rule: re-post anything that earned at least min_revenue, no more often than every cadence_days. Turns proven winners into a repeating stream instead of one-offs.'
- name: list_accounts
description: The connected social accounts — platform, handle, id and status. Use these ids or platforms when scheduling.
- name: get_account_health
description: Which connected accounts are healthy and which stopped working. An account that needs reconnecting will silently fail to publish, so check this when a post didn't go out or before scheduling a big batch.
- name: get_plan_limits
description: 'This account''s plan and its caps: how many workspaces the subscription covers and how many exist. Social accounts inside a workspace are not capped. Check before creating a workspace.'
- name: generate_image
description: Generate an image from a text prompt and store it in this account's media library. Returns a media id you can pass to schedule_post — the fastest way to go from an idea to a post with visuals.
- name: generate_carousel
description: 'Render 2-10 branded carousel slides (1080×1080 PNGs — dark brand background, title slide + numbered content slides) from text YOU write, and get back ordered media ids for schedule_post. Each slide can also take an image_prompt for an AI-generated background, drawn under a scrim so the copy stays readable. This tool only renders; it does not generate copy. Platforms cap attached images: LinkedIn 9, X/Bluesky/Mastodon 4. Instagram is not supported for these.'
- name: list_notifications
description: This account's alerts — sales that landed, publish failures, milestones. Use to catch problems the user hasn't seen yet.