Users
List organization members and pending invitations with optional pagination and search.
Headers
Authorization*
HMAC {key}:{signature}:{nonce}:{timestamp}
Content-Type
application/json
Query Parameters
page
Integer
1
Page number
per_page
Integer
20
Record count per page
q
String
-
Search by user email or name
Success Response Example
{
"users": [
{
"name": "Computer User",
"email": "computeruser@vagon.io",
"status": "active",
"machine_id": 100,
"uid": "f1592625-edd0-48df-9bc0-de14910ec936"
},
{
"name": null,
"email": "inviteduser@vagon.io",
"status": "invitation-pending",
"machine_id": null,
"uid": null
}
],
"count": 2,
"page": 1,
"next_page": null,
"client_code": 200,
"message": "OK",
"timestamp": "2026-02-09T12:00:00Z"
}
Success Response Fields
users
Array
Array of user or invitation objects
users[].name
String or null
User display name (null for invitation)
users[].email
String
User or invitee email
users[].status
String
"active" or "invitation-pending"
users[].machine_id
Integer or null
Assigned machine ID (null if none)
users[].uid
String or null
User UUID (null for pending invitation)
count
Integer
Total count for current page
page
Integer
Current page number
next_page
Integer or null
Next page number (null if no more pages)
client_code
Integer
Response code (200 for success)
message
String
Response message
timestamp
String
Response timestamp (ISO 8601)
Error Responses
400
Bad request
4710
Permission required
(Optional) Page number. Default: 1
1(Optional) Records per page. Default: 20
20(Optional) Search by user email or name
stringList of users and pending invitations
200OK2026-02-05T10:10:22ZTotal count for current page
Current page number
Next page number (null if no more pages)
Bad request
Permission required
GET /organization-management/v1/users HTTP/1.1
Host: api.vagon.io
Accept: */*
{
"client_code": 200,
"message": "OK",
"timestamp": "2026-02-05T10:10:22Z",
"users": [
{
"name": "text",
"email": "user@vagon.io",
"status": "active",
"machine_id": 1,
"uid": "text"
}
],
"count": 1,
"page": 1,
"next_page": 1
}Remove a member from the organization or cancel a pending invitation.
Headers
Authorization*
HMAC {key}:{signature}:{nonce}:{timestamp}
Content-Type
application/json
Body Parameters
email*
String
Yes
User or invitee email to remove
keep_files
Boolean
No
Whether to keep user files. Default: true
Request Body Example
{
"email": "user@vagon.io",
"keep_files": true
}
Success Response Example
{
"client_code": 200,
"message": "OK",
"timestamp": "2026-02-10T15:56:54Z"
}
Success Response Fields
client_code
Integer
Response code (200 for success)
message
String
Response message
timestamp
String
Response timestamp (ISO 8601)
Error Responses
400
Bad request
404
Email not found in organization or pending invitations
4318
Not a valid email
4319
Email not found
4710
Permission required
4713
Organization owner cannot be removed
User or invitee email to remove
Whether to keep user files. Default true
trueUser removed or invitation cancelled
200OK2026-02-05T10:10:22ZBad request
Email not found in organization or pending invitations
Not a valid email
Email not found
Permission required
Organization owner cannot be removed
DELETE /organization-management/v1/users HTTP/1.1
Host: api.vagon.io
Content-Type: application/json
Accept: */*
Content-Length: 46
{
"email": "user@example.com",
"keep_files": true
}{
"client_code": 200,
"message": "OK",
"timestamp": "2026-02-05T10:10:22Z"
}Assign a user or pending invitation to an unassigned machine. If the machine is already assigned, revoke first.
Headers
Authorization*
HMAC {key}:{signature}:{nonce}:{timestamp}
Content-Type
application/json
Body Parameters
machine_id*
Integer
Yes
Machine ID to assign
email*
String
Yes
User or invitee email
Request Body Example
{
"machine_id": 100,
"email": "computeruser@vagon.io"
}
Success Response Example
{
"name": "Computer User",
"email": "computeruser@vagon.io",
"status": "active",
"machine_id": 100,
"uid": "683530d7-707a-aaaa-8d74-4ac8475e5051",
"client_code": 200,
"message": "OK",
"timestamp": "2026-02-10T15:58:10Z"
}
Success Response Fields
name
String or null
User display name (null for pending invitation)
email
String
User or invitee email
status
String
"active" or "invitation-pending"
machine_id
Integer
Assigned machine ID
uid
String or null
User UUID (null for pending invitation)
client_code
Integer
Response code (200 for success)
message
String
Response message
timestamp
String
Response timestamp (ISO 8601)
Error Responses
400
Bad request
404
Machine not found or email not in organization/invitations
4318
Not a valid email
4319
Email not found
4710
Permission required
4715
Machine already assigned. Revoke current assignment first.
Machine ID to assign
User or invitee email
User or invitation assigned successfully
200OK2026-02-05T10:10:22ZBad request
Machine or user/email not found
Not a valid email
Email not found
Permission required
Machine already assigned. Revoke current assignment first.
POST /organization-management/v1/users/assign HTTP/1.1
Host: api.vagon.io
Content-Type: application/json
Accept: */*
Content-Length: 50
{
"machine_id": 100,
"email": "computeruser@vagon.io"
}{
"client_code": 200,
"message": "OK",
"timestamp": "2026-02-05T10:10:22Z",
"name": "text",
"email": "text",
"status": "active",
"machine_id": 1,
"uid": "text"
}Revoke the user or invitation assigned to a machine (lookup by email).
Headers
Authorization*
HMAC {key}:{signature}:{nonce}:{timestamp}
Content-Type
application/json
Body Parameters
email*
String
Yes
User or invitee email to revoke from their assigned machine
keep_files
Boolean
No
Whether to keep user files. Default: true
Request Body Example
{
"email": "user@example.com",
"keep_files": true
}
Success Response Example
{
"client_code": 200,
"message": "OK",
"timestamp": "2026-02-10T16:01:24Z"
}
Success Response Fields
client_code
Integer
Response code (200 for success)
message
String
Response message
timestamp
String
Response timestamp (ISO 8601)
Error Responses
400
Bad request
404
Email does not match any user or invitation
4318
Not a valid email
4710
Permission required
4714
User or invitation not assigned to any machine
User or invitee email to revoke from their assigned machine
Whether to keep user files. Default true
trueUser or invitation revoked from machine
200OK2026-02-05T10:10:22ZBad request
Email does not match any user or invitation
Not a valid email
Permission required
User or invitation not assigned to any machine
POST /organization-management/v1/users/revoke HTTP/1.1
Host: api.vagon.io
Content-Type: application/json
Accept: */*
Content-Length: 46
{
"email": "user@example.com",
"keep_files": true
}{
"client_code": 200,
"message": "OK",
"timestamp": "2026-02-05T10:10:22Z"
}Create invitations for one or more emails. Requires invitations to be enabled for the organization.
Headers
Authorization*
HMAC {key}:{signature}:{nonce}:{timestamp}
Content-Type
application/json
Body Parameters
emails*
Array[String]
Yes
List of email addresses to invite
Request Body Example
{
"emails": [
"user1@example.com",
"user2@example.com"
]
}
Success Response Example
{
"invitation_results": {
"success": [
"user1@example.com"
],
"failed": [
"user2@example.com"
]
},
"client_code": 200,
"message": "OK",
"timestamp": "2026-02-09T12:00:00Z"
}
Success Response Fields
invitation_results
Object
Result of invitation requests
invitation_results.success
Array[String]
Emails invited successfully
invitation_results.failed
Array[String]
Emails that failed (invalid or not allowed)
client_code
Integer
Response code (200 for success)
message
String
Response message
timestamp
String
Response timestamp (ISO 8601)
Error Responses
400
Bad request
403
Invitations not enabled for organization
404
Not Found
4710
Permission required
List of email addresses to invite
Invitation results (success and failed arrays)
200OK2026-02-05T10:10:22ZBad request
Invitations not enabled for organization
Not Found
Permission required
POST /organization-management/v1/users/invite HTTP/1.1
Host: api.vagon.io
Content-Type: application/json
Accept: */*
Content-Length: 52
{
"emails": [
"user1@example.com",
"user2@example.com"
]
}{
"client_code": 200,
"message": "OK",
"timestamp": "2026-02-05T10:10:22Z",
"invitation_results": {
"success": [
"text"
],
"failed": [
"text"
]
}
}Last updated