import Moonbase from '@moonbaseai/sdk';const client = new Moonbase({ apiKey: process.env['MOONBASE_API_KEY'], // This is the default and can be omitted});await client.unsubscribes.delete('email');
Copy
{ "type": "errors", "errors": [ { "type": "error", "status": "400", "title": "Bad Request", "detail": "The request could not be understood due to malformed syntax or invalid parameters." } ]}
Unsubscribes
Delete an Unsubscribe
Permanently deletes an unsubscribe by email address.
DELETE
/
unsubscribes
/
{email}
JavaScript
Copy
import Moonbase from '@moonbaseai/sdk';const client = new Moonbase({ apiKey: process.env['MOONBASE_API_KEY'], // This is the default and can be omitted});await client.unsubscribes.delete('email');
Copy
{ "type": "errors", "errors": [ { "type": "error", "status": "400", "title": "Bad Request", "detail": "The request could not be understood due to malformed syntax or invalid parameters." } ]}