> ## Documentation Index
> Fetch the complete documentation index at: https://docs.whop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Enroll as a Whop partner

> Enrolls the calling user in the Whop partner program, making their business referrals eligible for earnings. Idempotent — enrolling again keeps the original enrollment time.



## OpenAPI

````yaml /openapi/api-v1-native.yml post /referrals/partners
openapi: 3.1.0
info:
  title: Whop API
  description: >-
    Hand-written V1 endpoints. Merged into the GraphqlRestProxy-generated schema
    at build time.
  version: v1
servers:
  - url: https://{defaultHost}
    variables:
      defaultHost:
        default: api.whop.com/api/v1
security: []
paths:
  /referrals/partners:
    parameters:
      - $ref: '#/components/parameters/ApiVersionDate'
    post:
      tags:
        - Referrals
      summary: Enroll as a Whop partner
      description: >-
        Enrolls the calling user in the Whop partner program, making their
        business referrals eligible for earnings. Idempotent — enrolling again
        keeps the original enrollment time.
      operationId: createReferralPartner
      responses:
        '200':
          description: enrolled
          content:
            application/json:
              schema:
                type: object
                properties:
                  whop_partner_enabled_at:
                    type: string
                    format: date-time
                    description: When the caller became a Whop partner.
                  referral_link:
                    type: string
                    description: >-
                      The caller's referral link — businesses that sign up
                      through it are attributed to the caller.
                required:
                  - whop_partner_enabled_at
                  - referral_link
                additionalProperties: false
        '401':
          $ref: '#/components/responses/Unauthorized'
          description: missing or invalid authentication
        '403':
          $ref: '#/components/responses/Forbidden'
          description: credential lacks the partner-create scope
      security:
        - bearerAuth:
            - referral:partner:create
components:
  parameters:
    ApiVersionDate:
      name: Api-Version-Date
      in: header
      required: false
      schema:
        type: string
        format: date
        example: '2026-07-01'
      description: Pins the request to a dated API version.
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/V1ErrorResponse'
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/V1ErrorResponse'
  schemas:
    V1ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              description: Machine-readable error code.
            message:
              type: string
              description: Human-readable error message.
          required:
            - type
            - message
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: auth-scheme
      description: >-
        An account API key, account scoped JWT, app API key, or user OAuth
        token.

````