Error
A valid request URL is required to generate request examples{
"id": "Ws7nK2vP9xLm4QtR6yBc3g",
"upstream_id": "Ux9cT4mK7pLw2RvN5yQs8g",
"username": "alice",
"enabled": true,
"last_seen_at": "2026-11-16T09:30:00Z",
"created_at": "2026-11-16T09:30:00Z"
}Users
Add a user to an upstream
Stores a SIP account for managed mode. pgw encrypts the password with the tenant’s data key and never returns it.
POST
/
upstreams
/
{id}
/
users
Error
A valid request URL is required to generate request examples{
"id": "Ws7nK2vP9xLm4QtR6yBc3g",
"upstream_id": "Ux9cT4mK7pLw2RvN5yQs8g",
"username": "alice",
"enabled": true,
"last_seen_at": "2026-11-16T09:30:00Z",
"created_at": "2026-11-16T09:30:00Z"
}Body
application/json
The domain that the user's apps register to: the upstream's host
or a name that its domains serve. Required on an upstream with
domains, and refused with 400 on any other. pgw stores it in
lower case without a trailing dot. It can't change. 1001 at two
domains is two users.
Example:
"acme.example.com"
Response
The user.