Whop Memberships API

A user's access to a product; lifecycle and access management.

Operations 8

GET /memberships List memberships #
GET /memberships/{id} Retrieve a membership #
POST /memberships/{id} Update a membership #
POST /memberships/{id}/add_free_days Add free days to a membership #
POST /memberships/{id}/cancel Cancel a membership #
POST /memberships/{id}/uncancel Uncancel a membership #
POST /memberships/{id}/pause Pause a membership #
POST /memberships/{id}/resume Resume a membership #

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/whop-memberships-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

whop-memberships-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Whop REST API (v1) Checkout Configurations Memberships API
  description: 'The Whop REST API (v1) is the current primary REST surface for the Whop digital-products / memberships / creator-commerce platform. It lets applications manage memberships and access, products (access passes) and their pricing plans, take payments and issue refunds, manage users and companies, build checkout flows, pay out users via transfers, and register webhooks. All requests are authenticated with a Bearer token (`Authorization: Bearer <API_KEY>`); a Company/Account API key and an App API key are the two key types, with OAuth tokens used when acting on behalf of a signed-in Whop user.

    Grounding notes: base URLs, the Bearer scheme, the `List memberships` and `List payments` query parameters and response fields, and the resource / operation catalog are taken from Whop''s published documentation at docs.whop.com (see the docs `llms.txt` index). Individual action sub-paths (for example the cancel / pause / resume membership actions) are modeled from the documented operation names; verify exact path segments against the live reference on reconciliation.'
  version: '1.0'
  contact:
    name: API Evangelist
    email: kin@apievangelist.com
    url: https://apievangelist.com
  license:
    name: API documentation - Whop Terms of Service
    url: https://whop.com/terms-of-service/
servers:
- url: https://api.whop.com/api/v1
  description: Production
- url: https://sandbox-api.whop.com/api/v1
  description: Sandbox
security:
- bearerAuth: []
tags:
- name: Memberships
  description: A user's access to a product; lifecycle and access management.
paths:
  /memberships:
    get:
      operationId: listMemberships
      tags:
      - Memberships
      summary: List memberships
      description: Returns a cursor-paginated list of memberships. `company_id` is required when authenticating with an API key.
      parameters:
      - name: after
        in: query
        schema:
          type: string
        description: Cursor for forward pagination.
      - name: before
        in: query
        schema:
          type: string
        description: Cursor for backward pagination.
      - name: first
        in: query
        schema:
          type: integer
        description: Return the first n elements.
      - name: last
        in: query
        schema:
          type: integer
        description: Return the last n elements.
      - name: company_id
        in: query
        schema:
          type: string
        description: Filter by company; required for API keys.
      - name: direction
        in: query
        schema:
          type: string
          enum:
          - asc
          - desc
        description: Sort direction.
      - name: order
        in: query
        schema:
          type: string
          enum:
          - id
          - created_at
          - status
          - canceled_at
          - date_joined
          - total_spend
        description: Sort field.
      - name: product_ids
        in: query
        schema:
          type: array
          items:
            type: string
        description: Filter by product identifiers.
      - name: plan_ids
        in: query
        schema:
          type: array
          items:
            type: string
        description: Filter by plan identifiers.
      - name: user_ids
        in: query
        schema:
          type: array
          items:
            type: string
        description: Filter by user identifiers.
      - name: statuses
        in: query
        schema:
          type: array
          items:
            type: string
        description: Filter by membership status.
      - name: cancel_options
        in: query
        schema:
          type: array
          items:
            type: string
        description: Filter by cancellation reason.
      - name: promo_code_ids
        in: query
        schema:
          type: array
          items:
            type: string
        description: Filter by applied promo codes.
      - name: created_before
        in: query
        schema:
          type: string
          format: date-time
      - name: created_after
        in: query
        schema:
          type: string
          format: date-time
      responses:
        '200':
          description: A page of memberships.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Membership'
                  page_info:
                    $ref: '#/components/schemas/PageInfo'
        '401':
          $ref: '#/components/responses/Unauthorized'
  /memberships/{id}:
    parameters:
    - name: id
      in: path
      required: true
      schema:
        type: string
      description: The membership ID.
    get:
      operationId: retrieveMembership
      tags:
      - Memberships
      summary: Retrieve a membership
      responses:
        '200':
          description: A membership.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Membership'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
    post:
      operationId: updateMembership
      tags:
      - Memberships
      summary: Update a membership
      description: Update mutable fields on a membership (for example metadata).
      requestBody:
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: The updated membership.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Membership'
        '401':
          $ref: '#/components/responses/Unauthorized'
  /memberships/{id}/add_free_days:
    post:
      operationId: addFreeDaysMembership
      tags:
      - Memberships
      summary: Add free days to a membership
      description: Extends the current renewal period by a number of free days. Path segment modeled from the documented `add-free-days` operation.
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                days:
                  type: integer
              required:
              - days
      responses:
        '200':
          description: The updated membership.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Membership'
  /memberships/{id}/cancel:
    post:
      operationId: cancelMembership
      tags:
      - Memberships
      summary: Cancel a membership
      description: Cancels a membership immediately or at period end. Path segment modeled from the documented `cancel` operation.
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The canceled membership.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Membership'
  /memberships/{id}/uncancel:
    post:
      operationId: uncancelMembership
      tags:
      - Memberships
      summary: Uncancel a membership
      description: Reverses a scheduled cancellation. Path segment modeled from the documented `uncancel` operation.
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The membership.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Membership'
  /memberships/{id}/pause:
    post:
      operationId: pauseMembership
      tags:
      - Memberships
      summary: Pause a membership
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The paused membership.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Membership'
  /memberships/{id}/resume:
    post:
      operationId: resumeMembership
      tags:
      - Memberships
      summary: Resume a membership
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The resumed membership.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Membership'
components:
  responses:
    NotFound:
      description: The requested resource was not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    PageInfo:
      type: object
      description: Cursor pagination metadata.
      properties:
        has_next_page:
          type: boolean
        has_previous_page:
          type: boolean
        start_cursor:
          type:
          - string
          - 'null'
        end_cursor:
          type:
          - string
          - 'null'
    Error:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
    Membership:
      type: object
      description: A user's access to a product. Fields taken from the documented List memberships response.
      properties:
        id:
          type: string
        status:
          type: string
          description: Lifecycle state (for example active, trialing, past_due, canceled).
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        joined_at:
          type:
          - string
          - 'null'
          format: date-time
        canceled_at:
          type:
          - string
          - 'null'
          format: date-time
        renewal_period_start:
          type:
          - string
          - 'null'
          format: date-time
        renewal_period_end:
          type:
          - string
          - 'null'
          format: date-time
        cancel_at_period_end:
          type: boolean
        currency:
          type: string
        license_key:
          type:
          - string
          - 'null'
        manage_url:
          type:
          - string
          - 'null'
        checkout_configuration_id:
          type:
          - string
          - 'null'
        metadata:
          type: object
          additionalProperties: true
        user:
          type: object
          additionalProperties: true
        member:
          type: object
          additionalProperties: true
        company:
          type: object
          additionalProperties: true
        product:
          type: object
          additionalProperties: true
        plan:
          type: object
          additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Whop API key
      description: 'Bearer token authentication. Use a Company/Account API key or an App API key in the `Authorization: Bearer <API_KEY>` header. OAuth access tokens are used when acting on behalf of a signed-in Whop user.'