Users

  • A User represent a physical person.

  • A User can have many Emails and Phones.

  • A User is associated with one to many Account Users.

The User Object

Create a User

POST https://api.pagertree.com/api/v4/users

Allowed Parameters

def user_params
  params.permit(
    :name,
    :email,
    :notify_push,
    :notify_email,
    :notify_sms,
    :notify_voice,
    emails_attributes: [
      :id,
      :email,
      :primary
    ],
    phones_attributes: [
      :id,
      :phone,
      :confirmation_method,
      :primary
    ]
  )
end

Required Parameters

  • name

  • email

A default secure password will be created by PagerTree and assigned to the user (not applicable if using SSO on the account). The user will receive an email containing their username and password. If a user already exists in PagerTree they will receive an invite email where they can approve or deny joining your account. When the user logs in to PagerTree for the first time they will be guided through a setup process to confirm their phone number.

Example Request

POST https://api.pagertree.com/api/v4/users
{
  "name": "Bobby Hill",
  "email": "bobby@example.com"
}

Retrieve a User

GET https://api.pagertree.com/api/v4/users/:id

Update a User

PUT https://api.pagertree.com/api/v4/users/:id

Delete a User

This action is not supported. Please see the Delete a Account User method.

List all Users

GET https://api.pagertree.com/api/v4/users

Last updated