Describe the bug
When creating a new client via the 3x-ui API endpoint /panel/api/inbounds/addClient, the subId field is not generated (it remains null). However, when creating a client via the web interface, the subId is generated correctly. This causes issues for automation and bots that rely on the subId to provide subscription links to users.
How to repeat the problem?
Use the API endpoint /panel/api/inbounds/addClient to create a new client.
Check the created client's details via API or web interface.
Observe that the subId field is null or missing.
Create a client via the web interface and see that the subId is present.
Expected action
The subId should be generated automatically for all clients, regardless of whether they are created via the API or the web interface.
Received action
No response
3x-ui Version
2.6.2
Xray-core Version
last
Checklist
Describe the bug
When creating a new client via the 3x-ui API endpoint /panel/api/inbounds/addClient, the subId field is not generated (it remains null). However, when creating a client via the web interface, the subId is generated correctly. This causes issues for automation and bots that rely on the subId to provide subscription links to users.
How to repeat the problem?
Use the API endpoint /panel/api/inbounds/addClient to create a new client.
Check the created client's details via API or web interface.
Observe that the subId field is null or missing.
Create a client via the web interface and see that the subId is present.
Expected action
The subId should be generated automatically for all clients, regardless of whether they are created via the API or the web interface.
Received action
No response
3x-ui Version
2.6.2
Xray-core Version
last
Checklist