{ "message": "API key created successfully.", "api_key": { "name": "Production API Key", "token": "1|abc123xyz789abcdef...", "created_at": "2025-01-08T10:30:00.000000Z" }}
This endpoint generates a new API key for the authenticated user. Unlike the login endpoint which creates a session token, this creates a persistent API key that can be used for long-term API access.
This endpoint requires authentication. Use your existing API key or session token to create additional API keys.