> ## 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.

# Create app

> Register a new app on the Whop developer platform. Apps provide custom experiences that can be added to products.

Required permissions:
 - `developer:create_app`
 - `developer:manage_api_key`



## OpenAPI

````yaml https://app.stainless.com/api/spec/documented/whopsdk/openapi.documented.yml post /apps
openapi: 3.1.0
info:
  title: Whop API
  description: >-
    The Whop REST API. Please see
    https://docs.whop.com/developer/api/getting-started for more details.
  termsOfService: https://whop.com/tos-developer-api/
  version: 1.0.0
servers:
  - url: https://api.whop.com/api/v1
    description: Production Whop API
security: []
tags:
  - name: Products
    description: Products
  - name: Plans
    description: Plans
  - name: Payments
    description: Payments
  - name: Refunds
    description: Refunds
  - name: Disputes
    description: Disputes
  - name: Dispute alerts
    description: Dispute alerts
  - name: Resolution center cases
    description: Resolution center cases
  - name: Checkout configurations
    description: Checkout configurations
  - name: Setup intents
    description: Setup intents
  - name: Payment methods
    description: Payment methods
  - name: Invoices
    description: Invoices
  - name: Promo codes
    description: Promo codes
  - name: Card transactions
    description: Card transactions
  - name: Ledger accounts
    description: Ledger accounts
  - name: Transfers
    description: Transfers
  - name: Withdrawals
    description: Withdrawals
  - name: Payout methods
    description: Payout methods
  - name: Verifications
    description: Verifications
  - name: Payout accounts
    description: Payout accounts
  - name: Topups
    description: Topups
  - name: Users
    description: Users
  - name: Companies
    description: Companies
  - name: Authorized users
    description: Authorized users
  - name: Fee markups
    description: Fee markups
  - name: Members
    description: Members
  - name: Memberships
    description: Memberships
  - name: Leads
    description: Leads
  - name: Entries
    description: Entries
  - name: Shipments
    description: Shipments
  - name: Reviews
    description: Reviews
  - name: Company token transactions
    description: Company token transactions
  - name: Affiliates
    description: Affiliates
  - name: Experiences
    description: Experiences
  - name: Forums
    description: Forums
  - name: Forum posts
    description: Forum posts
  - name: Chat channels
    description: Chat channels
  - name: Support channels
    description: Support channels
  - name: Messages
    description: Messages
  - name: Reactions
    description: Reactions
  - name: Dm members
    description: Dm members
  - name: Dm channels
    description: Dm channels
  - name: Notifications
    description: Notifications
  - name: Courses
    description: Courses
  - name: Course chapters
    description: Course chapters
  - name: Course lessons
    description: Course lessons
  - name: Course students
    description: Course students
  - name: Course lesson interactions
    description: Course lesson interactions
  - name: Apps
    description: Apps
  - name: Webhooks
    description: Webhooks
  - name: App builds
    description: App builds
  - name: Access tokens
    description: Access tokens
  - name: Account links
    description: Account links
  - name: Files
    description: Files
  - name: Ai chats
    description: Ai chats
  - name: Bounties
    description: Bounties
  - name: Stats
    description: Stats
  - name: Ad campaigns
    description: Ad campaigns
  - name: Ad groups
    description: Ad groups
  - name: Ads
    description: Ads
  - name: Conversions
    description: Conversions
