Initialize new SSO connector
client.iam.sso.create(SSOCreateParams { account_id, email_domain, begin_verification, use_fedramp_language } params, RequestOptionsoptions?): SSOCreateResponse { id, created_on, email_domain, 4 more }
POST/accounts/{account_id}/sso_connectors
Initialize new SSO connector
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
Accepted Permissions (at least one required)
Initialize new SSO connector
import Cloudflare from 'cloudflare';
const client = new Cloudflare({
apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});
const sso = await client.iam.sso.create({
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
email_domain: 'example.com',
});
console.log(sso.id);{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"success": true,
"result": {
"id": "023e105f4ecef8ad9ca31a8372d0c353",
"created_on": "2025-01-01T12:21:02.0000Z",
"email_domain": "example.com",
"enabled": false,
"updated_on": "2025-01-01T12:21:02.0000Z",
"use_fedramp_language": false,
"verification": {
"code": "cloudflare_dashboard_sso=023e105f4ecef8ad9ca31a8372d0c353",
"status": "pending"
}
}
}Returns Examples
{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"success": true,
"result": {
"id": "023e105f4ecef8ad9ca31a8372d0c353",
"created_on": "2025-01-01T12:21:02.0000Z",
"email_domain": "example.com",
"enabled": false,
"updated_on": "2025-01-01T12:21:02.0000Z",
"use_fedramp_language": false,
"verification": {
"code": "cloudflare_dashboard_sso=023e105f4ecef8ad9ca31a8372d0c353",
"status": "pending"
}
}
}