Users API
Actions in the users namespace of the Nexigon Hub API.
users_Query
POST/api/v1/actions/invoke/users_QueryQuery the users of the instance.
Request QueryUsersAction
No fields.
Response QueryUsersOutput
Fields (JSON object)
usersrequiredList of users.
array<QueryUsersItem>
Items
QueryUsersItem
Fields (JSON object)
userId(fromuser_id)requiredID of the user.
UserIdstringemailrequiredEmail of the user.
stringdisplayName(fromdisplay_name)optionalName of the user.
stringisAdmin(fromis_admin)requiredWhether the user is an instance admin.
booleanisActive(fromis_active)requiredWhether the user account has been activated.
New registrations start out inactive and are activated when the user confirms their email address.
booleancreatedAt(fromcreated_at)requiredTimestamp when the user was created.
Timestampstring
users_GetDetails
POST/api/v1/actions/invoke/users_GetDetailsGet information about a user.
Request GetUserDetailsAction
Fields (JSON object)
userId(fromuser_id)requiredID of the user.
UserIdstring
Response GetUserDetailsOutput
Fields (JSON object)
userId(fromuser_id)requiredID of the user.
UserIdstringemailrequiredEmail of the user.
stringdisplayName(fromdisplay_name)optionalName of the user.
stringisAdmin(fromis_admin)requiredWhether the user is an instance admin.
boolean
users_Create
POST/api/v1/actions/invoke/users_CreateCreate a new user.
Request CreateUserAction
Fields (JSON object)
emailrequiredEmail of the user.
stringdisplayName(fromdisplay_name)optionalName of the user.
stringpasswordoptionalPassword of the user.
stringisAdmin(fromis_admin)optionalWhether the user is an instance admin.
boolean
Response CreateUserOutput
Casesinternally β tag field result
CreatedUser was created successfully.
{ "result": "Created", ...<payload fields> } β or "content" for non-object payloadsCreateUserSuccess
Fields (JSON object)
userId(fromuser_id)requiredID of the user.
UserIdstring
EmailAlreadyExistsUser with the same email already exists.
{ "result": "EmailAlreadyExists" }
users_Delete
POST/api/v1/actions/invoke/users_DeleteDelete a user.
Request DeleteUserAction
Fields (JSON object)
userId(fromuser_id)requiredID of the user to delete.
UserIdstring
Response Empty
No fields.
users_SetDisplayName
POST/api/v1/actions/invoke/users_SetDisplayNameSet the display name of a user.
Request SetUserDisplayNameAction
Fields (JSON object)
userId(fromuser_id)requiredID of the user to update.
UserIdstringdisplayName(fromdisplay_name)requiredNew name of the user.
string
Response Empty
No fields.
users_SetPassword
POST/api/v1/actions/invoke/users_SetPasswordSet the password of a user.
Request SetUserPasswordAction
Fields (JSON object)
userId(fromuser_id)requiredID of the user.
UserIdstringpasswordrequiredNew password of the user.
string
Response Empty
No fields.
users_SetIsAdmin
POST/api/v1/actions/invoke/users_SetIsAdminSet whether the user is an instance administrator.
Request SetUserIsAdminAction
Fields (JSON object)
userId(fromuser_id)requiredID of the user.
UserIdstringisAdmin(fromis_admin)requiredWhether the user is an instance administrator.
boolean
Response Empty
No fields.
users_ResetPassword
POST/api/v1/actions/invoke/users_ResetPasswordReset the password of a user.
This will send an email to the user with a link to reset their password.
Request ResetUserPasswordAction
Fields (JSON object)
emailrequiredEmail of the user.
string
Response Empty
No fields.
users_CompletePasswordReset
POST/api/v1/actions/invoke/users_CompletePasswordResetComplete the password reset of a user.
Request CompleteUserPasswordResetAction
Fields (JSON object)
resetToken(fromreset_token)requiredToken to use for password reset.
Jwt
Wraps
stringpasswordrequiredNew password of the user.
string
Response CompleteUserPasswordResetOutput
Casesinternally β tag field result
CompletedPassword has been reset.
{ "result": "Completed" }InvalidTokenPassword reset failed due to the token being invalid.
{ "result": "InvalidToken" }
users_QueryTokens
POST/api/v1/actions/invoke/users_QueryTokensQuery the tokens of a user.
Request QueryUserTokensAction
Fields (JSON object)
userId(fromuser_id)requiredID of the user.
UserIdstring
Response QueryUserTokensOutput
Fields (JSON object)
tokensrequiredList of user tokens.
array<QueryUserTokensItem>
Items
QueryUserTokensItem
Fields (JSON object)
tokenId(fromtoken_id)requiredID of the token.
UserTokenIdstringcreatedAt(fromcreated_at)requiredCreation date of the token.
TimestampstringnameoptionalName of the token.
string
users_QueryOrganizations
POST/api/v1/actions/invoke/users_QueryOrganizationsQuery the organizations of a user.
Request QueryUserOrganizationsAction
Fields (JSON object)
userId(fromuser_id)requiredID of the user.
UserIdstring
Response QueryUserOrganizationsOutput
Fields (JSON object)
organizationsrequiredList of organizations.
array<QueryUserOrganizationsItem>
Items
QueryUserOrganizationsItem
Fields (JSON object)
organizationId(fromorganization_id)requiredID of the organization.
OrganizationIdstringnamerequiredName of the organization.
stringrequiresSubscription(fromrequires_subscription)requiredWhether the organization requires a paid subscription.
booleansubscriptionPlanName(fromsubscription_plan_name)optionalName of the active subscription plan, if any.
string
users_QueryOrganizationInvitations
POST/api/v1/actions/invoke/users_QueryOrganizationInvitationsQuery the organization invitations of a user.
Request QueryUserOrganizationInvitationsAction
Fields (JSON object)
userId(fromuser_id)requiredID of the user.
UserIdstring
Response QueryUserOrganizationInvitationsOutput
Fields (JSON object)
invitationsrequiredList of organization invitations.
array<QueryUserOrganizationInvitationsItem>
Items
QueryUserOrganizationInvitationsItem
Fields (JSON object)
invitationId(frominvitation_id)requiredID of the invitation.
OrganizationInvitationIdstringorganizationrequiredInformation about the organization.
QueryUserOrganizationInvitationsItemOrganization
Fields (JSON object)
organizationId(fromorganization_id)requiredID of the organization.
OrganizationIdstringnamerequiredName of the organization.
string
users_QuerySessions
POST/api/v1/actions/invoke/users_QuerySessionsQuery the sessions of a user.
Request QueryUserSessionsAction
Fields (JSON object)
userId(fromuser_id)requiredID of the user.
UserIdstring
Response QueryUserSessionsOutput
Fields (JSON object)
sessionsrequiredList of user sessions.
array<UserSession>
Items
UserSession
Fields (JSON object)
sessionId(fromsession_id)requiredID of the session.
UserSessionIdstringcreatedAt(fromcreated_at)requiredCreation date of the session.
TimestampstringexpiresAt(fromexpires_at)requiredExpiration date of the session.
TimestampstringuserAgent(fromuser_agent)requiredUser agent of the session.
string
users_GetDevicePermissions
POST/api/v1/actions/invoke/users_GetDevicePermissionsCheck the permissions of a user for a given device.
Request GetDevicePermissionsAction
Fields (JSON object)
userId(fromuser_id)requiredID of the user.
UserIdstringdeviceId(fromdevice_id)requiredID of the device.
DeviceIdstring
Response GetDevicePermissionsOutput
Fields (JSON object)
hasAccess(fromhas_access)requiredWhether the user has access to the device.
boolean
users_CreateToken
POST/api/v1/actions/invoke/users_CreateTokenCreate a user token.
Request CreateUserTokenAction
Fields (JSON object)
userId(fromuser_id)requiredID of the user.
UserIdstringnameoptionalName of the token.
string
Response CreateUserTokenOutput
Fields (JSON object)
tokenId(fromtoken_id)requiredID of the token.
UserTokenIdstringtokenrequiredToken.
UserTokenstring
users_DeleteToken
POST/api/v1/actions/invoke/users_DeleteTokenDelete a user token.
Request DeleteUserTokenAction
Fields (JSON object)
tokenId(fromtoken_id)requiredID of the token.
UserTokenIdstring
Response Empty
No fields.
users_TerminateSession
POST/api/v1/actions/invoke/users_TerminateSessionTerminate a user session.
The acting user must own the session; sessions belonging to other users are not affected.
Request TerminateUserSessionAction
Fields (JSON object)
sessionId(fromsession_id)requiredID of the session.
UserSessionIdstring
Response Empty
No fields.
users_CleanupExpiredSessions
POST/api/v1/actions/invoke/users_CleanupExpiredSessionsCleanup expired user sessions.
Request CleanupExpiredUserSessionsAction
No fields.
Response Empty
No fields.
users_Register
POST/api/v1/actions/invoke/users_RegisterRegister a new user with an email and password.
Request RegisterUserAction
Fields (JSON object)
displayName(fromdisplay_name)optionalName of the user.
stringemailrequiredEmail address of the user.
stringpasswordrequiredPassword of the user.
stringconsentedToTerms(fromconsented_to_terms)requiredIndicates whether the user has consented to the terms and conditions.
This must be
trueto register a user.booleanconsentedToMarketing(fromconsented_to_marketing)optionalIndicates whether the user has consented to marketing communications.
boolean
Response RegisterUserOutput
Casesinternally β tag field result
CreatedUser registration has been created.
{ "result": "Created", ...<payload fields> } β or "content" for non-object payloadsUserRegistration
Fields (JSON object)
statusrequiredRegistration status.
UserRegistrationStatus
Casesinternally β tag field
tagPendingRegistration is pending.
{ "tag": "Pending" }Waiting/ Registration is waiting for approval.
{ "tag": "Waiting" }CompletedRegistration was successful.
{ "tag": "Completed" }FailedRegistration failed.
{ "tag": "Failed" }
messageoptionalOptional message to show to the user.
stringcreatedAt(fromcreated_at)requiredTimestamp when the registration was created.
Timestampstring
PendingUser registration is already pending.
{ "result": "Pending", ...<payload fields> } β or "content" for non-object payloadsUserRegistration
Fields (JSON object)
statusrequiredRegistration status.
UserRegistrationStatus
Casesinternally β tag field
tagPendingRegistration is pending.
{ "tag": "Pending" }Waiting/ Registration is waiting for approval.
{ "tag": "Waiting" }CompletedRegistration was successful.
{ "tag": "Completed" }FailedRegistration failed.
{ "tag": "Failed" }
messageoptionalOptional message to show to the user.
stringcreatedAt(fromcreated_at)requiredTimestamp when the registration was created.
Timestampstring
EmailAlreadyExistsUser with the same email already exists.
{ "result": "EmailAlreadyExists" }
users_ResendRegistrationEmail
POST/api/v1/actions/invoke/users_ResendRegistrationEmailRequest ResendRegistrationEmailAction
Fields (JSON object)
emailrequiredEmail address of the user.
string
Response Empty
No fields.
users_CompleteRegistration
POST/api/v1/actions/invoke/users_CompleteRegistrationComplete the registration of a user.
Request CompleteRegistrationAction
Fields (JSON object)
activationToken(fromactivation_token)requiredToken to use for account activation.
Jwt
Wraps
string
Response CompleteRegistrationOutput
Casesinternally β tag field result
CompletedRegistration was successful.
{ "result": "Completed" }FailedRegistration failed.
{ "result": "Failed" }
users_AcceptOrganizationInvitation
POST/api/v1/actions/invoke/users_AcceptOrganizationInvitationAccept a organization invitation.
Request AcceptOrganizationInvitationAction
Fields (JSON object)
invitationId(frominvitation_id)requiredID of the invitation.
OrganizationInvitationIdstring
Response Empty
No fields.