Skip to main content
POST
/
v1
/
users
/
create
New User Creation Operation
curl --request POST \
  --url https://api.iklim.co/v1/users/create \
  --header 'Content-Type: application/json' \
  --data '{
  "username": "name@domain.com",
  "password": "password",
  "firstName": "John",
  "midName": "Bob",
  "lastName": "Doe",
  "locale": "tr_TR",
  "timezone": "Europe/Istanbul",
  "roles": "['\''STANDARD_USER'\'', '\''API_USER'\'']",
  "status": "['\''ACTIVE'\'']"
}'
{
"userId": "8e94a551-5b86-40ba-ae55-b019dee5cc25",
"username": "name@domain.com",
"firstName": "John",
"midName": "Bob",
"lastName": "Doe",
"locale": "tr_TR",
"timezone": "Europe/Istanbul",
"roles": "API_USER",
"status": "INACTIVE",
"account": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "INDIVIDUAL",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"mobilePhoneNumber": "<string>",
"location": "<string>",
"company": "<string>",
"industry": "<string>",
"profilePictureUrl": "<string>",
"subscriptionPlan": "NONE",
"emailVerified": true,
"mobilePhoneNumberVerified": true
}
}

Body

application/json
username
string
required

User Name in E-Mail Format for Registration

Example:

"name@domain.com"

firstName
string
required

First Name for Registration

Example:

"John"

lastName
string
required

Last Name for Registration

Example:

"Doe"

locale
string
required

User Locale for Registration

Example:

"tr_TR"

timezone
string
required

User Timezone Id. You Can Find a List of 'TZ identifier' on page https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

Example:

"Europe/Istanbul"

roles
enum<string>[]
required

User's Roles

Example:

"['STANDARD_USER', 'API_USER']"

status
enum<string>
required

User's Status

Available options:
INACTIVE,
ACTIVE,
EXPIRED,
BLOCKED,
DELETED
Example:

"['ACTIVE']"

password
string

Password for Registration

Example:

"password"

midName
string

Mid Name for Registration

Example:

"Bob"

Response

Successful New User Creation

userId
string
required

ID Number of Registered User

Example:

"8e94a551-5b86-40ba-ae55-b019dee5cc25"

username
string
required

Registered User Name

Example:

"name@domain.com"

firstName
string
required

Registered User First Name

Example:

"John"

lastName
string
required

Registered User Last Name

Example:

"Doe"

locale
string
required

Registered User Locale

Example:

"tr_TR"

timezone
string
required

Registered User Time Zone Id

Example:

"Europe/Istanbul"

roles
enum<string>[]
required

Registered User Roles

Example:

"API_USER"

status
enum<string>
required

Registered User Status

Available options:
INACTIVE,
ACTIVE,
EXPIRED,
BLOCKED,
DELETED
Example:

"INACTIVE"

midName
string

Registered User Mid Name

Example:

"Bob"

account
object