Skip to main content
Documentation

Users API

Actions in the users namespace of the Nexigon Hub API.

users_Query

POST /api/v1/actions/invoke/users_Query

Query the users of the instance.

Request QueryUsersAction

No fields.

Response QueryUsersOutput

  • users required

    List of users.

    array<QueryUsersItem>
    QueryUsersItem
    • userId (from user_id) required

      ID of the user.

      UserId string
    • email required

      Email of the user.

      string
    • displayName (from display_name) optional

      Name of the user.

      string
    • isAdmin (from is_admin) required

      Whether the user is an instance admin.

      boolean
    • isActive (from is_active) required

      Whether the user account has been activated.

      New registrations start out inactive and are activated when the user confirms their email address.

      boolean
    • createdAt (from created_at) required

      Timestamp when the user was created.

      Timestamp string

users_GetDetails

POST /api/v1/actions/invoke/users_GetDetails

Get information about a user.

Request GetUserDetailsAction

  • userId (from user_id) required

    ID of the user.

    UserId string

Response GetUserDetailsOutput

  • userId (from user_id) required

    ID of the user.

    UserId string
  • email required

    Email of the user.

    string
  • displayName (from display_name) optional

    Name of the user.

    string
  • isAdmin (from is_admin) required

    Whether the user is an instance admin.

    boolean

users_Create

POST /api/v1/actions/invoke/users_Create

Create a new user.

Request CreateUserAction

  • email required

    Email of the user.

    string
  • displayName (from display_name) optional

    Name of the user.

    string
  • password optional

    Password of the user.

    string
  • isAdmin (from is_admin) optional

    Whether the user is an instance admin.

    boolean

Response CreateUserOutput

  • Created

    User was created successfully.

    { "result": "Created", ...<payload fields> } β€” or "content" for non-object payloads

    CreateUserSuccess
    • userId (from user_id) required

      ID of the user.

      UserId string
  • EmailAlreadyExists

    User with the same email already exists.

    { "result": "EmailAlreadyExists" }

users_Delete

POST /api/v1/actions/invoke/users_Delete

Delete a user.

Request DeleteUserAction

  • userId (from user_id) required

    ID of the user to delete.

    UserId string

Response Empty

No fields.

users_SetDisplayName

POST /api/v1/actions/invoke/users_SetDisplayName

Set the display name of a user.

Request SetUserDisplayNameAction

  • userId (from user_id) required

    ID of the user to update.

    UserId string
  • displayName (from display_name) required

    New name of the user.

    string

Response Empty

No fields.

users_SetPassword

POST /api/v1/actions/invoke/users_SetPassword

Set the password of a user.

Request SetUserPasswordAction

  • userId (from user_id) required

    ID of the user.

    UserId string
  • password required

    New password of the user.

    string

Response Empty

No fields.

users_SetIsAdmin

POST /api/v1/actions/invoke/users_SetIsAdmin

Set whether the user is an instance administrator.

Request SetUserIsAdminAction

  • userId (from user_id) required

    ID of the user.

    UserId string
  • isAdmin (from is_admin) required

    Whether the user is an instance administrator.

    boolean

Response Empty

No fields.

users_ResetPassword

POST /api/v1/actions/invoke/users_ResetPassword

Reset the password of a user.

This will send an email to the user with a link to reset their password.

Request ResetUserPasswordAction

  • email required

    Email of the user.

    string

Response Empty

No fields.

users_CompletePasswordReset

POST /api/v1/actions/invoke/users_CompletePasswordReset

Complete the password reset of a user.

Request CompleteUserPasswordResetAction

  • resetToken (from reset_token) required

    Token to use for password reset.

    Jwt
    string
  • password required

    New password of the user.

    string

Response CompleteUserPasswordResetOutput

  • Completed

    Password has been reset.

    { "result": "Completed" }

  • InvalidToken

    Password reset failed due to the token being invalid.

    { "result": "InvalidToken" }

users_QueryTokens

POST /api/v1/actions/invoke/users_QueryTokens

Query the tokens of a user.

Request QueryUserTokensAction

  • userId (from user_id) required

    ID of the user.

    UserId string

Response QueryUserTokensOutput

  • tokens required

    List of user tokens.

    array<QueryUserTokensItem>
    QueryUserTokensItem
    • tokenId (from token_id) required

      ID of the token.

      UserTokenId string
    • createdAt (from created_at) required

      Creation date of the token.

      Timestamp string
    • name optional

      Name of the token.

      string

users_QueryOrganizations

POST /api/v1/actions/invoke/users_QueryOrganizations

Query the organizations of a user.

Request QueryUserOrganizationsAction

  • userId (from user_id) required

    ID of the user.

    UserId string

Response QueryUserOrganizationsOutput

  • organizations required

    List of organizations.

    array<QueryUserOrganizationsItem>
    QueryUserOrganizationsItem
    • organizationId (from organization_id) required

      ID of the organization.

      OrganizationId string
    • name required

      Name of the organization.

      string
    • requiresSubscription (from requires_subscription) required

      Whether the organization requires a paid subscription.

      boolean
    • subscriptionPlanName (from subscription_plan_name) optional

      Name of the active subscription plan, if any.

      string

users_QueryOrganizationInvitations

POST /api/v1/actions/invoke/users_QueryOrganizationInvitations

Query the organization invitations of a user.

Request QueryUserOrganizationInvitationsAction

  • userId (from user_id) required

    ID of the user.

    UserId string

