POST /admin/keys — mint an API key for an existing tenant.
POST
/admin/keysRequest body
requiredapplication/jsontenant_idstringrequiredResponses
200API key created
keystringrequiredkey_hashstringrequiredtenant_idstringrequiredRequest
curl -X POST "/admin/keys" \
-H "Content-Type: application/json" \
-d '{
"tenant_id": "string"
}'const response = await fetch("/admin/keys", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"tenant_id": "string"
})
});import requests
response = requests.post(
"/admin/keys",
headers={
"Content-Type": "application/json"
},
json={
"tenant_id": "string"
},
)Response
{
"key": "string",
"key_hash": "string",
"tenant_id": "string"
}