keys
browser-session

Replace your live IC Key (same budget, spend carried over, old key revoked)

Clerk-session only (agents use ic_credits_regenerate). Revokes the member's live member key in the same call (it 401s at the gateway from then on) and mints a new one with the SAME budget, models and default; this month's and lifetime spend carry over, so a regenerate never resets IC Credits. The new plaintext + both paste blocks are returned ONCE and never stored. No body. Counts against the request cap.

post/api/credits/regenerate

Request

  • Base URL: https://www.immersivecommons.com
  • URL: https://www.immersivecommons.com/api/credits/regenerate
  • Auth: API key in cookie __session

Response

The new key, surfaced once, with what was revoked and carried over.

okboolean required
agent_tokenstring required

The new plaintext key, surfaced EXACTLY ONCE.

bundleobject

Ready-to-paste Claude Code + OpenAI-compatible configuration for the new key.

token_prefixstring required

The new key's prefix.

revoked_prefixstring required

The old key's prefix; it 401s at the gateway from now on.

Changes

No recorded changes to this operation across all 1 revision of this API.