import Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
const authorizedUser = await client.authorizedUsers.delete('ausr_xxxxxxxxxxxxx');
console.log(authorizedUser);trueRemove an authorized user from a company.
Required permissions:
authorized_user:deleteimport Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
const authorizedUser = await client.authorizedUsers.delete('ausr_xxxxxxxxxxxxx');
console.log(authorizedUser);trueA 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 ID of the authorized user or user to remove.
"ausr_xxxxxxxxxxxxx"
The ID of the company the authorized user belongs to. Optional if the authorized user ID is provided.
"biz_xxxxxxxxxxxxxx"
A successful response
Represents true or false values.
Was this page helpful?