# APIs

You can access the **coherence Cloud** features from the **Unity SDK** via the **CloudService** instance, which can be acquired via the [Services](https://unityapi.coherence.io/docs/v2.1.0/api/Coherence.Cloud.PlayerAccount.Services.html#Coherence_Cloud_PlayerAccount_Services) property of a PlayerAccount object.

You can acquire a reference to a PlayerAccount first by logging in using [CoherenceCloud](https://unityapi.coherence.io/docs/v2.1.0/api/Coherence.Cloud.CoherenceCloud.html) (see [Worlds ](/hosting/coherence-cloud/coherence-cloud-apis/worlds.md)and [Rooms ](/hosting/coherence-cloud/coherence-cloud-apis/rooms.md)example code for an example), and then by using [PlayerAccount.GetMainAsync](https://unityapi.coherence.io/docs/v2.1.0/api/Coherence.Cloud.PlayerAccount.GetMainAsync.html).

Through the **CloudService** instance, you will be able to fetch the existing [Worlds](/hosting/coherence-cloud/manage-worlds.md) of your project, create new [Rooms](/hosting/coherence-cloud/configure-rooms.md), delete and fetch existing [Rooms](/hosting/coherence-cloud/configure-rooms.md), as well as access the various available [Game Services](/hosting/coherence-cloud/game-services.md).

In the subsections of this page, you will be able to find detailed usage examples of each feature from the [**CloudService** API](https://unityapi.coherence.io/docs/v2.1.0/api/Coherence.Cloud.CloudService.html).

### CoherenceBridge Cloud Settings

In the inspector of a [CoherenceBridge](/manual/components/coherence-bridge.md) instance, you will find two settings related to the **coherence Cloud**:

<figure><img src="/files/rMOspAgmKl07o4KOk6XI" alt=""><figcaption><p>coherence Bridge Inspector</p></figcaption></figure>

* **Player Account**:
  * If set to *Auto Login As Guest*, the Cloud Service will automatically log in with the coherence Cloud using a guest player account.
  * If set to *Main User*, the Cloud Service will not log in to coherence automatically, but will connect with [*PlayerAccount.Main*](https://unityapi.coherence.io/docs/v2.1.0/api/Coherence.Cloud.PlayerAccount.Main.html) when you start logging in to coherence Cloud manually.
  * If set to *None*, the Cloud Service will not connect with coherence Cloud at all.
* *Cloud Unique ID*: Uniquely identify the Cloud Service used by this CoherenceBridge. This allows multiple Coherence Bridges to auto login as different guests on the same device, which could be useful for local multiplayer. If no Cloud Unique ID is specified for a bridge, one will be autogenerated.


---

# 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://docs.coherence.io/hosting/coherence-cloud/coherence-cloud-apis.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.
