Skip to content

Instantly share code, notes, and snippets.

@FradSer
Created April 5, 2026 12:56
Show Gist options
  • Select an option

  • Save FradSer/3e9b9df6fa4ac7b12b40a84eac24e515 to your computer and use it in GitHub Desktop.

Select an option

Save FradSer/3e9b9df6fa4ac7b12b40a84eac24e515 to your computer and use it in GitHub Desktop.
const orgId = document.cookie.match(/(?:^|;\s*)lastActiveOrg=([^;]+)/)?.[1];
if (orgId) {
fetch(`https://claude.ai/api/organizations/${orgId}/overage_credit_grant`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: '{}'
})
.then(res => res.json())
.then(console.log);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment