← Home Get Users

Get Users

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

This endpoint lists all the users.

🔐 Bearer Token: Provide your bearer token in the Authorization header when making requests to protected resources.
Query Parameters
NameTypeRequiredDescriptionExample
per_pagestringOptionalThe number of results per page.2
rolestringOptionalThe role filter, returns users with matching role.agent
agency_idintegerOptionalThe agency filter, returns users with matching agency.102917
emailstringOptionalThe email filter, returns user with matching email.john.doe@gmail.com
AcceptstringOptionalapplication/json
Response Schema
NameTypeRequiredDescriptionExample
dataobjectOptionalThe data returned by the API.
idintegerOptionalThe ID of the user.
nameobjectOptionalThe name of the user.
aboutstringOptionalThe description of the user.
genderstringOptionalThe gender of the user.
imagestringOptionalThe URL pointing to the User's profile picture.
experience_in_yearsstringOptional
countryobjectOptionalThe information about User's country.
brn_numberstringOptionalThe Broker Registration Number (BRN) of the user.
bln_numberstringOptionalThe Broker License Number (BLN) of the user.
contactobjectOptionalThe contact information of the user.
agencyobjectOptionalThe Agency of the user.
teamsarray[string]OptionalThe teams of the user.
languagesarray[integer]Optional
social_mediasarray[integer]Optional
specialitiesarray[integer]Optional
speciality_areasarray[object]Optional
linksobjectOptionalThe links to pages.
firststringOptionalThe link to first page.
laststringOptionalThe link to last page.
prevstringOptionalThe link to previous page.
nextstringOptionalThe link to next page.
metaobjectOptionalMeta about pagination data.
current_pageintegerOptionalThe page you are currently on.
fromintegerOptionalThe first page of the paginated results.
pathstringOptionalThe path of the current page.
tointegerOptionalThe last page of the paginated results.
totalintegerOptionalThe total number of results.
Responses
200
401⚠️
403⚠️
Code Examples
curl --location 'https://api.bayut.com/v1/users' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>'
{
    "data": [
        {
            "data": {
                "id": 2318195,
                "name": {
                    "en": "John Doe",
                    "ar": null
                },
                "about": "Real Estate Agent",
                "gender": "male",
                "image": "https://assets.stage.bayut.com/agents/Z1tXgUduNDPDQ1mWF2O6ToZKXtQ7M6gDSWx8ib7S",
                "experience_in_years": "5",
                "country": {
                    "en": "Antarctica",
                    "ar": "أنتاركتيكا"
                },
                "brn_number": "89238912839112",
                "bln_number": null,
                "contact": {
                    "email": "john.doe@gmail.com",
                    "phone": "+97141234567",
                    "cell": "+971501234567",
                    "whatsapp": null
                },
                "role": "agency-admin",
                "agency": {
                    "id": 102917,
                    "name": "Lake City Real Estate"
                },
                "teams": [],
                "languages": [
                    "English",
                    "Tamil"
                ],
                "social_medias": [],
                "specialities": [
                    "Off-Plan Sales",
                    "Residential Sales"
                ],
                "speciality_areas": [
                    {
                        "en": "Dubai",
                        "ar": "دبي"
                    },
                    {
                        "en": "Abu Dhabi",
                        "ar": "أبوظبي"
                    }
                ]
            }
        },
        {
            "data": {
                "id": 2318195,
                "name": {
                    "en": "Jane Doe",
                    "ar": "جين دو"
                },
                "about": "Real Estate Agent",
                "gender": "female",
                "image": "https://assets.stage.bayut.com/agents/Z1tXgUduNDPDQ1mWF2O6ToZKXtQ7M6gDSWx8ib7S",
                "experience_in_years": "5",
                "country": {
                    "en": "Antarctica",
                    "ar": "أنتاركتيكا"
                },
                "brn_number": "89238912839112",
                "bln_number": null,
                "contact": {
                    "email": "jane.doe@gmail.com",
                    "phone": "+97141234567",
                    "cell": "+971501234567",
                    "whatsapp": null
                },
                "role": "agency-admin",
                "agency": {
                    "id": 102917,
                    "name": "Lake City Real Estate"
                },
                "teams": [],
                "languages": [
                    "English",
                    "Tamil"
                ],
                "social_medias": [],
                "specialities": [
                    "Off-Plan Sales",
                    "Residential Sales"
                ],
                "speciality_areas": [
                    {
                        "en": "Dubai Marina",
                        "ar": "دبي"
                    },
                    {
                        "en": "Abu Dhabi",
                        "ar": "أبوظبي"
                    }
                ]
            }
        }
    ],
    "links": {
        "first": "https://api.bayut.com/v1/users?page=1",
        "last": null,
        "prev": null,
        "next": "https://api.bayut.com/v1/users?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "path": "https://api.bayut.com/v1/users",
        "per_page": "2",
        "to": 2,
        "total": 190
    }
}