Create a user account
const url = 'https://example.com/user';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"uniqueId":"example","language":"en","physicianCountry":"example","phone":"example","email":"hello@example.com","shouldNotify":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/user \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "uniqueId": "example", "language": "en", "physicianCountry": "example", "phone": "example", "email": "hello@example.com", "shouldNotify": true }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Example
enE.164 formatted phone number.
Responses
Section titled “Responses”User created.
The Abi record representing a person who can use a configured service.
object
The unique identifier Abi assigns to the user account.
An optional identifier from the partner system.
The user’s first name.
The user’s surname.
The user’s email address.
The user’s mobile number including international dialing code (E.164).
The user’s date of birth.
The user’s gender where supplied.
The language used to communicate with Abi.
The user’s nationality or country code.
The country where the user lives or is currently located.
The country in which the user was born.
The country in which responding healthcare professionals are licensed.
The partner company recorded in Abi.
The permitted number of associated accounts for an enabled group-account policy.
The user’s current access status.
Example
{ "id": "abi1234", "uniqueId": "123abc789xyz", "firstName": "Jane", "lastName": "Doe", "email": "janedoe@example.com", "phone": "+441234567890", "dateOfBirth": "1994-10-07", "gender": "male", "language": "en", "country": "it", "location": "es", "origin": "gb", "physicianCountry": "es", "partnerName": "Abi", "associatedAccounts": 5, "userStatus": "activeUser"}