Create an agent
curl --request POST \
--url https://api.windermere.com/v2/api/agents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"firstName": "<string>",
"lastName": "<string>",
"primaryOfficeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"primaryEmailAddress": "<string>",
"permissionLevel": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"displayName": "<string>",
"signInUpn": "jsmith@example.com",
"agentUuid": "<string>",
"sourceAgentId": "<string>",
"externalPartnerIds": [
{
"partnerName": "<string>",
"partnerId": "<string>"
}
],
"secondaryEmailAddress": "<string>",
"leadRoutingEmailAddress": "<string>",
"emailAddresses": {
"primary": "<string>",
"display": "<string>",
"alternate": "<string>",
"moxiSync": "<string>",
"zillow": "<string>",
"leadRouting": "<string>"
},
"emailAliases": [
"<string>"
],
"mainPhoneNumber": "<string>",
"mobilePhoneNumber": "<string>",
"altPhoneNumber": "<string>",
"faxPhoneNumber": "<string>",
"mlsAgentId": "<string>",
"license": "<string>",
"licenseState": "<string>",
"mlsName": "<string>",
"mlsAbbreviation": "<string>",
"availableMls": [
{
"name": "<string>",
"displayName": "<string>",
"mlsAbbreviation": "<string>",
"agentId": "<string>"
}
],
"licenseStartDate": "<string>",
"licenseRenewalDate": "<string>",
"title": "<string>",
"designations": "<string>",
"bio": "<string>",
"languages": [
"<string>"
],
"serviceAreaZipCodes": [
"<string>"
],
"areasOfService": "<string>",
"profileImageUrl": "<string>",
"profileThumbUrl": "<string>",
"profileImageUrls": {},
"social": {},
"homePage": "<string>",
"websiteBaseUrl": "<string>",
"viewLevel": "<string>",
"role": "<string>",
"hasProductAccess": true,
"productAccess": {},
"profileVisibleOnline": true,
"includeInApi": true,
"tags": [
"<string>"
],
"directoryCategory": "<string>",
"emergencyContactName": "<string>",
"emergencyContactPhone": "<string>",
"dietaryRestrictions": "<string>",
"childrenAndPets": "<string>",
"birthday": "<string>",
"namePronunciation": "<string>",
"hireDate": "<string>",
"importantDates": [
{
"label": "<string>",
"date": "<string>"
}
],
"priorBrokerage": "<string>",
"agentSubscriptions": [
"<string>"
],
"internalNotes": "<string>",
"officeWoboOptOut": true,
"notificationPreferences": {
"newLeads": true,
"showingRequests": true
},
"reactivationHistory": [
{
"reactivatedAt": 123,
"deactivatedAt": 123,
"reactivatedBy": "<string>"
}
]
}
'import requests
url = "https://api.windermere.com/v2/api/agents"
payload = {
"firstName": "<string>",
"lastName": "<string>",
"primaryOfficeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"primaryEmailAddress": "<string>",
"permissionLevel": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"displayName": "<string>",
"signInUpn": "jsmith@example.com",
"agentUuid": "<string>",
"sourceAgentId": "<string>",
"externalPartnerIds": [
{
"partnerName": "<string>",
"partnerId": "<string>"
}
],
"secondaryEmailAddress": "<string>",
"leadRoutingEmailAddress": "<string>",
"emailAddresses": {
"primary": "<string>",
"display": "<string>",
"alternate": "<string>",
"moxiSync": "<string>",
"zillow": "<string>",
"leadRouting": "<string>"
},
"emailAliases": ["<string>"],
"mainPhoneNumber": "<string>",
"mobilePhoneNumber": "<string>",
"altPhoneNumber": "<string>",
"faxPhoneNumber": "<string>",
"mlsAgentId": "<string>",
"license": "<string>",
"licenseState": "<string>",
"mlsName": "<string>",
"mlsAbbreviation": "<string>",
"availableMls": [
{
"name": "<string>",
"displayName": "<string>",
"mlsAbbreviation": "<string>",
"agentId": "<string>"
}
],
"licenseStartDate": "<string>",
"licenseRenewalDate": "<string>",
"title": "<string>",
"designations": "<string>",
"bio": "<string>",
"languages": ["<string>"],
"serviceAreaZipCodes": ["<string>"],
"areasOfService": "<string>",
"profileImageUrl": "<string>",
"profileThumbUrl": "<string>",
"profileImageUrls": {},
"social": {},
"homePage": "<string>",
"websiteBaseUrl": "<string>",
"viewLevel": "<string>",
"role": "<string>",
"hasProductAccess": True,
"productAccess": {},
"profileVisibleOnline": True,
"includeInApi": True,
"tags": ["<string>"],
"directoryCategory": "<string>",
"emergencyContactName": "<string>",
"emergencyContactPhone": "<string>",
"dietaryRestrictions": "<string>",
"childrenAndPets": "<string>",
"birthday": "<string>",
"namePronunciation": "<string>",
"hireDate": "<string>",
"importantDates": [
{
"label": "<string>",
"date": "<string>"
}
],
"priorBrokerage": "<string>",
"agentSubscriptions": ["<string>"],
"internalNotes": "<string>",
"officeWoboOptOut": True,
"notificationPreferences": {
"newLeads": True,
"showingRequests": True
},
"reactivationHistory": [
{
"reactivatedAt": 123,
"deactivatedAt": 123,
"reactivatedBy": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
firstName: '<string>',
lastName: '<string>',
primaryOfficeId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
primaryEmailAddress: '<string>',
permissionLevel: '<string>',
id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
displayName: '<string>',
signInUpn: 'jsmith@example.com',
agentUuid: '<string>',
sourceAgentId: '<string>',
externalPartnerIds: [{partnerName: '<string>', partnerId: '<string>'}],
secondaryEmailAddress: '<string>',
leadRoutingEmailAddress: '<string>',
emailAddresses: {
primary: '<string>',
display: '<string>',
alternate: '<string>',
moxiSync: '<string>',
zillow: '<string>',
leadRouting: '<string>'
},
emailAliases: ['<string>'],
mainPhoneNumber: '<string>',
mobilePhoneNumber: '<string>',
altPhoneNumber: '<string>',
faxPhoneNumber: '<string>',
mlsAgentId: '<string>',
license: '<string>',
licenseState: '<string>',
mlsName: '<string>',
mlsAbbreviation: '<string>',
availableMls: [
{
name: '<string>',
displayName: '<string>',
mlsAbbreviation: '<string>',
agentId: '<string>'
}
],
licenseStartDate: '<string>',
licenseRenewalDate: '<string>',
title: '<string>',
designations: '<string>',
bio: '<string>',
languages: ['<string>'],
serviceAreaZipCodes: ['<string>'],
areasOfService: '<string>',
profileImageUrl: '<string>',
profileThumbUrl: '<string>',
profileImageUrls: {},
social: {},
homePage: '<string>',
websiteBaseUrl: '<string>',
viewLevel: '<string>',
role: '<string>',
hasProductAccess: true,
productAccess: {},
profileVisibleOnline: true,
includeInApi: true,
tags: ['<string>'],
directoryCategory: '<string>',
emergencyContactName: '<string>',
emergencyContactPhone: '<string>',
dietaryRestrictions: '<string>',
childrenAndPets: '<string>',
birthday: '<string>',
namePronunciation: '<string>',
hireDate: '<string>',
importantDates: [{label: '<string>', date: '<string>'}],
priorBrokerage: '<string>',
agentSubscriptions: ['<string>'],
internalNotes: '<string>',
officeWoboOptOut: true,
notificationPreferences: {newLeads: true, showingRequests: true},
reactivationHistory: [{reactivatedAt: 123, deactivatedAt: 123, reactivatedBy: '<string>'}]
})
};
fetch('https://api.windermere.com/v2/api/agents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.windermere.com/v2/api/agents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'firstName' => '<string>',
'lastName' => '<string>',
'primaryOfficeId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'primaryEmailAddress' => '<string>',
'permissionLevel' => '<string>',
'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'displayName' => '<string>',
'signInUpn' => 'jsmith@example.com',
'agentUuid' => '<string>',
'sourceAgentId' => '<string>',
'externalPartnerIds' => [
[
'partnerName' => '<string>',
'partnerId' => '<string>'
]
],
'secondaryEmailAddress' => '<string>',
'leadRoutingEmailAddress' => '<string>',
'emailAddresses' => [
'primary' => '<string>',
'display' => '<string>',
'alternate' => '<string>',
'moxiSync' => '<string>',
'zillow' => '<string>',
'leadRouting' => '<string>'
],
'emailAliases' => [
'<string>'
],
'mainPhoneNumber' => '<string>',
'mobilePhoneNumber' => '<string>',
'altPhoneNumber' => '<string>',
'faxPhoneNumber' => '<string>',
'mlsAgentId' => '<string>',
'license' => '<string>',
'licenseState' => '<string>',
'mlsName' => '<string>',
'mlsAbbreviation' => '<string>',
'availableMls' => [
[
'name' => '<string>',
'displayName' => '<string>',
'mlsAbbreviation' => '<string>',
'agentId' => '<string>'
]
],
'licenseStartDate' => '<string>',
'licenseRenewalDate' => '<string>',
'title' => '<string>',
'designations' => '<string>',
'bio' => '<string>',
'languages' => [
'<string>'
],
'serviceAreaZipCodes' => [
'<string>'
],
'areasOfService' => '<string>',
'profileImageUrl' => '<string>',
'profileThumbUrl' => '<string>',
'profileImageUrls' => [
],
'social' => [
],
'homePage' => '<string>',
'websiteBaseUrl' => '<string>',
'viewLevel' => '<string>',
'role' => '<string>',
'hasProductAccess' => true,
'productAccess' => [
],
'profileVisibleOnline' => true,
'includeInApi' => true,
'tags' => [
'<string>'
],
'directoryCategory' => '<string>',
'emergencyContactName' => '<string>',
'emergencyContactPhone' => '<string>',
'dietaryRestrictions' => '<string>',
'childrenAndPets' => '<string>',
'birthday' => '<string>',
'namePronunciation' => '<string>',
'hireDate' => '<string>',
'importantDates' => [
[
'label' => '<string>',
'date' => '<string>'
]
],
'priorBrokerage' => '<string>',
'agentSubscriptions' => [
'<string>'
],
'internalNotes' => '<string>',
'officeWoboOptOut' => true,
'notificationPreferences' => [
'newLeads' => true,
'showingRequests' => true
],
'reactivationHistory' => [
[
'reactivatedAt' => 123,
'deactivatedAt' => 123,
'reactivatedBy' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.windermere.com/v2/api/agents"
payload := strings.NewReader("{\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"primaryOfficeId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"primaryEmailAddress\": \"<string>\",\n \"permissionLevel\": \"<string>\",\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"displayName\": \"<string>\",\n \"signInUpn\": \"jsmith@example.com\",\n \"agentUuid\": \"<string>\",\n \"sourceAgentId\": \"<string>\",\n \"externalPartnerIds\": [\n {\n \"partnerName\": \"<string>\",\n \"partnerId\": \"<string>\"\n }\n ],\n \"secondaryEmailAddress\": \"<string>\",\n \"leadRoutingEmailAddress\": \"<string>\",\n \"emailAddresses\": {\n \"primary\": \"<string>\",\n \"display\": \"<string>\",\n \"alternate\": \"<string>\",\n \"moxiSync\": \"<string>\",\n \"zillow\": \"<string>\",\n \"leadRouting\": \"<string>\"\n },\n \"emailAliases\": [\n \"<string>\"\n ],\n \"mainPhoneNumber\": \"<string>\",\n \"mobilePhoneNumber\": \"<string>\",\n \"altPhoneNumber\": \"<string>\",\n \"faxPhoneNumber\": \"<string>\",\n \"mlsAgentId\": \"<string>\",\n \"license\": \"<string>\",\n \"licenseState\": \"<string>\",\n \"mlsName\": \"<string>\",\n \"mlsAbbreviation\": \"<string>\",\n \"availableMls\": [\n {\n \"name\": \"<string>\",\n \"displayName\": \"<string>\",\n \"mlsAbbreviation\": \"<string>\",\n \"agentId\": \"<string>\"\n }\n ],\n \"licenseStartDate\": \"<string>\",\n \"licenseRenewalDate\": \"<string>\",\n \"title\": \"<string>\",\n \"designations\": \"<string>\",\n \"bio\": \"<string>\",\n \"languages\": [\n \"<string>\"\n ],\n \"serviceAreaZipCodes\": [\n \"<string>\"\n ],\n \"areasOfService\": \"<string>\",\n \"profileImageUrl\": \"<string>\",\n \"profileThumbUrl\": \"<string>\",\n \"profileImageUrls\": {},\n \"social\": {},\n \"homePage\": \"<string>\",\n \"websiteBaseUrl\": \"<string>\",\n \"viewLevel\": \"<string>\",\n \"role\": \"<string>\",\n \"hasProductAccess\": true,\n \"productAccess\": {},\n \"profileVisibleOnline\": true,\n \"includeInApi\": true,\n \"tags\": [\n \"<string>\"\n ],\n \"directoryCategory\": \"<string>\",\n \"emergencyContactName\": \"<string>\",\n \"emergencyContactPhone\": \"<string>\",\n \"dietaryRestrictions\": \"<string>\",\n \"childrenAndPets\": \"<string>\",\n \"birthday\": \"<string>\",\n \"namePronunciation\": \"<string>\",\n \"hireDate\": \"<string>\",\n \"importantDates\": [\n {\n \"label\": \"<string>\",\n \"date\": \"<string>\"\n }\n ],\n \"priorBrokerage\": \"<string>\",\n \"agentSubscriptions\": [\n \"<string>\"\n ],\n \"internalNotes\": \"<string>\",\n \"officeWoboOptOut\": true,\n \"notificationPreferences\": {\n \"newLeads\": true,\n \"showingRequests\": true\n },\n \"reactivationHistory\": [\n {\n \"reactivatedAt\": 123,\n \"deactivatedAt\": 123,\n \"reactivatedBy\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.windermere.com/v2/api/agents")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"primaryOfficeId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"primaryEmailAddress\": \"<string>\",\n \"permissionLevel\": \"<string>\",\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"displayName\": \"<string>\",\n \"signInUpn\": \"jsmith@example.com\",\n \"agentUuid\": \"<string>\",\n \"sourceAgentId\": \"<string>\",\n \"externalPartnerIds\": [\n {\n \"partnerName\": \"<string>\",\n \"partnerId\": \"<string>\"\n }\n ],\n \"secondaryEmailAddress\": \"<string>\",\n \"leadRoutingEmailAddress\": \"<string>\",\n \"emailAddresses\": {\n \"primary\": \"<string>\",\n \"display\": \"<string>\",\n \"alternate\": \"<string>\",\n \"moxiSync\": \"<string>\",\n \"zillow\": \"<string>\",\n \"leadRouting\": \"<string>\"\n },\n \"emailAliases\": [\n \"<string>\"\n ],\n \"mainPhoneNumber\": \"<string>\",\n \"mobilePhoneNumber\": \"<string>\",\n \"altPhoneNumber\": \"<string>\",\n \"faxPhoneNumber\": \"<string>\",\n \"mlsAgentId\": \"<string>\",\n \"license\": \"<string>\",\n \"licenseState\": \"<string>\",\n \"mlsName\": \"<string>\",\n \"mlsAbbreviation\": \"<string>\",\n \"availableMls\": [\n {\n \"name\": \"<string>\",\n \"displayName\": \"<string>\",\n \"mlsAbbreviation\": \"<string>\",\n \"agentId\": \"<string>\"\n }\n ],\n \"licenseStartDate\": \"<string>\",\n \"licenseRenewalDate\": \"<string>\",\n \"title\": \"<string>\",\n \"designations\": \"<string>\",\n \"bio\": \"<string>\",\n \"languages\": [\n \"<string>\"\n ],\n \"serviceAreaZipCodes\": [\n \"<string>\"\n ],\n \"areasOfService\": \"<string>\",\n \"profileImageUrl\": \"<string>\",\n \"profileThumbUrl\": \"<string>\",\n \"profileImageUrls\": {},\n \"social\": {},\n \"homePage\": \"<string>\",\n \"websiteBaseUrl\": \"<string>\",\n \"viewLevel\": \"<string>\",\n \"role\": \"<string>\",\n \"hasProductAccess\": true,\n \"productAccess\": {},\n \"profileVisibleOnline\": true,\n \"includeInApi\": true,\n \"tags\": [\n \"<string>\"\n ],\n \"directoryCategory\": \"<string>\",\n \"emergencyContactName\": \"<string>\",\n \"emergencyContactPhone\": \"<string>\",\n \"dietaryRestrictions\": \"<string>\",\n \"childrenAndPets\": \"<string>\",\n \"birthday\": \"<string>\",\n \"namePronunciation\": \"<string>\",\n \"hireDate\": \"<string>\",\n \"importantDates\": [\n {\n \"label\": \"<string>\",\n \"date\": \"<string>\"\n }\n ],\n \"priorBrokerage\": \"<string>\",\n \"agentSubscriptions\": [\n \"<string>\"\n ],\n \"internalNotes\": \"<string>\",\n \"officeWoboOptOut\": true,\n \"notificationPreferences\": {\n \"newLeads\": true,\n \"showingRequests\": true\n },\n \"reactivationHistory\": [\n {\n \"reactivatedAt\": 123,\n \"deactivatedAt\": 123,\n \"reactivatedBy\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.windermere.com/v2/api/agents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"primaryOfficeId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"primaryEmailAddress\": \"<string>\",\n \"permissionLevel\": \"<string>\",\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"displayName\": \"<string>\",\n \"signInUpn\": \"jsmith@example.com\",\n \"agentUuid\": \"<string>\",\n \"sourceAgentId\": \"<string>\",\n \"externalPartnerIds\": [\n {\n \"partnerName\": \"<string>\",\n \"partnerId\": \"<string>\"\n }\n ],\n \"secondaryEmailAddress\": \"<string>\",\n \"leadRoutingEmailAddress\": \"<string>\",\n \"emailAddresses\": {\n \"primary\": \"<string>\",\n \"display\": \"<string>\",\n \"alternate\": \"<string>\",\n \"moxiSync\": \"<string>\",\n \"zillow\": \"<string>\",\n \"leadRouting\": \"<string>\"\n },\n \"emailAliases\": [\n \"<string>\"\n ],\n \"mainPhoneNumber\": \"<string>\",\n \"mobilePhoneNumber\": \"<string>\",\n \"altPhoneNumber\": \"<string>\",\n \"faxPhoneNumber\": \"<string>\",\n \"mlsAgentId\": \"<string>\",\n \"license\": \"<string>\",\n \"licenseState\": \"<string>\",\n \"mlsName\": \"<string>\",\n \"mlsAbbreviation\": \"<string>\",\n \"availableMls\": [\n {\n \"name\": \"<string>\",\n \"displayName\": \"<string>\",\n \"mlsAbbreviation\": \"<string>\",\n \"agentId\": \"<string>\"\n }\n ],\n \"licenseStartDate\": \"<string>\",\n \"licenseRenewalDate\": \"<string>\",\n \"title\": \"<string>\",\n \"designations\": \"<string>\",\n \"bio\": \"<string>\",\n \"languages\": [\n \"<string>\"\n ],\n \"serviceAreaZipCodes\": [\n \"<string>\"\n ],\n \"areasOfService\": \"<string>\",\n \"profileImageUrl\": \"<string>\",\n \"profileThumbUrl\": \"<string>\",\n \"profileImageUrls\": {},\n \"social\": {},\n \"homePage\": \"<string>\",\n \"websiteBaseUrl\": \"<string>\",\n \"viewLevel\": \"<string>\",\n \"role\": \"<string>\",\n \"hasProductAccess\": true,\n \"productAccess\": {},\n \"profileVisibleOnline\": true,\n \"includeInApi\": true,\n \"tags\": [\n \"<string>\"\n ],\n \"directoryCategory\": \"<string>\",\n \"emergencyContactName\": \"<string>\",\n \"emergencyContactPhone\": \"<string>\",\n \"dietaryRestrictions\": \"<string>\",\n \"childrenAndPets\": \"<string>\",\n \"birthday\": \"<string>\",\n \"namePronunciation\": \"<string>\",\n \"hireDate\": \"<string>\",\n \"importantDates\": [\n {\n \"label\": \"<string>\",\n \"date\": \"<string>\"\n }\n ],\n \"priorBrokerage\": \"<string>\",\n \"agentSubscriptions\": [\n \"<string>\"\n ],\n \"internalNotes\": \"<string>\",\n \"officeWoboOptOut\": true,\n \"notificationPreferences\": {\n \"newLeads\": true,\n \"showingRequests\": true\n },\n \"reactivationHistory\": [\n {\n \"reactivatedAt\": 123,\n \"deactivatedAt\": 123,\n \"reactivatedBy\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentUuid": "<string>",
"sourceAgentId": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"displayName": "<string>",
"externalPartnerIds": [
{
"partnerName": "<string>",
"partnerId": "<string>"
}
],
"primaryOfficeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"primaryEmailAddress": "<string>",
"signInUpn": "<string>",
"secondaryEmailAddress": "<string>",
"leadRoutingEmailAddress": "<string>",
"emailAddresses": {
"primary": "<string>",
"display": "<string>",
"alternate": "<string>",
"moxiSync": "<string>",
"zillow": "<string>",
"leadRouting": "<string>"
},
"emailAliases": [
"<string>"
],
"mainPhoneNumber": "<string>",
"mobilePhoneNumber": "<string>",
"altPhoneNumber": "<string>",
"faxPhoneNumber": "<string>",
"mlsAgentId": "<string>",
"license": "<string>",
"licenseState": "<string>",
"mlsName": "<string>",
"mlsAbbreviation": "<string>",
"availableMls": [
{
"name": "<string>",
"displayName": "<string>",
"mlsAbbreviation": "<string>",
"agentId": "<string>"
}
],
"licenseStartDate": "<string>",
"licenseRenewalDate": "<string>",
"title": "<string>",
"designations": "<string>",
"bio": "<string>",
"languages": [
"<string>"
],
"serviceAreaZipCodes": [
"<string>"
],
"areasOfService": "<string>",
"profileImageUrl": "<string>",
"profileThumbUrl": "<string>",
"profileImageUrls": {},
"social": {},
"homePage": "<string>",
"websiteBaseUrl": "<string>",
"permissionLevel": "<string>",
"viewLevel": "<string>",
"role": "<string>",
"hasProductAccess": true,
"productAccess": {},
"profileVisibleOnline": true,
"includeInApi": true,
"tags": [
"<string>"
],
"directoryCategory": "<string>",
"region": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"deactivatedAt": "2023-11-07T05:31:56Z",
"tosAcceptedAt": "2023-11-07T05:31:56Z",
"officeWoboOptOut": true,
"officeWoboOptedOutAt": "2023-11-07T05:31:56Z",
"lastUpdatedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"reactivationHistory": [
{
"reactivatedAt": 123,
"deactivatedAt": 123,
"reactivatedBy": "<string>"
}
],
"companyId": "<string>",
"facebookAccountId": "<string>",
"alternateInternalOfficeId": "<string>",
"primaryOffice": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"commonName": "<string>"
},
"secondaryOffices": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"commonName": "<string>",
"displayInDirectory": true
}
],
"brokerage": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"changeLogSummary": [
{
"changedAt": "<string>",
"actorId": "<string>",
"fieldPath": "<string>",
"oldValue": "<unknown>",
"newValue": "<unknown>"
}
],
"emergencyContactName": "<string>",
"emergencyContactPhone": "<string>",
"dietaryRestrictions": "<string>",
"childrenAndPets": "<string>",
"birthday": "<string>",
"namePronunciation": "<string>",
"hireDate": "<string>",
"importantDates": [
{
"label": "<string>",
"date": "<string>"
}
],
"archetype": {
"confidence": "HIGH",
"managerFit": "FITS",
"assessedAt": "2023-11-07T05:31:56Z",
"name": null,
"businessApproach": null,
"goalOrientation": null,
"techReadiness": null,
"assessedByAgentId": null,
"source": null,
"recordId": null,
"questionnaireVersion": null,
"scoringVersion": null
},
"priorBrokerage": "<string>",
"agentSubscriptions": [
"<string>"
],
"internalNotes": "<string>",
"notificationPreferences": {
"newLeads": true,
"showingRequests": true,
"channel": "email"
},
"smsConsent": {
"windermere": {
"granted": true,
"at": "2023-11-07T05:31:56Z",
"textVersion": "<string>"
},
"brokerage": {
"granted": true,
"at": "2023-11-07T05:31:56Z",
"textVersion": "<string>"
}
},
"teams": [
{
"teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"role": "<string>",
"memberCount": 1
}
],
"delegateAccess": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"status": "active",
"via": {
"grant": {
"grantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
}
],
"officeWoboAccessors": [
{
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "<string>",
"permissionLevel": "<string>",
"bucket": "staff",
"via": "primary",
"office": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
}
]
}agents
Create an agent
POST
/
agents
Create an agent
curl --request POST \
--url https://api.windermere.com/v2/api/agents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"firstName": "<string>",
"lastName": "<string>",
"primaryOfficeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"primaryEmailAddress": "<string>",
"permissionLevel": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"displayName": "<string>",
"signInUpn": "jsmith@example.com",
"agentUuid": "<string>",
"sourceAgentId": "<string>",
"externalPartnerIds": [
{
"partnerName": "<string>",
"partnerId": "<string>"
}
],
"secondaryEmailAddress": "<string>",
"leadRoutingEmailAddress": "<string>",
"emailAddresses": {
"primary": "<string>",
"display": "<string>",
"alternate": "<string>",
"moxiSync": "<string>",
"zillow": "<string>",
"leadRouting": "<string>"
},
"emailAliases": [
"<string>"
],
"mainPhoneNumber": "<string>",
"mobilePhoneNumber": "<string>",
"altPhoneNumber": "<string>",
"faxPhoneNumber": "<string>",
"mlsAgentId": "<string>",
"license": "<string>",
"licenseState": "<string>",
"mlsName": "<string>",
"mlsAbbreviation": "<string>",
"availableMls": [
{
"name": "<string>",
"displayName": "<string>",
"mlsAbbreviation": "<string>",
"agentId": "<string>"
}
],
"licenseStartDate": "<string>",
"licenseRenewalDate": "<string>",
"title": "<string>",
"designations": "<string>",
"bio": "<string>",
"languages": [
"<string>"
],
"serviceAreaZipCodes": [
"<string>"
],
"areasOfService": "<string>",
"profileImageUrl": "<string>",
"profileThumbUrl": "<string>",
"profileImageUrls": {},
"social": {},
"homePage": "<string>",
"websiteBaseUrl": "<string>",
"viewLevel": "<string>",
"role": "<string>",
"hasProductAccess": true,
"productAccess": {},
"profileVisibleOnline": true,
"includeInApi": true,
"tags": [
"<string>"
],
"directoryCategory": "<string>",
"emergencyContactName": "<string>",
"emergencyContactPhone": "<string>",
"dietaryRestrictions": "<string>",
"childrenAndPets": "<string>",
"birthday": "<string>",
"namePronunciation": "<string>",
"hireDate": "<string>",
"importantDates": [
{
"label": "<string>",
"date": "<string>"
}
],
"priorBrokerage": "<string>",
"agentSubscriptions": [
"<string>"
],
"internalNotes": "<string>",
"officeWoboOptOut": true,
"notificationPreferences": {
"newLeads": true,
"showingRequests": true
},
"reactivationHistory": [
{
"reactivatedAt": 123,
"deactivatedAt": 123,
"reactivatedBy": "<string>"
}
]
}
'import requests
url = "https://api.windermere.com/v2/api/agents"
payload = {
"firstName": "<string>",
"lastName": "<string>",
"primaryOfficeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"primaryEmailAddress": "<string>",
"permissionLevel": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"displayName": "<string>",
"signInUpn": "jsmith@example.com",
"agentUuid": "<string>",
"sourceAgentId": "<string>",
"externalPartnerIds": [
{
"partnerName": "<string>",
"partnerId": "<string>"
}
],
"secondaryEmailAddress": "<string>",
"leadRoutingEmailAddress": "<string>",
"emailAddresses": {
"primary": "<string>",
"display": "<string>",
"alternate": "<string>",
"moxiSync": "<string>",
"zillow": "<string>",
"leadRouting": "<string>"
},
"emailAliases": ["<string>"],
"mainPhoneNumber": "<string>",
"mobilePhoneNumber": "<string>",
"altPhoneNumber": "<string>",
"faxPhoneNumber": "<string>",
"mlsAgentId": "<string>",
"license": "<string>",
"licenseState": "<string>",
"mlsName": "<string>",
"mlsAbbreviation": "<string>",
"availableMls": [
{
"name": "<string>",
"displayName": "<string>",
"mlsAbbreviation": "<string>",
"agentId": "<string>"
}
],
"licenseStartDate": "<string>",
"licenseRenewalDate": "<string>",
"title": "<string>",
"designations": "<string>",
"bio": "<string>",
"languages": ["<string>"],
"serviceAreaZipCodes": ["<string>"],
"areasOfService": "<string>",
"profileImageUrl": "<string>",
"profileThumbUrl": "<string>",
"profileImageUrls": {},
"social": {},
"homePage": "<string>",
"websiteBaseUrl": "<string>",
"viewLevel": "<string>",
"role": "<string>",
"hasProductAccess": True,
"productAccess": {},
"profileVisibleOnline": True,
"includeInApi": True,
"tags": ["<string>"],
"directoryCategory": "<string>",
"emergencyContactName": "<string>",
"emergencyContactPhone": "<string>",
"dietaryRestrictions": "<string>",
"childrenAndPets": "<string>",
"birthday": "<string>",
"namePronunciation": "<string>",
"hireDate": "<string>",
"importantDates": [
{
"label": "<string>",
"date": "<string>"
}
],
"priorBrokerage": "<string>",
"agentSubscriptions": ["<string>"],
"internalNotes": "<string>",
"officeWoboOptOut": True,
"notificationPreferences": {
"newLeads": True,
"showingRequests": True
},
"reactivationHistory": [
{
"reactivatedAt": 123,
"deactivatedAt": 123,
"reactivatedBy": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
firstName: '<string>',
lastName: '<string>',
primaryOfficeId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
primaryEmailAddress: '<string>',
permissionLevel: '<string>',
id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
displayName: '<string>',
signInUpn: 'jsmith@example.com',
agentUuid: '<string>',
sourceAgentId: '<string>',
externalPartnerIds: [{partnerName: '<string>', partnerId: '<string>'}],
secondaryEmailAddress: '<string>',
leadRoutingEmailAddress: '<string>',
emailAddresses: {
primary: '<string>',
display: '<string>',
alternate: '<string>',
moxiSync: '<string>',
zillow: '<string>',
leadRouting: '<string>'
},
emailAliases: ['<string>'],
mainPhoneNumber: '<string>',
mobilePhoneNumber: '<string>',
altPhoneNumber: '<string>',
faxPhoneNumber: '<string>',
mlsAgentId: '<string>',
license: '<string>',
licenseState: '<string>',
mlsName: '<string>',
mlsAbbreviation: '<string>',
availableMls: [
{
name: '<string>',
displayName: '<string>',
mlsAbbreviation: '<string>',
agentId: '<string>'
}
],
licenseStartDate: '<string>',
licenseRenewalDate: '<string>',
title: '<string>',
designations: '<string>',
bio: '<string>',
languages: ['<string>'],
serviceAreaZipCodes: ['<string>'],
areasOfService: '<string>',
profileImageUrl: '<string>',
profileThumbUrl: '<string>',
profileImageUrls: {},
social: {},
homePage: '<string>',
websiteBaseUrl: '<string>',
viewLevel: '<string>',
role: '<string>',
hasProductAccess: true,
productAccess: {},
profileVisibleOnline: true,
includeInApi: true,
tags: ['<string>'],
directoryCategory: '<string>',
emergencyContactName: '<string>',
emergencyContactPhone: '<string>',
dietaryRestrictions: '<string>',
childrenAndPets: '<string>',
birthday: '<string>',
namePronunciation: '<string>',
hireDate: '<string>',
importantDates: [{label: '<string>', date: '<string>'}],
priorBrokerage: '<string>',
agentSubscriptions: ['<string>'],
internalNotes: '<string>',
officeWoboOptOut: true,
notificationPreferences: {newLeads: true, showingRequests: true},
reactivationHistory: [{reactivatedAt: 123, deactivatedAt: 123, reactivatedBy: '<string>'}]
})
};
fetch('https://api.windermere.com/v2/api/agents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.windermere.com/v2/api/agents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'firstName' => '<string>',
'lastName' => '<string>',
'primaryOfficeId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'primaryEmailAddress' => '<string>',
'permissionLevel' => '<string>',
'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'displayName' => '<string>',
'signInUpn' => 'jsmith@example.com',
'agentUuid' => '<string>',
'sourceAgentId' => '<string>',
'externalPartnerIds' => [
[
'partnerName' => '<string>',
'partnerId' => '<string>'
]
],
'secondaryEmailAddress' => '<string>',
'leadRoutingEmailAddress' => '<string>',
'emailAddresses' => [
'primary' => '<string>',
'display' => '<string>',
'alternate' => '<string>',
'moxiSync' => '<string>',
'zillow' => '<string>',
'leadRouting' => '<string>'
],
'emailAliases' => [
'<string>'
],
'mainPhoneNumber' => '<string>',
'mobilePhoneNumber' => '<string>',
'altPhoneNumber' => '<string>',
'faxPhoneNumber' => '<string>',
'mlsAgentId' => '<string>',
'license' => '<string>',
'licenseState' => '<string>',
'mlsName' => '<string>',
'mlsAbbreviation' => '<string>',
'availableMls' => [
[
'name' => '<string>',
'displayName' => '<string>',
'mlsAbbreviation' => '<string>',
'agentId' => '<string>'
]
],
'licenseStartDate' => '<string>',
'licenseRenewalDate' => '<string>',
'title' => '<string>',
'designations' => '<string>',
'bio' => '<string>',
'languages' => [
'<string>'
],
'serviceAreaZipCodes' => [
'<string>'
],
'areasOfService' => '<string>',
'profileImageUrl' => '<string>',
'profileThumbUrl' => '<string>',
'profileImageUrls' => [
],
'social' => [
],
'homePage' => '<string>',
'websiteBaseUrl' => '<string>',
'viewLevel' => '<string>',
'role' => '<string>',
'hasProductAccess' => true,
'productAccess' => [
],
'profileVisibleOnline' => true,
'includeInApi' => true,
'tags' => [
'<string>'
],
'directoryCategory' => '<string>',
'emergencyContactName' => '<string>',
'emergencyContactPhone' => '<string>',
'dietaryRestrictions' => '<string>',
'childrenAndPets' => '<string>',
'birthday' => '<string>',
'namePronunciation' => '<string>',
'hireDate' => '<string>',
'importantDates' => [
[
'label' => '<string>',
'date' => '<string>'
]
],
'priorBrokerage' => '<string>',
'agentSubscriptions' => [
'<string>'
],
'internalNotes' => '<string>',
'officeWoboOptOut' => true,
'notificationPreferences' => [
'newLeads' => true,
'showingRequests' => true
],
'reactivationHistory' => [
[
'reactivatedAt' => 123,
'deactivatedAt' => 123,
'reactivatedBy' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.windermere.com/v2/api/agents"
payload := strings.NewReader("{\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"primaryOfficeId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"primaryEmailAddress\": \"<string>\",\n \"permissionLevel\": \"<string>\",\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"displayName\": \"<string>\",\n \"signInUpn\": \"jsmith@example.com\",\n \"agentUuid\": \"<string>\",\n \"sourceAgentId\": \"<string>\",\n \"externalPartnerIds\": [\n {\n \"partnerName\": \"<string>\",\n \"partnerId\": \"<string>\"\n }\n ],\n \"secondaryEmailAddress\": \"<string>\",\n \"leadRoutingEmailAddress\": \"<string>\",\n \"emailAddresses\": {\n \"primary\": \"<string>\",\n \"display\": \"<string>\",\n \"alternate\": \"<string>\",\n \"moxiSync\": \"<string>\",\n \"zillow\": \"<string>\",\n \"leadRouting\": \"<string>\"\n },\n \"emailAliases\": [\n \"<string>\"\n ],\n \"mainPhoneNumber\": \"<string>\",\n \"mobilePhoneNumber\": \"<string>\",\n \"altPhoneNumber\": \"<string>\",\n \"faxPhoneNumber\": \"<string>\",\n \"mlsAgentId\": \"<string>\",\n \"license\": \"<string>\",\n \"licenseState\": \"<string>\",\n \"mlsName\": \"<string>\",\n \"mlsAbbreviation\": \"<string>\",\n \"availableMls\": [\n {\n \"name\": \"<string>\",\n \"displayName\": \"<string>\",\n \"mlsAbbreviation\": \"<string>\",\n \"agentId\": \"<string>\"\n }\n ],\n \"licenseStartDate\": \"<string>\",\n \"licenseRenewalDate\": \"<string>\",\n \"title\": \"<string>\",\n \"designations\": \"<string>\",\n \"bio\": \"<string>\",\n \"languages\": [\n \"<string>\"\n ],\n \"serviceAreaZipCodes\": [\n \"<string>\"\n ],\n \"areasOfService\": \"<string>\",\n \"profileImageUrl\": \"<string>\",\n \"profileThumbUrl\": \"<string>\",\n \"profileImageUrls\": {},\n \"social\": {},\n \"homePage\": \"<string>\",\n \"websiteBaseUrl\": \"<string>\",\n \"viewLevel\": \"<string>\",\n \"role\": \"<string>\",\n \"hasProductAccess\": true,\n \"productAccess\": {},\n \"profileVisibleOnline\": true,\n \"includeInApi\": true,\n \"tags\": [\n \"<string>\"\n ],\n \"directoryCategory\": \"<string>\",\n \"emergencyContactName\": \"<string>\",\n \"emergencyContactPhone\": \"<string>\",\n \"dietaryRestrictions\": \"<string>\",\n \"childrenAndPets\": \"<string>\",\n \"birthday\": \"<string>\",\n \"namePronunciation\": \"<string>\",\n \"hireDate\": \"<string>\",\n \"importantDates\": [\n {\n \"label\": \"<string>\",\n \"date\": \"<string>\"\n }\n ],\n \"priorBrokerage\": \"<string>\",\n \"agentSubscriptions\": [\n \"<string>\"\n ],\n \"internalNotes\": \"<string>\",\n \"officeWoboOptOut\": true,\n \"notificationPreferences\": {\n \"newLeads\": true,\n \"showingRequests\": true\n },\n \"reactivationHistory\": [\n {\n \"reactivatedAt\": 123,\n \"deactivatedAt\": 123,\n \"reactivatedBy\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.windermere.com/v2/api/agents")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"primaryOfficeId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"primaryEmailAddress\": \"<string>\",\n \"permissionLevel\": \"<string>\",\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"displayName\": \"<string>\",\n \"signInUpn\": \"jsmith@example.com\",\n \"agentUuid\": \"<string>\",\n \"sourceAgentId\": \"<string>\",\n \"externalPartnerIds\": [\n {\n \"partnerName\": \"<string>\",\n \"partnerId\": \"<string>\"\n }\n ],\n \"secondaryEmailAddress\": \"<string>\",\n \"leadRoutingEmailAddress\": \"<string>\",\n \"emailAddresses\": {\n \"primary\": \"<string>\",\n \"display\": \"<string>\",\n \"alternate\": \"<string>\",\n \"moxiSync\": \"<string>\",\n \"zillow\": \"<string>\",\n \"leadRouting\": \"<string>\"\n },\n \"emailAliases\": [\n \"<string>\"\n ],\n \"mainPhoneNumber\": \"<string>\",\n \"mobilePhoneNumber\": \"<string>\",\n \"altPhoneNumber\": \"<string>\",\n \"faxPhoneNumber\": \"<string>\",\n \"mlsAgentId\": \"<string>\",\n \"license\": \"<string>\",\n \"licenseState\": \"<string>\",\n \"mlsName\": \"<string>\",\n \"mlsAbbreviation\": \"<string>\",\n \"availableMls\": [\n {\n \"name\": \"<string>\",\n \"displayName\": \"<string>\",\n \"mlsAbbreviation\": \"<string>\",\n \"agentId\": \"<string>\"\n }\n ],\n \"licenseStartDate\": \"<string>\",\n \"licenseRenewalDate\": \"<string>\",\n \"title\": \"<string>\",\n \"designations\": \"<string>\",\n \"bio\": \"<string>\",\n \"languages\": [\n \"<string>\"\n ],\n \"serviceAreaZipCodes\": [\n \"<string>\"\n ],\n \"areasOfService\": \"<string>\",\n \"profileImageUrl\": \"<string>\",\n \"profileThumbUrl\": \"<string>\",\n \"profileImageUrls\": {},\n \"social\": {},\n \"homePage\": \"<string>\",\n \"websiteBaseUrl\": \"<string>\",\n \"viewLevel\": \"<string>\",\n \"role\": \"<string>\",\n \"hasProductAccess\": true,\n \"productAccess\": {},\n \"profileVisibleOnline\": true,\n \"includeInApi\": true,\n \"tags\": [\n \"<string>\"\n ],\n \"directoryCategory\": \"<string>\",\n \"emergencyContactName\": \"<string>\",\n \"emergencyContactPhone\": \"<string>\",\n \"dietaryRestrictions\": \"<string>\",\n \"childrenAndPets\": \"<string>\",\n \"birthday\": \"<string>\",\n \"namePronunciation\": \"<string>\",\n \"hireDate\": \"<string>\",\n \"importantDates\": [\n {\n \"label\": \"<string>\",\n \"date\": \"<string>\"\n }\n ],\n \"priorBrokerage\": \"<string>\",\n \"agentSubscriptions\": [\n \"<string>\"\n ],\n \"internalNotes\": \"<string>\",\n \"officeWoboOptOut\": true,\n \"notificationPreferences\": {\n \"newLeads\": true,\n \"showingRequests\": true\n },\n \"reactivationHistory\": [\n {\n \"reactivatedAt\": 123,\n \"deactivatedAt\": 123,\n \"reactivatedBy\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.windermere.com/v2/api/agents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"primaryOfficeId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"primaryEmailAddress\": \"<string>\",\n \"permissionLevel\": \"<string>\",\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"displayName\": \"<string>\",\n \"signInUpn\": \"jsmith@example.com\",\n \"agentUuid\": \"<string>\",\n \"sourceAgentId\": \"<string>\",\n \"externalPartnerIds\": [\n {\n \"partnerName\": \"<string>\",\n \"partnerId\": \"<string>\"\n }\n ],\n \"secondaryEmailAddress\": \"<string>\",\n \"leadRoutingEmailAddress\": \"<string>\",\n \"emailAddresses\": {\n \"primary\": \"<string>\",\n \"display\": \"<string>\",\n \"alternate\": \"<string>\",\n \"moxiSync\": \"<string>\",\n \"zillow\": \"<string>\",\n \"leadRouting\": \"<string>\"\n },\n \"emailAliases\": [\n \"<string>\"\n ],\n \"mainPhoneNumber\": \"<string>\",\n \"mobilePhoneNumber\": \"<string>\",\n \"altPhoneNumber\": \"<string>\",\n \"faxPhoneNumber\": \"<string>\",\n \"mlsAgentId\": \"<string>\",\n \"license\": \"<string>\",\n \"licenseState\": \"<string>\",\n \"mlsName\": \"<string>\",\n \"mlsAbbreviation\": \"<string>\",\n \"availableMls\": [\n {\n \"name\": \"<string>\",\n \"displayName\": \"<string>\",\n \"mlsAbbreviation\": \"<string>\",\n \"agentId\": \"<string>\"\n }\n ],\n \"licenseStartDate\": \"<string>\",\n \"licenseRenewalDate\": \"<string>\",\n \"title\": \"<string>\",\n \"designations\": \"<string>\",\n \"bio\": \"<string>\",\n \"languages\": [\n \"<string>\"\n ],\n \"serviceAreaZipCodes\": [\n \"<string>\"\n ],\n \"areasOfService\": \"<string>\",\n \"profileImageUrl\": \"<string>\",\n \"profileThumbUrl\": \"<string>\",\n \"profileImageUrls\": {},\n \"social\": {},\n \"homePage\": \"<string>\",\n \"websiteBaseUrl\": \"<string>\",\n \"viewLevel\": \"<string>\",\n \"role\": \"<string>\",\n \"hasProductAccess\": true,\n \"productAccess\": {},\n \"profileVisibleOnline\": true,\n \"includeInApi\": true,\n \"tags\": [\n \"<string>\"\n ],\n \"directoryCategory\": \"<string>\",\n \"emergencyContactName\": \"<string>\",\n \"emergencyContactPhone\": \"<string>\",\n \"dietaryRestrictions\": \"<string>\",\n \"childrenAndPets\": \"<string>\",\n \"birthday\": \"<string>\",\n \"namePronunciation\": \"<string>\",\n \"hireDate\": \"<string>\",\n \"importantDates\": [\n {\n \"label\": \"<string>\",\n \"date\": \"<string>\"\n }\n ],\n \"priorBrokerage\": \"<string>\",\n \"agentSubscriptions\": [\n \"<string>\"\n ],\n \"internalNotes\": \"<string>\",\n \"officeWoboOptOut\": true,\n \"notificationPreferences\": {\n \"newLeads\": true,\n \"showingRequests\": true\n },\n \"reactivationHistory\": [\n {\n \"reactivatedAt\": 123,\n \"deactivatedAt\": 123,\n \"reactivatedBy\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentUuid": "<string>",
"sourceAgentId": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"displayName": "<string>",
"externalPartnerIds": [
{
"partnerName": "<string>",
"partnerId": "<string>"
}
],
"primaryOfficeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"primaryEmailAddress": "<string>",
"signInUpn": "<string>",
"secondaryEmailAddress": "<string>",
"leadRoutingEmailAddress": "<string>",
"emailAddresses": {
"primary": "<string>",
"display": "<string>",
"alternate": "<string>",
"moxiSync": "<string>",
"zillow": "<string>",
"leadRouting": "<string>"
},
"emailAliases": [
"<string>"
],
"mainPhoneNumber": "<string>",
"mobilePhoneNumber": "<string>",
"altPhoneNumber": "<string>",
"faxPhoneNumber": "<string>",
"mlsAgentId": "<string>",
"license": "<string>",
"licenseState": "<string>",
"mlsName": "<string>",
"mlsAbbreviation": "<string>",
"availableMls": [
{
"name": "<string>",
"displayName": "<string>",
"mlsAbbreviation": "<string>",
"agentId": "<string>"
}
],
"licenseStartDate": "<string>",
"licenseRenewalDate": "<string>",
"title": "<string>",
"designations": "<string>",
"bio": "<string>",
"languages": [
"<string>"
],
"serviceAreaZipCodes": [
"<string>"
],
"areasOfService": "<string>",
"profileImageUrl": "<string>",
"profileThumbUrl": "<string>",
"profileImageUrls": {},
"social": {},
"homePage": "<string>",
"websiteBaseUrl": "<string>",
"permissionLevel": "<string>",
"viewLevel": "<string>",
"role": "<string>",
"hasProductAccess": true,
"productAccess": {},
"profileVisibleOnline": true,
"includeInApi": true,
"tags": [
"<string>"
],
"directoryCategory": "<string>",
"region": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"deactivatedAt": "2023-11-07T05:31:56Z",
"tosAcceptedAt": "2023-11-07T05:31:56Z",
"officeWoboOptOut": true,
"officeWoboOptedOutAt": "2023-11-07T05:31:56Z",
"lastUpdatedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"reactivationHistory": [
{
"reactivatedAt": 123,
"deactivatedAt": 123,
"reactivatedBy": "<string>"
}
],
"companyId": "<string>",
"facebookAccountId": "<string>",
"alternateInternalOfficeId": "<string>",
"primaryOffice": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"commonName": "<string>"
},
"secondaryOffices": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"commonName": "<string>",
"displayInDirectory": true
}
],
"brokerage": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"changeLogSummary": [
{
"changedAt": "<string>",
"actorId": "<string>",
"fieldPath": "<string>",
"oldValue": "<unknown>",
"newValue": "<unknown>"
}
],
"emergencyContactName": "<string>",
"emergencyContactPhone": "<string>",
"dietaryRestrictions": "<string>",
"childrenAndPets": "<string>",
"birthday": "<string>",
"namePronunciation": "<string>",
"hireDate": "<string>",
"importantDates": [
{
"label": "<string>",
"date": "<string>"
}
],
"archetype": {
"confidence": "HIGH",
"managerFit": "FITS",
"assessedAt": "2023-11-07T05:31:56Z",
"name": null,
"businessApproach": null,
"goalOrientation": null,
"techReadiness": null,
"assessedByAgentId": null,
"source": null,
"recordId": null,
"questionnaireVersion": null,
"scoringVersion": null
},
"priorBrokerage": "<string>",
"agentSubscriptions": [
"<string>"
],
"internalNotes": "<string>",
"notificationPreferences": {
"newLeads": true,
"showingRequests": true,
"channel": "email"
},
"smsConsent": {
"windermere": {
"granted": true,
"at": "2023-11-07T05:31:56Z",
"textVersion": "<string>"
},
"brokerage": {
"granted": true,
"at": "2023-11-07T05:31:56Z",
"textVersion": "<string>"
}
},
"teams": [
{
"teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"role": "<string>",
"memberCount": 1
}
],
"delegateAccess": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"status": "active",
"via": {
"grant": {
"grantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
}
],
"officeWoboAccessors": [
{
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "<string>",
"permissionLevel": "<string>",
"bucket": "staff",
"via": "primary",
"office": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
}
]
}Authorizations
Body
application/json
Optional primary key to create the agent with — by convention the person's Microsoft Entra object id (OID), so agents.id matches their sign-in identity. Staff/internal apps only (403 AGENT_ID_NOT_ALLOWED for partners); 409 AGENT_ID_EXISTS when taken. Omit to get a server-generated UUID. Create-only (not accepted by PATCH).
The agent opts their own account out of Office WOBO: office-derived delegate access (via.office) never reaches them while true. Person-to-person grants are unaffected. officeWoboOptedOutAt is server-stamped when it becomes true and cleared when false. Internal (not visible to partners).
Response
201 - application/json
Default Response

