Create and invite a new user
client.autoScribe.users.invite(UserInviteParams { canCreateReports, canManageStudies, clinicRole, 10 more } body, RequestOptionsoptions?): UserInviteResponse { canCreateReports, canManageStudies, clinicRole, 14 more }
POST/v1/autoScribe/users
Creates a new user in the AutoScribe system and sends them an invitation email. The user will have the specified permissions including report creation and study management capabilities. NPI number is required for users who can create reports.
Parameters
Returns
Create and invite a new user
import Avara from 'avara';
const client = new Avara({
apiKey: process.env['AVARA_API_KEY'], // This is the default and can be omitted
});
const response = await client.autoScribe.users.invite({
canCreateReports: true,
canManageStudies: true,
clinicRole: 'Radiologist',
email: 'dr.johnson@hospital.org',
firstName: 'Sarah',
hasDashboardAccess: true,
lastName: 'Johnson',
level: 'member',
});
console.log(response.middleName);{
"canCreateReports": true,
"canManageStudies": true,
"clinicRole": "Radiologist",
"createdAt": "2024-01-15T10:00:00Z",
"email": "dr.johnson@hospital.org",
"firstName": "Sarah",
"hasDashboardAccess": true,
"invitedSource": "api",
"lastLoginAt": "2024-03-15T09:00:00Z",
"lastName": "Johnson",
"level": "member",
"userId": "usr_1234567890abcdef1234567890abcdef",
"middleName": "Marie",
"npiNumber": "1234567893",
"phoneNumber": "5551234567",
"suffix1": "MD",
"suffix2": "FACR"
}Returns Examples
{
"canCreateReports": true,
"canManageStudies": true,
"clinicRole": "Radiologist",
"createdAt": "2024-01-15T10:00:00Z",
"email": "dr.johnson@hospital.org",
"firstName": "Sarah",
"hasDashboardAccess": true,
"invitedSource": "api",
"lastLoginAt": "2024-03-15T09:00:00Z",
"lastName": "Johnson",
"level": "member",
"userId": "usr_1234567890abcdef1234567890abcdef",
"middleName": "Marie",
"npiNumber": "1234567893",
"phoneNumber": "5551234567",
"suffix1": "MD",
"suffix2": "FACR"
}