Deletes an API key belonging to the organization. Requires admin role.
DELETE
/
organizations
/
{orgId}
/
api-keys
/
{keyId}
JavaScript
import Smithery from '@smithery/api';
const client = new Smithery({
apiKey: process.env['SMITHERY_API_KEY'], // This is the default and can be omitted
});
const apiKey = await client.organizations.apiKeys.delete('keyId', { orgId: 'orgId' });
console.log(apiKey.success);
import Smithery from '@smithery/api';
const client = new Smithery({
apiKey: process.env['SMITHERY_API_KEY'], // This is the default and can be omitted
});
const apiKey = await client.organizations.apiKeys.delete('keyId', { orgId: 'orgId' });
console.log(apiKey.success);
{
"success": true
}
Assistant
Responses are generated using AI and may contain mistakes.