Actions53
- Account Actions
- Contact Actions
- Group Actions
- Message Actions
- Session Actions
Account → Regenerate Session API Key
AI-generatedOverview
This node operation regenerates the API key for a specified WasenderAPI session. It is useful when you need to refresh the session's API key for security reasons or to resolve access issues. For example, if an API key is compromised or expired, this operation allows you to generate a new key without creating a new session.
Use Case Examples
- Regenerate the API key for a WhatsApp session to maintain secure access.
- Refresh the session API key after a security breach or key expiration.
Properties
| Name | Meaning |
|---|---|
| Session | The specific WasenderAPI session for which the API key will be regenerated. It can be selected from a list or specified by ID. |
| Options | Additional request options for handling retries on failed API requests. |
Output
JSON
json- The response JSON containing the result of the API key regeneration operation, including session details and the new API key.
Dependencies
- WasenderAPI service with an API key credential
Troubleshooting
- Ensure the session ID is valid and the session exists; otherwise, the operation will fail.
- If the API returns errors like 408, 429, 500, 502, or 503, the node can retry the request based on the configured retry options.
- Common error messages include 'Unsupported account operation' if the operation is not recognized, or errors related to invalid session ID or network issues.