Response QueryUserOrganizationInvitationsOutput

  • invitations required

    List of organization invitations.

    array<QueryUserOrganizationInvitationsItem>
    QueryUserOrganizationInvitationsItem
    • invitationId (from invitation_id) required

      ID of the invitation.

      OrganizationInvitationId string
    • organization required

      Information about the organization.

      QueryUserOrganizationInvitationsItemOrganization
      • organizationId (from organization_id) required

        ID of the organization.

        OrganizationId string
      • name required

        Name of the organization.

        string

users_QuerySessions

POST /api/v1/actions/invoke/users_QuerySessions

Query the sessions of a user.

Request QueryUserSessionsAction

  • userId (from user_id) required

    ID of the user.

    UserId string

Response QueryUserSessionsOutput

  • sessions required

    List of user sessions.

    array<UserSession>
    UserSession
    • sessionId (from session_id) required

      ID of the session.

      UserSessionId string
    • createdAt (from created_at) required

      Creation date of the session.

      Timestamp string
    • expiresAt (from expires_at) required

      Expiration date of the session.

      Timestamp string
    • userAgent (from user_agent) required

      User agent of the session.

      string

users_GetDevicePermissions

POST /api/v1/actions/invoke/users_GetDevicePermissions

Check the permissions of a user for a given device.

Request GetDevicePermissionsAction

  • userId (from user_id) required

    ID of the user.

    UserId string
  • deviceId (from device_id) required

    ID of the device.

    DeviceId string

Response GetDevicePermissionsOutput

  • hasAccess (from has_access) required

    Whether the user has access to the device.

    boolean

users_CreateToken

POST /api/v1/actions/invoke/users_CreateToken

Create a user token.

Request CreateUserTokenAction

  • userId (from user_id) required

    ID of the user.

    UserId string
  • name optional

    Name of the token.

    string

Response CreateUserTokenOutput

  • tokenId (from token_id) required

    ID of the token.

    UserTokenId string
  • token required

    Token.

    UserToken string

users_DeleteToken

POST /api/v1/actions/invoke/users_DeleteToken

Delete a user token.

Request DeleteUserTokenAction

  • tokenId (from token_id) required

    ID of the token.

    UserTokenId string

Response Empty

No fields.

users_TerminateSession

POST /api/v1/actions/invoke/users_TerminateSession

Terminate a user session.

The acting user must own the session; sessions belonging to other users are not affected.

Request TerminateUserSessionAction

  • sessionId (from session_id) required

    ID of the session.

    UserSessionId string

Response Empty

No fields.

users_CleanupExpiredSessions

POST /api/v1/actions/invoke/users_CleanupExpiredSessions

Cleanup expired user sessions.

Request CleanupExpiredUserSessionsAction

No fields.

Response Empty

No fields.

users_Register

POST /api/v1/actions/invoke/users_Register

Register a new user with an email and password.

Request RegisterUserAction

  • displayName (from display_name) optional

    Name of the user.

    string
  • email required

    Email address of the user.

    string
  • password required

    Password of the user.

    string
  • consentedToTerms (from consented_to_terms) required

    Indicates whether the user has consented to the terms and conditions.

    This must be true to register a user.

    boolean
  • consentedToMarketing (from consented_to_marketing) optional

    Indicates whether the user has consented to marketing communications.

    boolean

Response RegisterUserOutput

  • Created

    User registration has been created.

    { "result": "Created", ...<payload fields> } β€” or "content" for non-object payloads

    UserRegistration
    • status required

      Registration status.

      UserRegistrationStatus
      • Pending

        Registration is pending.

        { "tag": "Pending" }

      • Waiting

        / Registration is waiting for approval.

        { "tag": "Waiting" }

      • Completed

        Registration was successful.

        { "tag": "Completed" }

      • Failed

        Registration failed.

        { "tag": "Failed" }

    • message optional

      Optional message to show to the user.

      string
    • createdAt (from created_at) required

      Timestamp when the registration was created.

      Timestamp string
  • Pending

    User registration is already pending.

    { "result": "Pending", ...<payload fields> } β€” or "content" for non-object payloads

    UserRegistration
    • status required

      Registration status.

      UserRegistrationStatus
      • Pending

        Registration is pending.

        { "tag": "Pending" }

      • Waiting

        / Registration is waiting for approval.

        { "tag": "Waiting" }

      • Completed

        Registration was successful.

        { "tag": "Completed" }

      • Failed

        Registration failed.

        { "tag": "Failed" }

    • message optional

      Optional message to show to the user.

      string
    • createdAt (from created_at) required

      Timestamp when the registration was created.

      Timestamp string
  • EmailAlreadyExists

    User with the same email already exists.

    { "result": "EmailAlreadyExists" }

users_ResendRegistrationEmail

POST /api/v1/actions/invoke/users_ResendRegistrationEmail

Request ResendRegistrationEmailAction

  • email required

    Email address of the user.

    string

Response Empty

No fields.

users_CompleteRegistration

POST /api/v1/actions/invoke/users_CompleteRegistration

Complete the registration of a user.

Request CompleteRegistrationAction

  • activationToken (from activation_token) required

    Token to use for account activation.

    Jwt
    string

Response CompleteRegistrationOutput

  • Completed

    Registration was successful.

    { "result": "Completed" }

  • Failed

    Registration failed.

    { "result": "Failed" }

users_AcceptOrganizationInvitation

POST /api/v1/actions/invoke/users_AcceptOrganizationInvitation

Accept a organization invitation.

Request AcceptOrganizationInvitationAction

  • invitationId (from invitation_id) required

    ID of the invitation.

    OrganizationInvitationId string

Response Empty

No fields.