success instead of the standard status/message/data envelope. Errors use the standard error envelope. The account owner must have Zapbox consent enabled, otherwise the call fails with 403; consent cannot be set through this API.account, up to 10,000 messages per call.newLabelName that already exists returns 400.oldLabelName exists, one is created with the new name and the call succeeds.POST /onebox/create-new-label.curl --location 'https://api.zapmail.ai/api/v3/onebox/rename-label' \
--header 'x-auth-zapmail;' \
--header 'Content-Type: application/json' \
--data-raw '{
"account": "jane@acme.com",
"oldLabelName": "Priority",
"newLabelName": "High Priority"
}'{
"success": true,
"message": "Label renamed successfully",
"data": {
"oldLabelName": "Priority",
"newLabelName": "High Priority",
"color": "#FF5733",
"emailsUpdated": 37
}
}