curl --request POST \
--url https://api.g-tateth.com/api/tenant/api-keys \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Production API Key",
"permissions": [
"read:conversations",
"write:customers"
],
"environment": "production",
"expiresAt": "2023-11-07T05:31:56Z",
"rotationPolicy": {
"enabled": true,
"intervalDays": 123,
"notifyDaysBefore": 123
},
"rateLimit": {
"requests": 123,
"window": "1m"
},
"ipWhitelist": [
"<string>"
]
}
'