POST
/
accounts
/
{id}
/
keys
/
regenerate
curl -X POST "https://api.stableyard.fi/v2/accounts/acc_123/keys/regenerate" \
  -H "Authorization: Bearer sy_auth_*"
{
  "apiKeys": {
    "secretKey": "sy_secret_new_key",
    "publicKey": "sy_pub_new_key",
    "testSecretKey": "sy_test_secret_new_key",
    "testPublicKey": "sy_test_pub_new_key",
    "webhookSecret": "whsec_new_secret"
  },
  "requestId": "req_abc123"
}
Regenerate the account’s API keys. The old keys are immediately invalidated. Auth: sy_auth_*
This action is irreversible. All existing API keys will stop working immediately.
id
string
required
Account ID
curl -X POST "https://api.stableyard.fi/v2/accounts/acc_123/keys/regenerate" \
  -H "Authorization: Bearer sy_auth_*"
{
  "apiKeys": {
    "secretKey": "sy_secret_new_key",
    "publicKey": "sy_pub_new_key",
    "testSecretKey": "sy_test_secret_new_key",
    "testPublicKey": "sy_test_pub_new_key",
    "webhookSecret": "whsec_new_secret"
  },
  "requestId": "req_abc123"
}