Add user
POST
/users/add
const url = 'https://acme.mykreezalid.com/api/v1/users/add';const options = { method: 'POST', headers: {Authorization: 'Basic <credentials>', 'Content-Type': 'application/json'}, body: '{"email":"jane@example.com","group_id":784568,"password":"example","avatar":"example","external_id":"ABCdef123456","account_type":"individual","first_name":"Jane","last_name":"Doe","username":"janedoe","business_name":"ACME","address_line1":"example","address_line2":"example","address_city":"example","address_zipcode":"example","address_state":"example","address_country":"US","nationality":"US","phone_country_code":"+1","phone_number":"212-398-2600","lang":"en","timezone":"America/New_York"}'};
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://acme.mykreezalid.com/api/v1/users/add \ --header 'Authorization: Basic <credentials>' \ --header 'Content-Type: application/json' \ --data '{ "email": "jane@example.com", "group_id": 784568, "password": "example", "avatar": "example", "external_id": "ABCdef123456", "account_type": "individual", "first_name": "Jane", "last_name": "Doe", "username": "janedoe", "business_name": "ACME", "address_line1": "example", "address_line2": "example", "address_city": "example", "address_zipcode": "example", "address_state": "example", "address_country": "US", "nationality": "US", "phone_country_code": "+1", "phone_number": "212-398-2600", "lang": "en", "timezone": "America/New_York" }'Creates a user in an existing group. The answer always has the HTTP status 200: check success. When the user cannot be created, message says why: a sentence, or an object listing the invalid fields.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
email
required
Must not be used by another user
string
Example
jane@example.comgroup_id
required
Identifier of an existing group
integer
Example
784568password
If you leave it out on creation, a random password is set: the user then chooses one with the password reset.
string
avatar
URL of an image to download and use as the profile image
string
external_id
string
Example
ABCdef123456account_type
string
first_name
string
Example
Janelast_name
string
Example
Doeusername
string
Example
janedoebusiness_name
string
Example
ACMEaddress_line1
string
address_line2
string
address_city
string
address_zipcode
string
address_state
string
address_country
Two-letter country code. Defaults to your marketplace’s country on creation.
string
Example
USnationality
Two-letter country code. Defaults to your marketplace’s country on creation.
string
Example
USphone_country_code
string
Example
+1phone_number
string
Example
212-398-2600lang
string
Example
entimezone
Defaults to your marketplace’s time zone on creation.
string
Example
America/New_YorkResponses
Section titled “Responses”Whether the user has been created