メインコンテンツへスキップ
GET
https://{tenantDomain}/api/v2
/
verifiable-credentials
/
verification
/
templates
Go
package example

import (
    context "context"

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

func do() {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    request := &verification.ListVerifiableCredentialTemplatesRequestParameters{
        From: management.String(
            "from",
        ),
        Take: management.Int(
            1,
        ),
    }
    client.VerifiableCredentials.Verification.Templates.List(
        context.TODO(),
        request,
    )
}
{
  "next": "<string>",
  "templates": [
    {
      "created_at": "2021-01-01T00:00:00Z",
      "custom_certificate_authority": "<string>",
      "dialect": "simplified/1.0",
      "id": "vct_0000000000000001",
      "name": "<string>",
      "presentation": {
        "org.iso.18013.5.1.mDL": {
          "org.iso.18013.5.1": {
            "age_birth_year": true,
            "age_in_years": true,
            "birth_date": true,
            "driving_privileges": true,
            "expiry_date": true,
            "family_name": true,
            "family_name_national_character": true,
            "given_name": true,
            "given_name_national_character": true,
            "issue_date": true,
            "issuing_authority": true,
            "issuing_country": true,
            "issuing_jurisdiction": true,
            "nationality": true,
            "portrait": true,
            "portrait_capture_date": true,
            "resident_address": true,
            "resident_city": true,
            "resident_country": true,
            "resident_postal_code": true,
            "resident_state": true
          }
        }
      },
      "type": "mdl",
      "updated_at": "2021-01-01T00:00:00Z",
      "well_known_trusted_issuers": "<string>"
    }
  ]
}

承認

Authorization
string
header
必須

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

クエリパラメータ

from
string

選択の開始位置となる任意の Id。

take
integer

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

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

レスポンス

テンプレートを正常に取得しました。

next
string | null

結果の次のページの from クエリパラメーターで使用する不透明な識別子。
この識別子は 24 時間有効です。

templates
object[]