Seenpaid Revenue API

The Revenue API from Seenpaid — 4 operation(s) for revenue.

GitHub OpenAPI

Operations 6

GET /api/revenue Revenue rollup across every post #
GET /api/revenue/by-account Revenue per connected Stripe account #
GET /api/revenue/{postId} Revenue for one post #
GET /api/revenue/{postId}/proof Get a post's public revenue-proof status #
POST /api/revenue/{postId}/proof Enable public revenue-proof sharing for a post #
DELETE /api/revenue/{postId}/proof Disable public revenue-proof sharing for a post #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/seenpaid-com:seenpaid-com-revenue-api"
All apis
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.

Get an API 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 Specification

seenpaid-com-revenue-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Seenpaid Com Revenue API
  version: 1.0.0
  contact:
    name: seenpaid support
    email: support@seenpaid.com
    url: https://seenpaid.com
  description: 'Operations tagged Revenue 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: Revenue
paths:
  /api/revenue:
    get:
      operationId: listRevenueByPost
      summary: Revenue rollup across every post
      description: Every post in the org ranked winners-first by revenue earned. Powers the money dashboard. Requires an active plan.
      security:
      - ApiKeyAuth:
        - posts:read
      - OAuth2:
        - posts:read
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                    - true
                  data:
                    type: array
                    items:
                      type: object
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          description: Org is not on an active plan.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Revenue
    servers:
    - url: https://api.seenpaid.com
      description: Production API (Railway)
  /api/revenue/by-account:
    get:
      operationId: getRevenueBySourceAccount
      summary: Revenue per connected Stripe account
      description: Which of the org's connected Stripe accounts (businesses) earned what. Revenue tagged to a disconnected/untagged source rolls into an 'Other' bucket.
      security:
      - ApiKeyAuth:
        - posts:read
      - OAuth2:
        - posts:read
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                    - true
                  data:
                    type: object
                    properties:
                      accounts:
                        type: array
                        items:
                          type: object
                          properties:
                            stripeAccountId:
                              type: string
                            label:
                              type: string
                              nullable: true
                            revenueCents:
                              type: integer
                            payments:
                              type: integer
                      otherCents:
                        type: integer
                      otherPayments:
                        type: integer
        '401':
          $ref: '#/components/responses/Unauthorized'
      tags:
      - Revenue
    servers:
    - url: https://api.seenpaid.com
      description: Production API (Railway)
  /api/revenue/{postId}:
    get:
      operationId: getPostRevenue
      summary: Revenue for one post
      description: Clicks, sales and revenue for a single post. 404s if the post is not in the caller's org.
      security:
      - ApiKeyAuth:
        - posts:read
      - OAuth2:
        - posts:read
      parameters:
      - name: postId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                    - true
                  data:
                    type: object
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
      tags:
      - Revenue
    servers:
    - url: https://api.seenpaid.com
      description: Production API (Railway)
  /api/revenue/{postId}/proof:
    get:
      operationId: getPostProofStatus
      summary: Get a post's public revenue-proof status
      description: Whether public revenue-proof sharing is enabled for this post, and its share token if so.
      security:
      - ApiKeyAuth:
        - posts:read
      - OAuth2:
        - posts:read
      parameters:
      - name: postId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      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:
      - Revenue
    post:
      operationId: enablePostProof
      summary: Enable public revenue-proof sharing for a post
      description: Mint a shareable public revenue-proof page for this post (see GET /api/proof/{token}).
      security:
      - ApiKeyAuth:
        - posts:read
      - OAuth2:
        - posts:read
      parameters:
      - name: postId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                    - true
                  data:
                    type: object
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
      tags:
      - Revenue
    delete:
      operationId: disablePostProof
      summary: Disable public revenue-proof sharing for a post
      security:
      - ApiKeyAuth:
        - posts:read
      - OAuth2:
        - posts:read
      parameters:
      - name: postId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: Disabled
        '401':
          $ref: '#/components/responses/Unauthorized'
      tags:
      - Revenue
    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'
    NotFound:
      description: No resource with that id in the caller's org.
      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.