Back to Provider Endpoints
POST /v1/providers/:key/regenerate-secret
Regenerate the authentication secret for a provider. This endpoint creates a new secret and immediately invalidates the old one. The new secret is only displayed once in the response, so you must save it immediately and update your server list settings. Use this endpoint when a secret has been compromised, for regular security rotation, or when migrating to a new authentication system. After regenerating, you must update the webhook configuration on your server list website with the new secret.
Request
http
POST https://api.votepipe.com/v1/providers/hytale-servers-pro/regenerate-secret
Authorization: Bearer mr_live_your_api_key_hereResponse (200 OK)
json
{
"data": {
"auth_value": "new_secret",
"webhook_url": "https://hooks.votepipe.com/my-server/hytale-servers-pro?token=new_secret"
}
}⚠️ The new auth_value is only shown once! Update your server list settings immediately.