メインコンテンツへスキップ
GET
https://{tenantDomain}/api/v2
/
refresh-tokens
リフレッシュトークンを取得する
curl --request GET \
  --url https://{tenantDomain}/api/v2/refresh-tokens \
  --header 'Authorization: Bearer <token>'
{
  "next": "<string>",
  "refresh_tokens": [
    {
      "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.

クエリパラメータ

user_id
string
必須

取得するリフレッシュトークンの対象ユーザーのID。必須です。

client_id
string

結果をクライアントIDで絞り込みます。user_id が指定されている場合にのみ有効です。

from
string

選択の開始位置を示す不透明なカーソル(この値自体は含まれません)。24 時間後に有効期限が切れます。前回のレスポンスの next プロパティから取得します。

take
integer

1 ページあたりの結果数。デフォルトは 50 です。

必須範囲: 1 <= x <= 100
fields
string

結果に含める、または除外するフィールドのカンマ区切りリストです(include_fields に指定した値に基づきます)。空のままにすると、すべてのフィールドを取得します。

include_fields
boolean

指定したフィールドを含める(true)か、除外する(false)かを指定します。

レスポンス

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

next
string

結果の次のページに対する "from" クエリパラメーターとして使用するカーソルです。

refresh_tokens
object[]