メインコンテンツへスキップ
POST
/
identity-providers
/
{idp_id}
/
provisioning
/
scim-tokens
TypeScript
import { MyOrganizationClient } from "github.com/auth0/myorganization-js";

async function main() {
    const client = new MyOrganizationClient({
        token: "<token>",
    });
    await client.organization.identityProviders.provisioning.scimTokens.create("idp_id", {
        tokenLifetime: 86400,
    });
}
main();
{
  "token_id": "tok_tuz8H9hWQ8LaCkdh",
  "token": "tok_tuz8H9hWQ8LaCkdh....",
  "created_at": "2025-04-11T20:11:45.431Z",
  "valid_until": "2025-04-12T20:11:45.431Z"
}

承認

Authorization
string
header
必須

The access token received from the authorization server in the OAuth 2.0 flow.

パスパラメータ

idp_id
string
必須

Identity provider identifier.

Pattern: ^con_[A-Za-z0-9]{16}$

ボディ

application/json
token_lifetime
integer

Lifetime of the token in seconds. Do not set for non-expiring tokens.

レスポンス

Provisioning SCIM token successfully created.

token_id
string
必須

The token identifier.

created_at
string<date-time>
必須

The token's created at timestamp.

token
string
必須

The SCIM client's token.

scopes
string[]

The token's scopes.

valid_until
string<date-time>

The token's valid until at timestamp (will not exist for non-expiring tokens).