Sorry, no results found for "".

Show examples in:
Javascript HTTP
Endpoint info
Available examples

Content Management API > SSO Settings

Generate SSO token

Returns

Returns a resource object of type sso_token

Examples

1
import { buildClient } from "@datocms/cma-client-node";
2
3
async function run() {
4
const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
5
6
const ssoSettings = await client.ssoSettings.generateToken();
7
8
// Check the 'Returned output' tab for the result ☝️
9
console.log(ssoSettings);
10
}
11
12
run();
1
{ id: "312", scim_api_token: "as3dasjh1234hj1" }