メインコンテンツへスキップ
GET
https://{tenantDomain}/api/v2
/
refresh-tokens
/
{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.RefreshTokens.Get(
        context.TODO(),
        "id",
    )
}
{
  "client_id": "<string>",
  "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_exchanged_at": "2023-11-07T05:31:56Z",
  "refresh_token_metadata": {},
  "resource_servers": [
    {
      "audience": "<string>",
      "scopes": "<string>"
    }
  ],
  "rotating": true,
  "session_id": "<string>",
  "user_id": "auth0|507f1f77bcf86cd799439020"
}

承認

Authorization
string
header
必須

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

パスパラメータ

id
string
必須

取得するリフレッシュトークンのID

レスポンス

リフレッシュトークンを取得しました

client_id
string

このリフレッシュトークンが付与されているクライアントアプリケーションの ID です。

created_at

リフレッシュトークンが作成された日時

device
object

リフレッシュトークンの発行または交換時に使用されたデバイス

expires_at

リフレッシュトークンが作成された日時

id
string

リフレッシュトークンの ID です。

idle_expires_at

リフレッシュトークンが作成された日時

last_exchanged_at

リフレッシュトークンが作成された日時

refresh_token_metadata
object

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

resource_servers
object[]

この refresh-token に関連付けられたリソースサーバー ID と、それぞれに付与されたスコープの一覧です。

rotating
boolean

このトークンがローテーション型リフレッシュトークンである場合は True です。

session_id
string | null

このリフレッシュトークンの取得に使用された認証済みセッションのID

user_id
string
デフォルト:auth0|507f1f77bcf86cd799439020

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