Auto-approve organization access via domain or self-hosted check
POST
/v1/organization-access/auto-approve
const url = 'https://api.varman.io/v1/organization-access/auto-approve';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.varman.io/v1/organization-access/auto-approveGrants hasAccess on the active organization if the requesting user is an internal example.com user, the deployment is self-hosted, or the user email domain matches the organization website domain and is an active Stripe customer.