> For the complete documentation index, see [llms.txt](https://www.openhue.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.openhue.io/api/openhue-api-1/auth.md).

# Auth

Authentication operations.

## Authenticate

> Authenticate to retrieve the HUE application key. Requires to go and press the button on the bridge

```json
{"openapi":"3.0.3","info":{"title":"Hue CLIP API","version":"v2"},"tags":[{"name":"Auth","description":"Authentication operations."}],"servers":[{"url":"https://{bridgeInternalIPAddress}","description":"Your Home Bridge","variables":{"bridgeInternalIPAddress":{"default":"192.168.1.0","description":"Use the broker server discover process by visiting https://discovery.meethue.com\nto discover the IP address of the bridge on your network\n"}}}],"paths":{"/api":{"post":{"operationId":"authenticate","summary":"Authenticate","description":"Authenticate to retrieve the HUE application key. Requires to go and press the button on the bridge","tags":["Auth"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"devicetype":{"type":"string"},"generateclientkey":{"type":"boolean"}}}}}},"responses":{"200":{"description":"Authentication Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/response"}}}},"401":{"$ref":"#/components/responses/Unauthorized"}}}}},"components":{"schemas":{"response":{"type":"array","minItems":1,"maxItems":1,"items":{"type":"object","properties":{"success":{"type":"object","properties":{"username":{"type":"string"},"clientkey":{"type":"string"}}},"error":{"type":"object","properties":{"type":{"type":"integer"},"address":{"type":"string"},"description":{"type":"string"}}}}}},"ErrorResponse":{"type":"object","required":["errors"],"properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"}}}},"Error":{"type":"object","required":["description"],"properties":{"description":{"type":"string","description":"a human-readable explanation specific to this occurrence of the problem."}}}},"responses":{"Unauthorized":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://www.openhue.io/api/openhue-api-1/auth.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
