identity_id, entity_id, and created_by fields are all derived from the bearer token and cannot be set by the client. Optionally scope the key's permissions with acl, using recognised ACL permission names; unrecognised names are rejected.curl --location '/api-keys' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Production Server Key",
"environment": "live"
}'{
"message": "API key created successfully",
"status": "success",
"data": {
"id": "01J5X8PMKW3RNVBQE2D7F9GHAT",
"name": "Production Server Key",
"environment": "live",
"identity_id": "01J5X8PMKW3RNVBQE2D7F9GHBT",
"public_key": "pk_live_8f2a1c7d3e9b4f5a",
"secret_key": "sk_live_3e9b4f5a8f2a1c7d",
"expires_at": null,
"status": "active",
"acl": null,
"config": null,
"created": 1754478720000
}
}