Regenerate Secret Key
Use this endpoint to generate a new secret key and replace the old one
Available Environments
- Production
https://api.gateway.com.br/core
Endpoint
- Method:
POST - Endpoint:
/auth/regenerate-secret - Authentication: Bearer token
Request Example
- cURL
- JavaScript
curl --request POST \
--url https://api.gateway.com.br/core/auth/regenerate-secret \
--header 'Authorization: Bearer your-jwt-token'
const response = await fetch('https://api.gateway.com.br/core/auth/regenerate-secret', {
method: 'POST',
headers: {
'Authorization': 'Bearer your-jwt-token'
}
});
const data = await response.json();
Success Response
| Field | Type | Description |
|---|---|---|
client_id | string (UUID) | Unique identifier |
client_secret | string | Authentication secret key |
Response Example
{
"client_id": "553e8400-e29...",
"client_secret": "BvYIm4sb5CuAuq..."
}
Possible Errors
| Code | Description | Solution |
|---|---|---|
| 401 | Invalid credentials | Check your credentials |
| 403 | No permission/authorization | Contact support |
| 500 | Internal error | Contact support |