import Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
const response = await client.entries.approve('entry_xxxxxxxxxxxx');
console.log(response.job_id);{
"job_id": "<string>"
}Approve a pending waitlist entry, triggering the checkout process to grant the user access to the plan.
Required permissions:
plan:waitlist:manageimport Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
const response = await client.entries.approve('entry_xxxxxxxxxxxx');
console.log(response.job_id);{
"job_id": "<string>"
}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 ***************************
The unique identifier of the waitlist entry to approve.
"entry_xxxxxxxxxxxx"
A successful response
An object representing an asynchronous job.
The ID of the job.
Was this page helpful?