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

# Login

### Haiqu Login

#### Haiqu.login(api\_access\_key=None, edge\_uri=None, raise\_on\_error=False)

Log in to the Haiqu cloud environment.

* **Parameters:**
  * **api\_access\_key** (*str* *|* *None*) -- The token to access the Haiqu API. Optional in the Haiqu Lab environment. Defaults to
    `None`, in which case the value will be taken from the `HAIQU_API_KEY` environment
    variable.
  * **edge\_uri** (*str* *|* *None*) -- The network location of the Haiqu API service. Defaults to `None`, which will set it
    automatically to an appropriate value.
  * **raise\_on\_error** (*bool*) -- By default, human-friendly messages are returned. Set this to raise exceptions instead.
* **Returns:**
  Status message.
* **Return type:**
  str

#### Examples

```python theme={null}
>>> haiqu.login(api_access_key="HAIQU123")
'Success: Welcome to the Quantum World, example@haiqu.ai!'
```