paths:
  /apps:
    post:
      tags:
        - Apps
      summary: Create app
      description: >-
        Register a new app on the Whop developer platform. Apps provide custom
        experiences that can be added to products.


        Required permissions:
         - `developer:create_app`
         - `developer:manage_api_key`
      operationId: createApp
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                base_url:
                  type:
                    - string
                    - 'null'
                  description: >-
                    The base production URL where the app is hosted, such as
                    'https://myapp.example.com'.
                company_id:
                  type: string
                  description: >-
                    The unique identifier of the company to create the app for,
                    starting with 'biz_'.
                  example: biz_xxxxxxxxxxxxxx
                icon:
                  type:
                    - object
                    - 'null'
                  properties:
                    id:
                      type: string
                      description: The ID of an existing file object.
                  required:
                    - id
                  description: The icon image for the app in PNG, JPEG, or GIF format.
                  title: FileInputWithId
                name:
                  type: string
                  description: >-
                    The display name for the app, shown to users on the app
                    store and product pages.
                redirect_uris:
                  type:
                    - array
                    - 'null'
                  items:
                    type: string
                    description: >-
                      Represents textual data as UTF-8 character sequences. This
                      type is most often used by GraphQL to represent free-form
                      human-readable text.
                  description: >-
                    The whitelisted OAuth callback URLs that users are
                    redirected to after authorizing the app.
              required:
                - company_id
                - name
              description: Parameters for CreateApp
      responses:
        '200':
          description: A successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/App'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                      message:
                        type: string
                      code:
                        type:
                          - string
                          - 'null'
                        description: >-
                          A short string indicating the specific error code,
                          e.g. 'parameter_missing', 'parameter_invalid',
                          'invalid_json'
                      param:
                        type:
                          - string
                          - 'null'
                        description: The parameter that caused the error, if applicable
                    required:
                      - type
                      - message
                required:
                  - error
              example:
                error:
                  type: invalid_request_error
                  code: parameter_missing
                  message: 'Missing required parameter: amount.'
                  param: amount
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                      message:
                        type: string
                      code:
                        type:
                          - string
                          - 'null'
                        description: >-
                          A short string indicating the specific error code,
                          e.g. 'parameter_missing', 'parameter_invalid',
                          'invalid_json'
                      param:
                        type:
                          - string
                          - 'null'
                        description: The parameter that caused the error, if applicable
                    required:
                      - type
                      - message
                required:
                  - error
              example:
                error:
                  type: unauthorized
                  message: Invalid or missing API key
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                      message:
                        type: string
                      code:
                        type:
                          - string
                          - 'null'
                        description: >-
                          A short string indicating the specific error code,
                          e.g. 'parameter_missing', 'parameter_invalid',
                          'invalid_json'
                      param:
                        type:
                          - string
                          - 'null'
                        description: The parameter that caused the error, if applicable
                    required:
                      - type
                      - message
                required:
                  - error
              example:
                error:
                  type: forbidden
                  message: You do not have permission to access this resource
        '404':
          description: Not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                      message:
                        type: string
                      code:
                        type:
                          - string
                          - 'null'
                        description: >-
                          A short string indicating the specific error code,
                          e.g. 'parameter_missing', 'parameter_invalid',
                          'invalid_json'
                      param:
                        type:
                          - string
                          - 'null'
                        description: The parameter that caused the error, if applicable
                    required:
                      - type
                      - message
                required:
                  - error
              example:
                error:
                  type: not_found
                  message: Resource not found
        '422':
          description: Verification required
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                      message:
                        type: string
                      code:
                        type:
                          - string
                          - 'null'
                        description: >-
                          A short string indicating the specific error code,
                          e.g. 'parameter_missing', 'parameter_invalid',
                          'invalid_json'
                      param:
                        type:
                          - string
                          - 'null'
                        description: The parameter that caused the error, if applicable
                    required:
                      - type
                      - message
                required:
                  - error
              example:
                error: null
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                      message:
                        type: string
                      code:
                        type:
                          - string
                          - 'null'
                        description: >-
                          A short string indicating the specific error code,
                          e.g. 'parameter_missing', 'parameter_invalid',
                          'invalid_json'
                      param:
                        type:
                          - string
                          - 'null'
                        description: The parameter that caused the error, if applicable
                    required:
                      - type
                      - message
                required:
                  - error
              example:
                error:
                  type: internal_server_error
                  message: An unexpected error occurred
      security:
        - bearerAuth:
            - developer:create_app
            - developer:manage_api_key
      x-codeSamples:
        - lang: JavaScript
          source: >-
            import Whop from '@whop/sdk';


            const client = new Whop({
              apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
            });


            const app = await client.apps.create({ company_id:
            'biz_xxxxxxxxxxxxxx', name: 'name' });


            console.log(app.id);
        - lang: Python
          source: |-
            import os
            from whop_sdk import Whop

            client = Whop(
                api_key=os.environ.get("WHOP_API_KEY"),  # This is the default and can be omitted
            )
            app = client.apps.create(
                company_id="biz_xxxxxxxxxxxxxx",
                name="name",
            )
            print(app.id)
        - lang: Ruby
          source: >-
            require "whop_sdk"


            whop = WhopSDK::Client.new(api_key: "My API Key")


            app = whop.apps.create(company_id: "biz_xxxxxxxxxxxxxx", name:
            "name")


            puts(app)
