メインコンテンツへスキップ
GET
https://{tenantDomain}/api/v2
/
sessions
/
{id}
Go
package example

import (
    context "context"

    client "github.com/auth0/go-auth0/management/management/client"
    option "github.com/auth0/go-auth0/management/management/option"
)

func do() {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    client.Sessions.Get(
        context.TODO(),
        "id",
    )
}
{
  "authenticated_at": "2023-11-07T05:31:56Z",
  "authentication": {
    "methods": [
      {
        "name": "<string>",
        "timestamp": "2023-11-07T05:31:56Z",
        "type": "<string>"
      }
    ]
  },
  "clients": [
    {
      "client_id": "<string>"
    }
  ],
  "cookie": {},
  "created_at": "2023-11-07T05:31:56Z",
  "device": {
    "initial_asn": "<string>",
    "initial_ip": "<string>",
    "initial_user_agent": "<string>",
    "last_asn": "<string>",
    "last_ip": "<string>",
    "last_user_agent": "<string>"
  },
  "expires_at": "2023-11-07T05:31:56Z",
  "id": "<string>",
  "idle_expires_at": "2023-11-07T05:31:56Z",
  "last_interacted_at": "2023-11-07T05:31:56Z",
  "session_metadata": {},
  "updated_at": "2023-11-07T05:31:56Z",
  "user_id": "<string>"
}

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

パスパラメータ

id
string
必須

取得するセッションの ID

レスポンス

セッションが取得されました

authenticated_at

セッションが作成された日時

authentication
object

ログインフロー中に取得された認証シグナルの詳細

clients
object[]

セッションのクライアント詳細の一覧

[非公開早期アクセス] セッションクッキーの設定。

created_at

セッションが作成された日時

device
object

セッションで使用されたデバイスに関するメタデータ

expires_at

セッションが作成された日時

id
string

セッションの ID

idle_expires_at

セッションが作成された日時

last_interacted_at

セッションが作成された日時

session_metadata
object

セッションに関連付けられたメタデータ。文字列値(最大 255 文字)を持つオブジェクトの形式です。メタデータのプロパティは最大 25 個まで指定できます。

updated_at

セッションが作成された日時

user_id
string

他の API の操作時に使用できるユーザー ID。