Skip to main content
POST
/
experiences
/
{id}
/
duplicate
JavaScript
import Whop from '@whop/sdk';

const client = new Whop({
  apiKey: 'My API Key',
});

const experience = await client.experiences.duplicate('exp_xxxxxxxxxxxxxx');

console.log(experience.id);
{
  "id": "exp_xxxxxxxxxxxxxx",
  "name": "<string>",
  "order": "123.45",
  "created_at": "2023-12-01T05:00:00.401Z",
  "app": {
    "id": "app_xxxxxxxxxxxxxx",
    "name": "<string>",
    "icon": {
      "url": "<string>"
    }
  },
  "image": {
    "url": "<string>"
  },
  "company": {
    "id": "biz_xxxxxxxxxxxxxx",
    "title": "<string>",
    "route": "<string>"
  },
  "products": [
    {
      "id": "prod_xxxxxxxxxxxxx",
      "route": "<string>",
      "title": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

The app API key from an app from the /dashboard/developer page

Path Parameters

id
string
required

The ID of the experience to duplicate

Example:

"exp_xxxxxxxxxxxxxx"

Body

application/json

Parameters for DuplicateExperience

name
string | null

The name of the new experience

Response

A successful response

An object representing an experience belonging to a company.

id
string
required

The unique ID representing this experience

Example:

"exp_xxxxxxxxxxxxxx"

name
string
required

The written name of the description.

order
string | null
required

The order of the experience in the section

Example:

"123.45"

created_at
string<date-time>
required

The timestamp of when this experience was created.

Example:

"2023-12-01T05:00:00.401Z"

app
object
required

The experience interface for this experience.

image
object | null
required

The logo for the experience.

company
object
required

The company that owns this experience.

products
object[]
required

The products that this experience is attached to. This defines which set of customers have access and can view this experience. If empty, this experience is only visible to authorized users of the company