Admin
Issue a new API key for the current admin
Creates a new ApiKey row scoped to the calling admin and their client via ApiKeyService::generate, then returns the plain-text key once alongside the persisted metadata. Subsequent reads only see the key_prefix. The legacy token field is kept as an alias of api_key for older admin-UI clients. Requires permission: developer_settings (also satisfied by group_all); user id=1 is unconditionally allowed.
POST
Issue a new API key for the current admin
Authorizations
Body
application/json
Response
Key created. The api_key / token plain text is shown ONLY in this response.