cURL
curl --request PUT \ --url https://wsapi.chat/account/instances/{id}/apikey \ --header 'X-Api-Key: <api-key>'
"<string>"
Generates a new API key for the instance. Previous key is immediately invalidated.
Customer API key. Only the customer-level key is accepted for /account/* endpoints. No X-Instance-Id header is required.
New API key
The response is of type string.
string