mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #3207] Does 3x-ui support API for client creation and subscription links? #2165
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#2165
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lavrentijav on GitHub (Jul 7, 2025).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3207
Question
Hello,
I'm building an external service (on a separate server) to automatically generate clients for a 3x-ui panel (version
2.6.0or compatible forks).I’d like to know whether your panel supports a REST API or any internal HTTP interface for this purpose.
✅ I’m specifically looking for:
API support for client creation and management
GET,POST,PUT,DELETE)?How to create a client with the following configuration:
protocol:vlesstransport:xhttpsecurity:realityuuid,email,expiry,pbk,sid,sni,spx,fp, etc.JSON format required for the
POSTrequest to create the clientSubscription link retrieval:
subscription link(sub_url) orsubscription_token?uuid)?Any documentation or example requests would be appreciated.
If there is no official API, are there any local/unofficial interfaces I can work with?
Thanks in advance!
Checklist
@Copift commented on GitHub (Jul 12, 2025):
hello
https://github.com/MHSanaei/3x-ui/wiki/Configuration#api
its official api for 3x-ui there
This api dont have special request for generate subscrition link but u can generate it with uuid user and settings inbound
url scheme
val = f"vless://{uuid}@{ip_server}:{port}/?type={tcp}&security={reality}&fp=chrome&pbk=T_95HnSovtH9WNr_XfaJ9iL7xnwp96p8E2A8Q3_t_xk&sni=microsoft.com&sid=24705084&spx=%2F#VPN-X3-{uuid}"
i recommended generate one link and copy all, change only uuid params