import requests
response = requests.post(
"https://api.naga.ac/v1/account/keys",
headers={
"Authorization": "Bearer YOUR_PROVISIONING_KEY",
"Content-Type": "application/json",
},
json={
"name": "New Production Key",
"credit_limit": 500.00,
},
)
key_data = response.json()
print(f"New API Key: {key_data['key']}")
print(f"Key ID: {key_data['id']}")