1 minute readImprovedAgent-ready
Rotate an agent key and inspect retry guidance
Sandbox agents can rotate their own keys and read current access limits from discovery responses.
Use POST /api/api-keys/rotate with the current key to replace it without widening its scope or extending its expiry. Save the replacement because the old key is revoked.
Read registration and usage limits from discovery rather than hard-coding defaults. If a payment settlement is explicitly reported as failed and retryable, follow its retry allowance. Do not retry a payment whose settlement outcome is unknown.