# Parties

The Party API provides a single, platform level party system. Players can stay in the same party even if they are not in the same server or the same game. You can access party information using `Platform.Server.Party` and `Platform.Client.Party`. You can invite or remove players from a party in `Platform.Client.Party`.

* Players are always in a party when online. By default, a player will be in a party by themselves.
* A player's party can change at any time.

{% hint style="info" %}
If you're looking to create your own party or group system in a game, checkout [Matchmaking Groups](/platform-services/matchmaking.md#groups). Matchmaking groups gives your game full control over how players are grouped and can be used even if you don't need matchmaking services.
{% endhint %}

## Common Patterns

```typescript
// Get a user's party
const party = await Platform.party.GetPartyForUserId(player.userId);
if (!party) return; // No party. The user may have no party if they are offline.

// Party data such as members and leader
const members = party.members;
```


---

# 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.airship.gg/platform-services/parties.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.
