curl --request POST \
--url http://api.superwize.ai/api/auth/createApiKey \
--header 'Content-Type: application/json' \
--data '
{
"name": "Automation Key",
"expiresInDays": 30
}
'{
"key": "sw_live_2X7kM9Qp4dR8vT1yW6uC3nL",
"keyId": "ak_01JHKZ0KT1UV123456789",
"name": "Automation Key",
"start": "2X7kM9",
"prefix": "sw_live",
"expiresAt": 1767312000000,
"createdAt": 1767225600000,
"tokenType": "api_key",
"headerName": "x-api-key"
}Creates a user-managed API key for direct API access via x-api-key.
curl --request POST \
--url http://api.superwize.ai/api/auth/createApiKey \
--header 'Content-Type: application/json' \
--data '
{
"name": "Automation Key",
"expiresInDays": 30
}
'{
"key": "sw_live_2X7kM9Qp4dR8vT1yW6uC3nL",
"keyId": "ak_01JHKZ0KT1UV123456789",
"name": "Automation Key",
"start": "2X7kM9",
"prefix": "sw_live",
"expiresAt": 1767312000000,
"createdAt": 1767225600000,
"tokenType": "api_key",
"headerName": "x-api-key"
}