← Home Create User

Create User

POSThttps://api.bayut.com/v1/users

This endpoint creates a new user.

🔐 Bearer Token: Provide your bearer token in the Authorization header when making requests to protected resources.
Query Parameters
NameTypeRequiredDescriptionExample
namestringOptionalThe name of the user.<= 255 characters
emailstringOptionalA unique email address for the user, not already registered in ProFolio.john.doe@bayut.com
passwordstringOptionalRequires a minimum of 8 characters, including at least one of each: an uppercase letter, a lowercase letter, a symbol, and a number.>= 8 characters
phonestringOptionalThe user's phone number in E.164 format+971501234567
cellstringOptionalThe user's phone number in E.164 format
whatsappstringOptionalThe user's phone number in E.164 format
genderstringOptionalThe gender of the user.Male
aboutstringOptionalThe description of the user.
experienceintegerOptionalThe experience in years, from 0 to 50.>= 0
agency_idintegerOptionalThe agency ID of the user.
rolestringOptionalThe role of the user.agent
country_idintegerOptionalThe unique identifier for the country. See theGET v1/countriesendpoint for a list of valid IDs.
areasarray[integer]OptionalThe speciality areas of the user.>= 1 items
specialitiesarray[integer]Optional
languagesarray[integer]Optional
social_mediasarray[integer]Optional
teamsarray[string]OptionalThe teams of the user.
AcceptstringOptionalapplication/json
messagestringOptionalA general message regarding successful user creation.
Response Schema
NameTypeRequiredDescriptionExample
dataobjectOptionalThe data of the newly created User.
idstringOptionalThe ID of the user.
imagestringOptionalThe URL pointing to the User's profile picture.
experience_in_yearsintegerOptional
countryobjectOptionalThe unique identifier for the country. See theGET v1/countriesendpoint for a list of valid IDs.
brn_numberstringOptionalThe Broker Registration Number (BRN) of the user.john.doe@bayut.com
bln_numberstringOptionalThe Broker License Number (BLN) of the user.
contactobjectOptionalRequires a minimum of 8 characters, including at least one of each: an uppercase letter, a lowercase letter, a symbol, and a number.
agencyobjectOptionalThe Agency of the user.
Responses
201
422⚠️
401⚠️
403⚠️
Code Examples
curl --location 'https://api.bayut.com/v1/users' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "name": "John Doe",
  "email": "john.doe@bayut.com",
  "password": "B@yut123#",
  "phone": "+971501234567",
  "cell": "+971501234568",
  "whatsapp": "+971501234569",
  "gender": "male",
  "about": "Experienced real estate professional with 5+ years in the UAE market, specializing in luxury properties and commercial real estate.",
  "experience": 5,
  "agency_id": 102917,
  "role": "agent",
  "country_id": 1,
  "areas": [5001, 5002, 5003],
  "specialities": [1, 2, 3],
  "languages": [1, 6],
  "social_medias": [
    {
      "platform_id": 1,
      "url": "https://www.linkedin.com/in/johndoe"
    },
    {
      "platform_id": 2,
      "url": "https://www.instagram.com/johndoe"
    }
  ]
}'
{
    "message": "User created successfully",
    "data": {
        "id": 2594713,
        "name": {
            "en": "John Doe",
            "ar": null
        },
        "about": "Experienced real estate professional with 5+ years in the UAE market, specializing in luxury properties and commercial real estate.",
        "gender": "male",
        "image": null,
        "experience_in_years": 5,
        "country": {
            "en": "Afghanistan",
            "ar": "أفغانستان"
        },
        "brn_number": null,
        "bln_number": null,
        "contact": {
            "email": "john.doe@bayut.com",
            "phone": "+971501234567",
            "cell": "+971501234568",
            "whatsapp": "+971501234569"
        },
        "role": "agent",
        "agency": {
            "id": 102917,
            "name": "Lake city real estate"
        },
        "teams": [],
        "languages": [
            "English",
            "Arabic"
        ],
        "social_medias": [
            {
                "platform": "Facebook",
                "url": "https://www.linkedin.com/in/johndoe"
            },
            {
                "platform": "Instagram",
                "url": "https://www.instagram.com/johndoe"
            }
        ],
        "specialities": [
            "Residential Sales",
            "Residential Leasing",
            "Commercial Sales"
        ],
        "speciality_areas": [
            {
                "en": "UAE",
                "ar": "الإمارات"
            },
            {
                "en": "Dubai",
                "ar": "دبي"
            },
            {
                "en": "Dubai Marina",
                "ar": "دبي مارينا"
            }
        ]
    }
}