Download OpenAPI specification:Download
Leads api which can be used for external customers or external consumers to have their leads
Access to the GSL Leads API is currently limited. If you are interested in using this API, apply for access on that email address: support-laas@groupeseloger.com The GSL Leads API enables real estate agencies to find their leads in real-time. Real-time means that leads is receiving as soon as a user asked to be contacted by the real estate agency.
All the API endpoints use the OAuth 2.0 protocol. As soon as you get your personal client credentials from the customer support team, you will be allowed to generate an access token that will enable you to access all the features related to your usage plan.
All the API endpoints use the OAuth 2.0 protocol. As soon as you get your personal client credentials from the customer support team, you will be allowed to generate an access token that will enable you to access all the features related to your usage plan.
Security Scheme Type | HTTP |
---|---|
HTTP Authorization Scheme | bearer |
Bearer format | "JWT" |
This section lists the OAuth 2.0 scopes that you might need to request to access this API, depending on the level of access you need. Many scopes overlap, so it's best to use a scope that is as restrictive as possible. The access token issued will only contain the requested scopes.
Scopes | Description |
---|---|
laas:leads:get | View your data across this API |
note : scopes are case sensitive
The GSL Leads API is a RESTful API. The API allows you to interact with resources using verbs: POST, PUT, DELETE or GET.
The GS Leads API is constantly being worked on to add features, improvements and bugfixes.
This means that you should expect changes to be introduced and documented. Whenever we make a significant change to an endpoint, we will increase the version number used in the path of the resource being requested.
The current API version is 'v2' so all the API request must be performed with this version number in the endpoints.
Example:
POST /v2/leads
We consider the following cases as backward-compatible changes (minor releases):
The GSL Leads API follow's the error response format proposed in RFC 7807 also known as Problem Details for HTTP APIs. As with our normal API responses, your client must be prepared to gracefully handle additional members of the response. However, some error cases needs to be accompanied by a human readable documentation. Especially regarding any errors that might be encountered during the API format validation steps (400 Bad Request) in order to give sufficient information needed by API consumers to fix the parameters and/or the request body. This 400 Bad Request is detailed in the section below.
In addition to the information proposed in RFC 7807, we support "errors" and "errorSource" fields to convey the fine-grained details of the API format validation problems.
Field | Type | Description |
---|---|---|
errors | Array | This is an a array of objects composed by title and message attributes.The title object attribute indicates the field name of the request body causing the error.The message attribute describes the reason of the error. |
Example: [{"name": "EndDate", "reason": "Missing required parameter 'endDate'."}]
{
"errors": [
{
"title": "EndDate",
"message": "Missing required parameter 'endDate'."
}
]
}
The route accepts a list of search criteria alongside of pagination parameters. Pagination parameters as specified in [Pagination] Model. Search Criteria represents the filters which can be applied on the desired results.
Search Criteria request accepts the pagination parameters as well as search parameters
required | object (SearchCriteria) |
object (Pagination) |
{- "SearchCriteria": {
- "StartDate": 0,
- "EndDate": 0
}, - "Pagination": {
- "Limit": 100,
- "LastItemKey": "string",
- "Order": "asc"
}
}
{- "Data": {
- "Items": [
- {
- "leadMetaInfos": {
- "leadCategory": "CLASSIFIED",
- "hasRentalDocumentAttached": true,
- "classifiedID": 0,
- "leadId": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "partnerID": "string",
- "projectIntention": "BUYER",
- "portals": [
- "SELOGER"
], - "timeToLive": 0,
- "isCalled": true,
- "seekerID": "string"
}, - "contactRequest": {
- "fullName": "string",
- "email": "user@example.com",
- "phoneNumber": "string",
- "message": "string"
}, - "property": {
- "estateType": "HOUSE",
- "estateSubType": {
- "house": "SINGLE_FAMILY_HOUSE",
- "apartment": "LOFT",
- "plot": "COMMERCIAL",
- "office": "SINGLE_OFFICE",
- "trading": "STORE",
- "gastroHotel": "RESTAURANT",
- "storageProduction": "WAREHOUSE_HALL",
- "agricultureForestry": "GARDENING",
- "parking": "GARAGE",
- "senior": "ASSISTED_LIVING",
- "project": "PLANED"
}, - "distributionType": "RENT",
- "geo": {
- "postalCode": "string",
- "city": "string",
- "countryCode": "AD"
}, - "metaData": {
- "source": {
- "offererMarketingKey": "string",
- "offererEstateId": "string"
}
}, - "prices": {
- "currency": "EUR",
- "buy": {
- "price": {
- "amount": 0,
- "priceInformation": "PRICE_ON_DEMAND"
}
}, - "rent": {
- "totalRent": {
- "amount": 0,
- "priceInformation": "PRICE_ON_DEMAND"
}
}
}, - "structure": {
- "rooms": {
- "numberOfRooms": 0
}
}, - "conditions": {
- "ageState": "NEW",
- "buildState": "PROJECTED"
}, - "management": {
- "marketStatus": "SOLD",
- "isForHolidayRental": true
}, - "spaces": {
- "overallSpace": 0,
- "spaceMeasureUnit": "SQUARE_METER"
}
}
}
], - "LastItemKey": "string"
}, - "Count": 0
}
The route accepts a lead id as a part of path and returns the lead details.
leadId required | string The Lead unique identifier. |
{- "leadMetaInfos": {
- "leadCategory": "CLASSIFIED",
- "leadId": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "partnerID": "string",
- "projectIntention": "BUYER",
- "portals": [
- "SELOGER"
], - "timeToLive": 0,
- "isCalled": true,
- "seekerID": "string"
}, - "contactRequest": {
- "fullName": "string",
- "email": "user@example.com",
- "phoneNumber": "string",
- "message": "string"
}, - "estimation": {
- "estimationProject": {
- "estimatedTimetoMarket": "SELLING",
- "contactSituation": "ownerSeller",
- "distributionType": "BUY"
}, - "userLocation": {
- "userCity": "string",
- "userZipCode": "string"
}, - "actorEstimatedPrice": 0,
- "isFree": true,
- "estimationProperty": {
- "additionalMessage": "string",
- "estateType": "HOUSE",
- "geo": {
- "postalCode": "string",
- "city": "string",
- "countryCode": "AD"
}, - "isTerraceHouse": true,
- "avivEstimatedPrice": 0,
- "spaces": {
- "spaceMeasureUnit": "SQUARE_METER",
- "overallSpace": 0,
- "residential": {
- "balconySpace": 0,
- "cellarSpace": 0,
- "livingSpace": 0,
- "outbuildingSpace": 0,
- "plotSpace": 0,
- "terraceSpace": 0
}
}, - "structure": {
- "rooms": {
- "numberOfBedRooms": 0,
- "numberOfRooms": 0,
- "numberOfBalconies": 0,
- "numberOfTerraces": 0
}, - "building": {
- "calm": "NOT_APPLICABLE",
- "cellar": "NOT_APPLICABLE",
- "elevator": {
- "person": "NOT_APPLICABLE"
}, - "floorNumber": 0,
- "numberOfFloors": 0,
- "withView": "SEA_VIEW"
}, - "parkingLots": {
- "garage": 0,
- "parkingArea": 0
}
}, - "conditions": {
- "yearOfConstruction": "string"
}, - "features": {
- "propertyOrientation": "NORTH",
- "residential": {
- "outbuilding": "NOT_APPLICABLE",
- "patio": "NOT_APPLICABLE",
- "swimmingPool": "NOT_APPLICABLE"
}
}, - "management": {
- "operatingCostsPerYear": 0,
- "leaseBack": "NOT_APPLICABLE"
}, - "business": {
- "businessType": "FOOD",
- "businessActivity": "string",
- "isBusinessSold": true
}
}
}
}
The route accepts a list of search criteria alongside of pagination parameters. Pagination parameters as specified in [Pagination] Model. Search Criteria represents the filters which can be applied on the desired results.
Search Criteria request accepts the pagination parameters as well as search parameters
required | object (SearchCriteria) |
object (Pagination) |
{- "SearchCriteria": {
- "StartDate": 0,
- "EndDate": 0
}, - "Pagination": {
- "Limit": 100,
- "LastItemKey": "string",
- "Order": "asc"
}
}
{- "Data": {
- "Items": [
- {
- "leadMetaInfos": {
- "leadCategory": "CLASSIFIED",
- "hasRentalDocumentAttached": true,
- "classifiedID": 0,
- "leadId": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "partnerID": "string",
- "projectIntention": "BUYER",
- "portals": [
- "SELOGER"
], - "timeToLive": 0,
- "isCalled": true,
- "seekerID": "string"
}, - "contactRequest": {
- "fullName": "string",
- "email": "user@example.com",
- "phoneNumber": "string",
- "message": "string"
}, - "property": {
- "estateType": "HOUSE",
- "estateSubType": {
- "house": "SINGLE_FAMILY_HOUSE",
- "apartment": "LOFT",
- "plot": "COMMERCIAL",
- "office": "SINGLE_OFFICE",
- "trading": "STORE",
- "gastroHotel": "RESTAURANT",
- "storageProduction": "WAREHOUSE_HALL",
- "agricultureForestry": "GARDENING",
- "parking": "GARAGE",
- "senior": "ASSISTED_LIVING",
- "project": "PLANED"
}, - "distributionType": "RENT",
- "geo": {
- "postalCode": "string",
- "city": "string",
- "countryCode": "AD"
}, - "metaData": {
- "source": {
- "offererMarketingKey": "string",
- "offererEstateId": "string"
}
}, - "prices": {
- "currency": "EUR",
- "buy": {
- "price": {
- "amount": 0,
- "priceInformation": "PRICE_ON_DEMAND"
}
}, - "rent": {
- "totalRent": {
- "amount": 0,
- "priceInformation": "PRICE_ON_DEMAND"
}
}
}, - "structure": {
- "rooms": {
- "numberOfRooms": 0
}
}, - "conditions": {
- "ageState": "NEW",
- "buildState": "PROJECTED"
}, - "management": {
- "marketStatus": "SOLD",
- "isForHolidayRental": true
}, - "spaces": {
- "overallSpace": 0,
- "spaceMeasureUnit": "SQUARE_METER"
}
}
}
], - "LastItemKey": "string"
}, - "Count": 0
}
The route accepts the classified Id as path parameter alongside pagination parameters as request body. Pagination parameters as specified in [Pagination] Model.
classifiedId required | number The classified unique identifier. |
Search Criteria request accepts the pagination parameters as well as search parameters
object (Pagination) |
{- "Pagination": {
- "Limit": 100,
- "LastItemKey": "string",
- "Order": "asc"
}
}
{- "Data": {
- "Items": [
- {
- "leadMetaInfos": {
- "leadCategory": "CLASSIFIED",
- "hasRentalDocumentAttached": true,
- "classifiedID": 0,
- "leadId": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "partnerID": "string",
- "projectIntention": "BUYER",
- "portals": [
- "SELOGER"
], - "timeToLive": 0,
- "isCalled": true,
- "seekerID": "string"
}, - "contactRequest": {
- "fullName": "string",
- "email": "user@example.com",
- "phoneNumber": "string",
- "message": "string"
}, - "property": {
- "estateType": "HOUSE",
- "estateSubType": {
- "house": "SINGLE_FAMILY_HOUSE",
- "apartment": "LOFT",
- "plot": "COMMERCIAL",
- "office": "SINGLE_OFFICE",
- "trading": "STORE",
- "gastroHotel": "RESTAURANT",
- "storageProduction": "WAREHOUSE_HALL",
- "agricultureForestry": "GARDENING",
- "parking": "GARAGE",
- "senior": "ASSISTED_LIVING",
- "project": "PLANED"
}, - "distributionType": "RENT",
- "geo": {
- "postalCode": "string",
- "city": "string",
- "countryCode": "AD"
}, - "metaData": {
- "source": {
- "offererMarketingKey": "string",
- "offererEstateId": "string"
}
}, - "prices": {
- "currency": "EUR",
- "buy": {
- "price": {
- "amount": 0,
- "priceInformation": "PRICE_ON_DEMAND"
}
}, - "rent": {
- "totalRent": {
- "amount": 0,
- "priceInformation": "PRICE_ON_DEMAND"
}
}
}, - "structure": {
- "rooms": {
- "numberOfRooms": 0
}
}, - "conditions": {
- "ageState": "NEW",
- "buildState": "PROJECTED"
}, - "management": {
- "marketStatus": "SOLD",
- "isForHolidayRental": true
}, - "spaces": {
- "overallSpace": 0,
- "spaceMeasureUnit": "SQUARE_METER"
}
}
}
], - "LastItemKey": "string"
}, - "Count": 0
}
The route accepts a list of search criteria alongside of pagination parameters. Pagination parameters as specified in [Pagination] Model. Search Criteria represents the filters which can be applied on the desired results.
Search Criteria request accepts the pagination parameters as well as search parameters
required | object (SearchCriteria) |
object (Pagination) |
{- "SearchCriteria": {
- "StartDate": 0,
- "EndDate": 0
}, - "Pagination": {
- "Limit": 100,
- "LastItemKey": "string",
- "Order": "asc"
}
}
{- "Data": {
- "Items": [
- {
- "leadMetaInfos": {
- "leadCategory": "CLASSIFIED",
- "leadId": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "partnerID": "string",
- "projectIntention": "BUYER",
- "portals": [
- "SELOGER"
], - "timeToLive": 0,
- "isCalled": true,
- "seekerID": "string"
}, - "contactRequest": {
- "fullName": "string",
- "email": "user@example.com",
- "phoneNumber": "string",
- "message": "string"
}
}
], - "LastItemKey": "string"
}, - "Count": 0
}
The route accepts a list of search criteria alongside of pagination parameters. Pagination parameters as specified in [Pagination] Model. Search Criteria represents the filters which can be applied on the desired results.
Search Criteria request accepts the pagination parameters as well as search parameters
required | object (SearchCriteria) |
object (Pagination) |
{- "SearchCriteria": {
- "StartDate": 0,
- "EndDate": 0
}, - "Pagination": {
- "Limit": 100,
- "LastItemKey": "string",
- "Order": "asc"
}
}
{- "Data": {
- "Items": [
- {
- "leadMetaInfos": {
- "leadCategory": "CLASSIFIED",
- "leadId": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "partnerID": "string",
- "projectIntention": "BUYER",
- "portals": [
- "SELOGER"
], - "timeToLive": 0,
- "isCalled": true,
- "seekerID": "string"
}, - "contactRequest": {
- "fullName": "string",
- "email": "user@example.com",
- "phoneNumber": "string",
- "message": "string"
}, - "estimation": {
- "estimationProject": {
- "estimatedTimetoMarket": "SELLING",
- "contactSituation": "ownerSeller",
- "distributionType": "BUY"
}, - "userLocation": {
- "userCity": "string",
- "userZipCode": "string"
}, - "actorEstimatedPrice": 0,
- "isFree": true,
- "estimationProperty": {
- "additionalMessage": "string",
- "estateType": "HOUSE",
- "geo": {
- "postalCode": "string",
- "city": "string",
- "countryCode": "AD"
}, - "isTerraceHouse": true,
- "avivEstimatedPrice": 0,
- "spaces": {
- "spaceMeasureUnit": "SQUARE_METER",
- "overallSpace": 0,
- "residential": {
- "balconySpace": 0,
- "cellarSpace": 0,
- "livingSpace": 0,
- "outbuildingSpace": 0,
- "plotSpace": 0,
- "terraceSpace": 0
}
}, - "structure": {
- "rooms": {
- "numberOfBedRooms": 0,
- "numberOfRooms": 0,
- "numberOfBalconies": 0,
- "numberOfTerraces": 0
}, - "building": {
- "calm": "NOT_APPLICABLE",
- "cellar": "NOT_APPLICABLE",
- "elevator": {
- "person": "NOT_APPLICABLE"
}, - "floorNumber": 0,
- "numberOfFloors": 0,
- "withView": "SEA_VIEW"
}, - "parkingLots": {
- "garage": 0,
- "parkingArea": 0
}
}, - "conditions": {
- "yearOfConstruction": "string"
}, - "features": {
- "propertyOrientation": "NORTH",
- "residential": {
- "outbuilding": "NOT_APPLICABLE",
- "patio": "NOT_APPLICABLE",
- "swimmingPool": "NOT_APPLICABLE"
}
}, - "management": {
- "operatingCostsPerYear": 0,
- "leaseBack": "NOT_APPLICABLE"
}, - "business": {
- "businessType": "FOOD",
- "businessActivity": "string",
- "isBusinessSold": true
}
}
}
}
], - "LastItemKey": "string"
}, - "Count": 0
}
The route accepts a list of search criteria alongside of pagination parameters. Pagination parameters as specified in [Pagination] Model. Search Criteria represents the filters which can be applied on the desired results.
Search Criteria request accepts the pagination parameters as well as search parameters
required | object (SearchCriteria) |
object (Pagination) |
{- "SearchCriteria": {
- "StartDate": 0,
- "EndDate": 0
}, - "Pagination": {
- "Limit": 100,
- "LastItemKey": "string",
- "Order": "asc"
}
}
{- "Data": {
- "Items": [
- {
- "leadMetaInfos": {
- "leadCategory": "CLASSIFIED",
- "classifiedID": 0,
- "leadId": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "partnerID": "string",
- "projectIntention": "BUYER",
- "portals": [
- "SELOGER"
], - "timeToLive": 0,
- "isCalled": true,
- "seekerID": "string"
}, - "contactRequest": {
- "personContact": {
- "email": "string",
- "fullName": "string",
- "phoneNumber": "string",
- "salutation": "string",
- "adresse": {
- "postalCode": "string",
- "city": "string",
- "street": "string",
- "houseNumber": "string",
- "country": "string"
}
}, - "message": "string",
- "personnalStatus": {
- "employmentStatus": "string",
- "childrenAtHome": 0,
- "dateOfBirth": "string",
- "maritalStatus": "string",
- "houseHoldSize": "string"
}, - "borrowingCapacities": {
- "income": {
- "grossIncome": {
- "annualGrossIncome": 0,
- "monthlyGrossIncome": 0,
- "annualGrossHouseHoldIncome": 0,
- "monthlyGrossHouseHoldIncome": 0,
- "annualGrossCorporateIncome": 0
}, - "netIncome": {
- "annualNetIncome": 0,
- "monthlyNetIncome": 0,
- "annualNetHouseHoldIncome": 0,
- "monthlyNetHouseHoldIncome": 0,
- "annualNetCorporateIncome": 0
}, - "taxableIncome": {
- "annualTaxableIncome": 0,
- "monthlyTaxableIncome": 0,
- "annualTaxableHouseHoldIncome": 0,
- "monthlyTaxableHouseHoldIncome": 0,
- "annualTaxableCorporateIncome": 0
}, - "taxes": {
- "annualTax": 0,
- "monthlyTax": 0,
- "annualHouseHoldTax": 0,
- "monthlyHouseHoldTax": 0,
- "annualCorporateTax": 0
}
}, - "passiveIncome": {
- "annualpassiveIncome": 0,
- "monthlypassiveIncome": 0,
- "annualpassiveHouseHoldIncome": 0,
- "monthlypassiveHouseHoldIncome": 0,
- "annualpassiveCorporateIncome": 0,
- "monthlypassiveCorporateIncome": 0
}, - "savings": {
- "savingCapacity": 0
}
}
}, - "project": {
- "servicesNeeded": "Transportation",
- "commercial": {
- "usageType": {
- "leaseBack": "NOT_APPLICABLE"
}, - "business": {
- "isBusinessSold": true,
- "businessType": "All",
- "activity": "string",
- "numberOfStaff": "LESS_THAN_10",
- "societyName": "string",
- "relocationDate": "string",
- "commentOnProject": "string"
}
}, - "distributionType": "RENT",
- "investment": {
- "investmentReason": "TaxExemption",
- "investmentType": "Pinel"
}, - "build": {
- "plotStatus": "LOOKS_FOR_PLOT_ALSO"
}
}, - "property": {
- "estateType": [
- "HOUSE"
], - "structure": {
- "rooms": {
- "numberOfRooms": 0,
- "numberOfRoomsMin": 0,
- "numberOfRoomsMax": 0
}
}, - "distributionType": [
- "RENT"
], - "spaces": {
- "residential": {
- "livingSpace": 0
}, - "commercial": {
- "commercialSpace": 0
}, - "overalSpaces": 0,
- "spaceMin": 0,
- "spaceMax": 0,
- "spaceMeasureUnit": "SQUARE_METER"
}, - "additionnalMessage": "string",
- "geo": {
- "city": "string",
- "country": "string",
- "postalCodes": [
- "string"
], - "departments": [
- "string"
]
}, - "budget": {
- "amount": 0,
- "amountMin": 0,
- "amountMax": 0
}
}, - "classified": {
- "metaData": {
- "source": {
- "offererMarketingKey": "string",
- "offererEstateId": "string"
}
}
}
}
], - "LastItemKey": "string"
}, - "Count": 0
}