Passer au contenu principal
GET
https://{tenantDomain}/api/v2
/
token-exchange-profiles
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"
)

func do() {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    request := &management.TokenExchangeProfilesListRequest{
        From: management.String(
            "from",
        ),
        Take: management.Int(
            1,
        ),
    }
    client.TokenExchangeProfiles.List(
        context.TODO(),
        request,
    )
}
{
  "next": "<string>",
  "token_exchange_profiles": [
    {
      "action_id": "<string>",
      "created_at": "2024-01-01T00:00:00.000Z",
      "id": "<string>",
      "name": "Token Exchange Profile 1",
      "subject_token_type": "<string>",
      "updated_at": "2024-01-01T00:00:00.000Z"
    }
  ]
}

Autorisations

Authorization
string
header
requis

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

Paramètres de requête

from
string

Id facultatif à partir duquel commencer la sélection.

take
integer

Nombre de résultats par page. La valeur par défaut est 50.

Plage requise: 1 <= x <= 100

Réponse

Profil d’échange de jetons récupéré avec succès.

next
string

Identifiant opaque à utiliser avec le paramètre de requête from pour la page de résultats suivante.
Cet identifiant est valide pendant 24 heures.

token_exchange_profiles
object[]