Skip to content

subId is not generated for clients created via API (/panel/api/inbounds/addClient) #3237

Description

@DeoGloria26

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

  • This bug report is written entirely in English.
  • This bug report is new and no one has reported it before me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions