Create
This endpoint allows integrators to register their users into MeetingLawyers' platform in order to authenticate them to the SDKs.
Request
POST https://api.demo.meetinglawyers.com/s2s/v1/users (development)
POST https://api.meetinglawyers.com/s2s/v1/users (production)
Headers
| Name | Value |
|---|---|
Api-Key | Integration identifier provided by MeetingLawyers |
Secret-Key | Security key provided by MeetingLawyers to securize server-to-server communications |
Content-Type | application/json |
Accept | application/json |
Request body
Parameters
| Name | Required | Type | Value |
|---|---|---|---|
user_id | True | String | Your user unique identifier |
status | True | Numeric | If the user can access the platform. Possible values: 0: Free (no access), 2: Premium (full access), 4: Freemium (free trial with a specific period of time. This needs to be configured in advance) |
email | False | String | A valid email |
nid_number | False | String | A valid dni or nie |
first_name | False | String | User's first name |
last_name | False | String | User's last name |
gender | False | Numeric | Used to give more information to the professional. For example, in case there are laws that differ depending on the gender. 0: Male, 1: Female |
birthdate | False | Date | ISO8601 Date (YYYY-MM-DD) |
mobile_phone | False | String | A mobile phone number |
coverage_name | False | String | User plan information. This can be a group, contract type, or anything that can be used to group and filter users |
contract_number | False | String | User contract number. Used to link a contract or any other ID of the user in the integrator's platform with the user in our platform |
service_language_code | False | String | ISO639-1 language code |
description | False | String | Extra user information provided by the integrator, and not visible to final users. |
has_video_call | False | Numeric | 0:Disabled, 1:Enabled |
has_video_call_1to1 | False | Numeric | 0:Disabled, 1:Enabled |
country_code | False | String | ISO3166-1 alpha-2 country code |
ml_group_name | False | String | User's group in MeetingLawyers. Used to show or hide a specific subset of professionals to some users |
md_group_name | False | String | User's group in MeetingDoctors (for MeetingPros apps) |
Example
{
"user_id": "05415506H",
"status": 2,
"email": "example@meetinglawyers.com",
"nid_number": "12345678A",
"first_name": "John",
"last_name": "Doe",
"gender": 1,
"birthdate": "1980-12-31",
"mobile_phone": "600000000",
"coverage_name": "Premium",
"contract_number": "123456",
"service_language_code": "en",
"description": null,
"has_video_call": 1,
"has_video_call_1to1": 1,
"country_code": "ES",
"ml_group_name": "demo-lawyers",
"md_group_name": "demo-doctors"
}