GSL Customer Leads Api (2.0.0)

Download OpenAPI specification:Download

Support Lead as a Service: support-laas@groupeseloger.com

Leads api which can be used for external customers or external consumers to have their leads

Introduction

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.

Authentication

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.

Authorization

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"

Available scopes

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

API overview

The GSL Leads API is a RESTful API. The API allows you to interact with resources using verbs: POST, PUT, DELETE or GET.

Naming convention

  • All the resources names are defined in plural. For instance: "GET /leads".
  • The supported format is JSON.
  • The fields are defined in camelCase.
  • The boolean fields start by a "is" or "has" prefix.

Specification

The GSL Leads API follows the OpenAPI specification.

Versioning strategy

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

Backward-compatible changes

We consider the following cases as backward-compatible changes (minor releases):

  • Adding new optional parameters
  • Adding new endpoints
  • Adding new fields to existing API responses
  • Changing the order of fields in existing API responses

Supported HTTP status codes

  • 2xx for successful operations
  • 3xx for redirections
  • 4xx for client errors
  • 5xx for server errors

Errors

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.

Validation Error

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'."}]

Example

{
  "errors": [
    {
      "title": "EndDate",
      "message": "Missing required parameter 'endDate'."
    }
  ]
}

[v2] - 2022-01-01

First version of the API supporting GSL Leads v2.0.0

Leads

Returns a list of leads based on search criteria and pagination information.

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.

Authorizations:
Request Body schema: application/json

Search Criteria request accepts the pagination parameters as well as search parameters

required
object (SearchCriteria)
object (Pagination)

Responses

Request samples

Content type
application/json
{
  • "SearchCriteria": {
    },
  • "Pagination": {
    }
}

Response samples

Content type
application/json
{
  • "Data": {
    },
  • "Count": 0
}

Returns details of the lead based on the provided lead id.

The route accepts a lead id as a part of path and returns the lead details.

Authorizations:
path Parameters
leadId
required
string

The Lead unique identifier.

Responses

Response samples

Content type
application/json
Example
{
  • "leadMetaInfos": {
    },
  • "contactRequest": {
    },
  • "estimation": {
    }
}

Classified

Returns the classified leads based on search criteria and pagination info.

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.

Authorizations:
Request Body schema: application/json

Search Criteria request accepts the pagination parameters as well as search parameters

required
object (SearchCriteria)
object (Pagination)

Responses

Request samples

Content type
application/json
{
  • "SearchCriteria": {
    },
  • "Pagination": {
    }
}

Response samples

Content type
application/json
{
  • "Data": {
    },
  • "Count": 0
}

Returns the classified leads for a provided classified id.

The route accepts the classified Id as path parameter alongside pagination parameters as request body. Pagination parameters as specified in [Pagination] Model.

Authorizations:
path Parameters
classifiedId
required
number

The classified unique identifier.

Request Body schema: application/json

Search Criteria request accepts the pagination parameters as well as search parameters

object (Pagination)

Responses

Request samples

Content type
application/json
{
  • "Pagination": {
    }
}

Response samples

Content type
application/json
{
  • "Data": {
    },
  • "Count": 0
}

Agency

Returns the agency leads based on search criteria and pagination info.

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.

Authorizations:
Request Body schema: application/json

Search Criteria request accepts the pagination parameters as well as search parameters

required
object (SearchCriteria)
object (Pagination)

Responses

Request samples

Content type
application/json
{
  • "SearchCriteria": {
    },
  • "Pagination": {
    }
}

Response samples

Content type
application/json
{
  • "Data": {
    },
  • "Count": 0
}

Seller

Returns the seller leads based on search criteria and pagination info.

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.

Authorizations:
Request Body schema: application/json

Search Criteria request accepts the pagination parameters as well as search parameters

required
object (SearchCriteria)
object (Pagination)

Responses

Request samples

Content type
application/json
{
  • "SearchCriteria": {
    },
  • "Pagination": {
    }
}

Response samples

Content type
application/json
{
  • "Data": {
    },
  • "Count": 0
}

PropertySearch

Returns the PropertySearch leads based on search criteria and pagination info.

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.

Authorizations:
Request Body schema: application/json

Search Criteria request accepts the pagination parameters as well as search parameters

required
object (SearchCriteria)
object (Pagination)

Responses

Request samples

Content type
application/json
{
  • "SearchCriteria": {
    },
  • "Pagination": {
    }
}

Response samples

Content type
application/json
{
  • "Data": {
    },
  • "Count": 0
}