Publisher Account
Publisher Account - Regenerate Key
Rotates key material IN PLACE on the same publisher_account row. Same semantics as the self-serve /publisher/v1/api-keys/{id}/regenerate — account (name, cpc_share, tier, historical click attribution) preserved; prefix/hash/hint replaced. Old key stops authenticating IMMEDIATELY. Plaintext returned EXACTLY ONCE. Admin-initiated rotations log actor_type='admin' on publisher.publisher_key_rotation.
post/admin/v1/accounts/{account_id}/regenerate
Request
- Base URL: https://api.juju.com
- URL: https://api.juju.com/admin/v1/accounts/{account_id}/regenerate
- Auth: none declared
Path parameters
account_idinteger required
Response
Rotated. data.api_key_plaintext is returned exactly once.
Example response
{
"data": {
"api_key_prefix": "juju_pub_XY",
"api_key_hint": "abcd",
"cpc_share": "0.7000",
"rate_limit_tier": "default",
"min_payout": "0.1000"
},
"errors": []
}Changes
No recorded changes to this operation across all 1 revision of this API.