# Create OAuth Credentials

The OAuth credentials are needed to grant the application access to the resources it is going to use. When created you will need to copy the clientid and client secret to the clipboard for entry into the Homey Nest SDM app.&#x20;

{% hint style="info" %}
Click on the link below to start defining your credentials.
{% endhint %}

{% embed url="<https://console.cloud.google.com/apis/credentials/oauthclient>" %}

{% hint style="info" %}
Select <mark style="background-color:blue;">Web Application</mark> as Application Type and provide a <mark style="background-color:blue;">Name</mark> for the credentials. The last thing you need to do is add a URI to the <mark style="background-color:blue;">Authorized redirect URIs</mark> at the bottom of the window. This URI should be on your clipboard already, just paste it.&#x20;

Otherwise it is "<mark style="background-color:blue;"><https://callback.athom.com/oauth2/callback></mark>" do not copy any spaces or quotes into the field.
{% endhint %}

<div align="left"><img src="https://1513258806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FznpQLgVaBkx36i2brOD4%2Fuploads%2F16jQhniokk0HxBh6AQwl%2Fimage.png?alt=media&#x26;token=06402a60-e1f1-4db7-a2b2-b09b372635c9" alt=""></div>

{% hint style="info" %}
After clicking <mark style="background-color:blue;">CREATE</mark> a screen is displayed with your Client ID and Secret. Hit the copy icons for Your Client ID and Your Client Secret.

The client ID ends with apps.googleusercontent.com, if not the app will generate an error for an invalid ID.
{% endhint %}

<div align="left"><img src="https://1513258806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FznpQLgVaBkx36i2brOD4%2Fuploads%2Ft4ak3XoRkOE08TtODxyM%2Fimage.png?alt=media&#x26;token=0d7671e7-7863-4f86-801f-227a0f524a08" alt="OAuth client ID and Secret"></div>

{% hint style="danger" %}
Switch to the Homey Nest SDM app and paste the CLient ID and Secret into the corresponding OAUTH2 Credentials fields
{% endhint %}

<div align="left"><img src="https://1513258806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FznpQLgVaBkx36i2brOD4%2Fuploads%2F6UXNts0oiOauwWkVOYt3%2FScreenshot_20220927-212509_Homey.png?alt=media&#x26;token=bab2e05f-c5e9-4fc0-88f9-5ef3414f7984" alt="Homey Google Nest SDM App"></div>

### Done creating credentials


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://martin-verbeek.gitbook.io/homey-google-nest-sdm/english-guide/app-setup/google-cloud-project/create-oauth-credentials.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
