Skip to main content
POST
Generates a new secret key for the given environment and invalidates the previous one. The old secret stops working immediately.

Body

string
required
Environment to rotate. One of sandbox or live.
Returns 201 Created.

Response fields

boolean
object
The secretKey is shown in full only once, in this response. It is masked in List API keys thereafter.