TrendSwap Account & Credits API

Check user credit balances, transaction logs, and profile authorization

GitHub OpenAPI

Operations 2

GET /api/credits Get Credits Balance & History #
GET /api/user/info Get Current User Profile #

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/trendswap-app:trendswap-app-account-credits-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

trendswap-app-account-credits-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: TrendSwap Account & Credits API
  description: 'TrendSwap is a viral social AI video studio and motion transfer platform supporting 4 global languages (English, Spanish, Japanese, Chinese) that transforms authorized portraits into trending video clips with 100% identity preservation.


    This API provides programmatic access to viral video templates, AI face swap and motion transfer video generation, portrait media management, credit balances, and the official Model Context Protocol (MCP) streamable endpoint for Zapier, Cursor, Claude Desktop, and autonomous agents.'
  version: 1.0.0
  contact:
    name: TrendSwap Developer Support
    email: support@trendswap.app
    url: https://trendswap.app
  license:
    name: Proprietary
    url: https://trendswap.app/terms-of-service
servers:
- url: https://trendswap.app
  description: Production Server
security:
- ApiKeyAuth: []
- XApiKeyAuth: []
tags:
- name: Account & Credits
  description: Check user credit balances, transaction logs, and profile authorization
paths:
  /api/credits:
    get:
      tags:
      - Account & Credits
      summary: Get Credits Balance & History
      description: Retrieves the current available credit balance and recent credit ledger transactions for the authenticated user or API Key.
      operationId: getCredits
      responses:
        '200':
          description: Credits balance details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreditsResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /api/user/info:
    get:
      tags:
      - Account & Credits
      summary: Get Current User Profile
      description: Returns identity, email, tier membership plan, and authorization status of the authenticated account.
      operationId: getUserInfo
      responses:
        '200':
          description: User profile information
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserInfoResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    UserInfoResponse:
      type: object
      properties:
        code:
          type: integer
          example: 0
        data:
          type: object
          properties:
            id:
              type: string
              example: usr_abc123
            name:
              type: string
              example: David Lee
            email:
              type: string
              format: email
              example: support@trendswap.app
            plan:
              type: string
              enum:
              - none
              - trial
              - member
              example: member
            authorized:
              type: boolean
              example: true
            trialEndsAt:
              type:
              - string
              - 'null'
              format: date-time
              example: '2026-11-25T00:00:00Z'
    ErrorResponse:
      type: object
      properties:
        code:
          type: integer
          example: 1
        message:
          type: string
          example: Invalid or expired API Key
    CreditsResponse:
      type: object
      properties:
        code:
          type: integer
          example: 0
        data:
          type: object
          properties:
            balance:
              type: integer
              example: 250
              description: Current credits balance
            userId:
              type: string
              example: usr_abc123
            history:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                    example: tx_123
                  amount:
                    type: integer
                    example: -25
                  reason:
                    type: string
                    example: Video generation job_01h92k8s92
                  created_at:
                    type: string
                    format: date-time
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'TrendSwap API Key in format: Bearer sk_... (obtain from https://trendswap.app/settings/apikeys)'
    XApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: TrendSwap API Key passed in the X-API-Key header