> ## Documentation Index
> Fetch the complete documentation index at: https://developer.setle.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart - Call To Action

> How to implement a Call To Action to Setle in your app

<Steps>
  <Step title="Retrieve Client Credentials">
    Check that you received a `client_id` and `client_secret` from the Setle team. We will assume it is for the production [environment](/api-reference/environments).

    Haven't received the credentials yet? Please contact the Setle team and [read more about Client Credentials](/api-reference/authentication#client-credentials).
  </Step>

  <Step title="Retrieve an Access Token">
    With these Client Credentials, you can now fetch a new Access Token. Use the `/v1/oauth/token` [API endpoint details](/api-reference/authentication/create).

    Send a POST request to this endpoint with the Client ID and Client Secret to obtain the Bearer token.

    **Sample Request**:

    ```http theme={null}
    POST /v1/oauth/token
    Host: public-api.setle.app
    Content-Type: application/json

    {
      "client_id": "<your_client_id>",
      "client_secret": "<your_client_secret>"
    }
    ```

    Once obtained, use the Bearer token in the headers for subsequent requests.
  </Step>

  <Step title="Retrieve Property Data">
    You now have a valid token. Let's use it to retrieve property data.

    Add the Access Token to the Authorization header as shown below:

    ```json theme={null}
    Authorization: Bearer <token>
    ```

    Then, call the [Estate List](/api-reference/estate/list) `/v1/estate/list` endpoint to retrieve a list of properties along with their details.
  </Step>

  <Step title="Processing Property Data">
    Now that you have retrieved property data, here are some tips on processing it:

    * **CRM Type**: The `estate_provider_type` attribute indicates the CRM type linked to the property.
    * **External ID**: Use this attribute to match the ID from the CRM system with property information in Setle.
    * **Mapping**: Use `estate_provider_type` and `external_id` to correctly map property data in your system.
    * **Renovation Availability**: If the property has a `quality_label` of **D**, it is not suitable for renovation. In this case, disable the button leading to the renovation page.
    * **CTA Implementation**: The `referral_link` attribute can be used to add a Call-To-Action (CTA) to the client’s website, guiding users to specific information or actions.
  </Step>
</Steps>
