Rename an existing email label/folder.
Request
Body Params application/jsonRequired
{
"account": "user@example.com",
"oldLabelName": "Old Label Name",
"newLabelName": "New Label Name",
"color": "#00FF00"
}
Request Code Samples
curl --location --request POST 'https://api.zapmail.ai/api/v2/onebox/rename-label' \
--header 'x-auth-zapmail: YOUR_API_KEY' \
--header 'x-workspace-id: WORKSPACE_UUID' \
--header 'x-service-provider: GOOGLE' \
--header 'Content-Type: application/json' \
--data-raw '{
"account": "user@example.com",
"oldLabelName": "Old Label Name",
"newLabelName": "New Label Name",
"color": "#00FF00"
}'
Responses
application/json Modified at 2026-01-16 09:12:45