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

# GET (/users/me)

> GET (/users/me)

# GET (/users/me)

ユーザーの XUID を知る必要なく、現在のユーザーの [PresenceRecord](https://docs.xbox.com/ja-jp/reference/live/rest/json/json-presencerecord.md) を取得します。
これらの URI のドメインは `userpresence.xboxlive.com` です。

* [クエリ文字列パラメーター](#ID4EZ)
* [認可](#ID4EIC)
* [必須リクエスト ヘッダー](#ID4ELD)
* [オプションのリクエスト ヘッダー](#ID4EPF)
* [リクエスト本文](#ID4EPG)
* [レスポンス本文](#ID4E1G)

## クエリ文字列パラメーター

| Parameter | Type | Description |
| - | - | - |
| level | string | オプション。<ul><li>**user**: ユーザー ノードのみを返します。</li><li>**device**: ユーザー ノードとデバイス ノードを返します。</li><li>**title**: 既定値。アクティビティを除くツリー全体を返します。</li><li>**all**: アクティビティ レベルのプレゼンスを含む、ツリー全体を返します。</li></ul> |

## 認可

\| Type| Required| Description| Response if missing|
\| --- | --- | --- | --- | --- | --- | --- |
\| XUID| Yes| 呼び出し元の XBOX User ID (XUID)| 403 Forbidden|

## 必須リクエスト ヘッダー

\| Header| Type| Description|
\| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
\| Authorization| string| HTTP 認証用の認証資格情報。値の例: "XBL3.0 x=\<userhash>;\<token>"。|
\| x-xbl-contract-version| string| リクエストのルーティング先となる XBOX LIVE サービスのビルド名/番号。ヘッダーの有効性、認証トークン内のクレームなどを検証した後にのみ、リクエストはそのサービスにルーティングされます。値の例: 3、vnext。|
\| Accept| string| 受け入れ可能な Content-Type。Presence がサポートするのは application/json のみですが、ヘッダーで指定する必要があります。|
\| Accept-Language| string| レスポンスの文字列に対して受け入れ可能なロケール。値の例: en-US。|
\| Host| string| サーバーのドメイン名。値の例: presencebeta.xboxlive.com。|

## オプションのリクエスト ヘッダー

\| Header| Type| Description|
\| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
\| X-RequestedServiceVersion|  | リクエストのルーティング先となる XBOX LIVE サービスのビルド名/番号。ヘッダーの有効性、認証トークン内のクレームなどを検証した後にのみ、リクエストはそのサービスにルーティングされます。既定値: 1。|

## リクエスト本文

このリクエストの本文にはオブジェクトは送信されません。

## レスポンス本文

### レスポンス例

このメソッドは [PresenceRecord](https://docs.xbox.com/ja-jp/reference/live/rest/json/json-presencerecord.md) を返します。

```cpp theme={null}
{
  xuid:"0123456789",
  state:"online",
  devices:
  [{
    type:"D",
    titles:
    [{
      id:"12341234",
      name:"Contoso 5",
      state:"active",
      placement:"fill",
      timestamp:"2012-09-17T07:15:23.4930000",
      activity:
      {
        richPresence:"Team Deathmatch on Nirvana"
      }
    },
    {
      id:"12341235",
      name:"Contoso Waypoint",
      timestamp:"2012-09-17T07:15:23.4930000",
      placement:"snapped",
      state:"active",
      activity:
      {
        richPresence:"Using radar"
      }
    }]
  },
  {
    type:W8,
    titles:
    [{
      id:"23452345",
      name:"Contoso Gamehelp",
      state:"active",
      placement:"full",
      timestamp:"2012-09-17T07:15:23.4930000",
      activity:
      {
        richPresence:"Nirvana page",
      }
    }]
  }]
}

```

## 関連項目

##### 親

[/users/me](https://docs.xbox.com/ja-jp/reference/live/rest/uri/presence/uri-usersme.md)


## Related topics

- [/users/me](https://docs.xbox.com/ja-jp/reference/live/rest/uri/presence/uri-usersme.md)
- [PresenceRecord (JSON)](https://docs.xbox.com/ja-jp/reference/live/rest/json/json-presencerecord.md)
- [GET (/users/me/inventory)](https://docs.xbox.com/ja-jp/reference/live/rest/uri/marketplace/uri-inventoryget.md)
- [/users/me/inventory](https://docs.xbox.com/ja-jp/reference/live/rest/uri/marketplace/uri-inventory.md)
- [GET (/users/me/groups/{moniker} )](https://docs.xbox.com/ja-jp/reference/live/rest/uri/presence/uri-usersmegroupsmonikerget.md)
