Choose your language:
    Generate SSO token
    Returns
    Returns a sso_token object.

    Examples

    Example code:
    const SiteClient = require('datocms-client').SiteClient;
    const client = new SiteClient('YOUR-API-TOKEN');
    client.ssoSettings.generateToken()
    .then((ssoSettings) => {
    console.log(ssoSettings);
    })
    .catch((error) => {
    console.error(error);
    });
    Returned output:
    > node example.js
    {
    "id": "312",
    "scimApiToken": "as3dasjh1234hj1"
    }