POST
/api/whatsapp-sessionsv/{whatsappSession}/regenerate-key
Regenerates the API key for a specific WhatsApp session.
Regenerate API Key
Regenerates the API key for a specific WhatsApp session.
This endpoint requires an access token to be included in the Authorization header. You can get the token from here.
Parameters
Name | Type | Required | Description |
---|---|---|---|
whatsappSession | integer | Yes | ID of the WhatsApp session. |
Code Examples
curl -X POST "https://www.wasenderapi.com/api/whatsapp-sessionsv/{whatsappSession}/regenerate-key"
-H "Authorization: Bearer YOUR_API_KEY"
-H "Content-Type: application/json"
Response Examples
{
"success": true,
"api_key": "new_whatsapp_api_key_abc456"
}