components:
  schemas:
    App:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier for the app.
          example: app_xxxxxxxxxxxxxx
        name:
          type: string
          description: >-
            The display name of this app shown on the app store and in
            experience navigation. Maximum 30 characters.
          example: Courses
        description:
          type:
            - string
            - 'null'
          description: >-
            A written description of what this app does, displayed on the app
            store listing page. Null if no description has been set.
          example: >-
            A comprehensive analytics dashboard for tracking revenue, members,
            and growth metrics.
        status:
          $ref: '#/components/schemas/AppStatuses'
          description: >-
            The current visibility status of this app on the Whop app store.
            'live' means publicly discoverable, 'unlisted' means accessible only
            via direct link, and 'hidden' means not visible anywhere.
        base_url:
          type:
            - string
            - 'null'
          description: >-
            The production base URL where the app is hosted. Null if no base URL
            is configured.
          example: https://myapp.example.com
        domain_id:
          type: string
          description: >-
            The unique subdomain identifier for this app's proxied URL on the
            Whop platform. Forms the URL pattern
            https://{domain_id}.apps.whop.com.
          example: ab1c2d3e4f5g6h7i8j9k
        verified:
          type: boolean
          description: >-
            Whether this app has been verified by Whop. Verified apps are
            endorsed by Whop and displayed in the featured apps section of the
            app store.
        app_type:
          $ref: '#/components/schemas/AppTypes'
          description: >-
            The target audience classification for this app (e.g., 'b2b_app',
            'b2c_app', 'company_app', 'component').
        origin:
          type:
            - string
            - 'null'
          description: >-
            The full origin URL for this app's proxied domain (e.g.,
            'https://myapp.apps.whop.com'). Null if no proxy domain is
            configured.
        experience_path:
          type:
            - string
            - 'null'
          description: >-
            The URL path template for a specific view of this app, appended to
            the base domain (e.g., '/experiences/[experienceId]'). Null if the
            specified view type is not configured.
          example: /experiences/[experienceId]
        discover_path:
          type:
            - string
            - 'null'
          description: >-
            The URL path template for a specific view of this app, appended to
            the base domain (e.g., '/experiences/[experienceId]'). Null if the
            specified view type is not configured.
          example: /experiences/[experienceId]
        dashboard_path:
          type:
            - string
            - 'null'
          description: >-
            The URL path template for a specific view of this app, appended to
            the base domain (e.g., '/experiences/[experienceId]'). Null if the
            specified view type is not configured.
          example: /experiences/[experienceId]
        skills_path:
          type:
            - string
            - 'null'
          description: >-
            The URL path template for a specific view of this app, appended to
            the base domain (e.g., '/experiences/[experienceId]'). Null if the
            specified view type is not configured.
          example: /experiences/[experienceId]
        openapi_path:
          type:
            - string
            - 'null'
          description: >-
            The URL path template for a specific view of this app, appended to
            the base domain (e.g., '/experiences/[experienceId]'). Null if the
            specified view type is not configured.
          example: /experiences/[experienceId]
        company:
          type: object
          properties:
            id:
              type: string
              description: The unique identifier for the company.
              example: biz_xxxxxxxxxxxxxx
            title:
              type: string
              description: The display name of the company shown to customers.
              example: Pickaxe
          required:
            - id
            - title
          description: The company that owns and publishes this app.
        icon:
          type:
            - object
            - 'null'
          properties:
            url:
              type:
                - string
                - 'null'
              description: >-
                A pre-optimized URL for rendering this attachment on the client.
                This should be used for displaying attachments in apps.
              example: https://media.whop.com/abc123/optimized.jpg
          required:
            - url
          description: >-
            The icon image for this app, displayed on the app store, product
            pages, checkout, and as the default icon for experiences using this
            app.
        creator:
          type: object
          properties:
            id:
              type: string
              description: The unique identifier for the user.
              example: user_xxxxxxxxxxxxx
            name:
              type:
                - string
                - 'null'
              description: The user's display name shown on their public profile.
              example: John Doe
            username:
              type: string
              description: The user's unique username shown on their public profile.
              example: johndoe42
          required:
            - id
            - name
            - username
          description: The user who created and owns the company that published this app.
        requested_permissions:
          type: array
          items:
            type: object
            properties:
              permission_action:
                type: object
                properties:
                  action:
                    type: string
                    description: The identifier of the action.
                  name:
                    type: string
                    description: The human readable name of the action.
                required:
                  - action
                  - name
                description: >-
                  The action that the app will request off of users when a user
                  installs the app.
              is_required:
                type: boolean
                description: Whether the action is required for the app to function.
              justification:
                type: string
                description: The reason for requesting the action.
            required:
              - permission_action
              - is_required
              - justification
            description: >-
              A permission that the app requests from the admin of a company
              during the oauth flow.
          description: >-
            The list of permissions this app requests when installed, including
            both required and optional permissions with justifications.
        stats:
          type:
            - object
            - 'null'
          properties:
            dau:
              type: integer
              description: >-
                The number of unique users who have spent time in this app in
                the last 24 hours. Returns 0 if no usage data is available.
              example: 42
            mau:
              type: integer
              description: >-
                The number of unique users who have spent time in this app in
                the last 28 days. Returns 0 if no usage data is available.
              example: 42
            time_spent_last24_hours:
              type: integer
              description: >-
                The total time, in seconds, that all users have spent in this
                app over the last 24 hours. Returns 0 if no usage data is
                available.
              example: 42
            wau:
              type: integer
              description: >-
                The number of unique users who have spent time in this app in
                the last 7 days. Returns 0 if no usage data is available.
              example: 42
          required:
            - dau
            - mau
            - time_spent_last24_hours
            - wau
          description: >-
            Aggregate usage statistics for this app, including daily, weekly,
            and monthly active user counts.
        api_key:
          type:
            - object
            - 'null'
          properties:
            id:
              type: string
              description: The unique identifier for the private api key.
            token:
              type: string
              description: This is the API key used to authenticate requests
            created_at:
              type: string
              format: date-time
              description: The datetime the private api key was created.
              example: '2023-12-01T05:00:00.401Z'
          required:
            - id
            - token
            - created_at
          description: >-
            The API key used to authenticate requests on behalf of this app.
            Null if no API key has been generated. Requires the
            'developer:manage_api_key' permission.
        redirect_uris:
          type: array
          items:
            type: string
            description: >-
              Represents textual data as UTF-8 character sequences. This type is
              most often used by GraphQL to represent free-form human-readable
              text.
          description: >-
            The whitelisted OAuth callback URLs that users are redirected to
            after authorizing the app.
      required:
        - id
        - name
        - description
        - status
        - base_url
        - domain_id
        - verified
        - app_type
        - origin
        - experience_path
        - discover_path
        - dashboard_path
        - skills_path
        - openapi_path
        - company
        - icon
        - creator
        - requested_permissions
        - stats
        - api_key
        - redirect_uris
      description: >-
        An app is an integration built on Whop. Apps can serve consumers as
        experiences within products, or serve companies as business tools.
    AppStatuses:
      type: string
      enum:
        - live
        - unlisted
        - hidden
      description: The status of an experience interface
    AppTypes:
      type: string
      enum:
        - b2b_app
        - b2c_app
        - company_app
        - component
      description: The type of end-user an app is built for
  securitySchemes:
    bearerAuth:
      type: http
      description: >-
        A company API key, company scoped JWT, app API key, or user OAuth token.
        You must prepend your key/token with the word 'Bearer', which will look
        like `Bearer ***************************`
      scheme: bearer
      bearerFormat: auth-scheme

````