primary_button_color
String
Primary button color for Connect Webviews in the new workspace. See also Customize the Look and Feel of Your Connect Webviews.
Creates a new workspace.
Creates a new sandbox workspace.
Code
await seam.workspaces.create({
name: "My Sandbox Workspace",
company_name: "Acme",
connect_partner_name: "Acme",
is_sandbox: true,
webview_primary_button_color: "#232426",
webview_primary_button_text_color: "#FFFDE7",
webview_logo_shape: "circle",
webview_success_message:
"Your account has been successfully connected to Acme!",
connect_webview_customization: {
inviter_logo_url:
"https://connect.getseam.com/internal/images/view?image_id=1de135fa-f0c2-4e57-90d0-6b9a7d090a0c",
logo_shape: "circle",
primary_button_color: "#232426",
primary_button_text_color: "#FFFDE7",
success_message: "Your account has been successfully connected to Acme!",
},
});
Output
{
"company_name": "Acme",
"connect_partner_name": "Acme",
"connect_webview_customization": {
"inviter_logo_url": "https://connect.getseam.com/internal/images/view?image_id=1de135fa-f0c2-4e57-90d0-6b9a7d090a0c",
"logo_shape": "circle",
"primary_button_color": "#232426",
"primary_button_text_color": "#FFFDE7",
"success_message": "Your account has been successfully connected to Acme!"
},
"is_sandbox": true,
"is_suspended": false,
"name": "My Sandbox Workspace",
"workspace_id": "6a0b6282-6a98-4fef-811e-0904c485ac7a"
}
name
String (Required)
Name of the new workspace.
company_name
String
Company name for the new workspace.
connect_partner_name
String
Connect partner name for the new workspace.
connect_webview_customization
Object
Connect Webview customizations for the new workspace. See also Customize the Look and Feel of Your Connect Webviews.
is_sandbox
Boolean
Indicates whether the new workspace is a sandbox workspace.
webview_logo_shape
String
webview_primary_button_color
String
webview_primary_button_text_color
String
webview_success_message
String
{
"company_name": "Acme",
"connect_partner_name": "Acme",
"connect_webview_customization": {
"inviter_logo_url": "https://connect.getseam.com/internal/images/view?image_id=1de135fa-f0c2-4e57-90d0-6b9a7d090a0c",
"logo_shape": "circle",
"primary_button_color": "#232426",
"primary_button_text_color": "#FFFDE7",
"success_message": "Your account has been successfully connected to Acme!"
},
"is_sandbox": false,
"is_suspended": false,
"name": "My Production Workspace",
"workspace_id": "6a0b6282-6a98-4fef-811e-0904c485ac7a"
}
Creates a new production workspace.
Code
await seam.workspaces.create({
name: "My Production Workspace",
company_name: "Acme",
connect_partner_name: "Acme",
is_sandbox: false,
webview_primary_button_color: "#232426",
webview_primary_button_text_color: "#FFFDE7",
webview_logo_shape: "circle",
webview_success_message:
"Your account has been successfully connected to Acme!",
connect_webview_customization: {
inviter_logo_url:
"https://connect.getseam.com/internal/images/view?image_id=1de135fa-f0c2-4e57-90d0-6b9a7d090a0c",
logo_shape: "circle",
primary_button_color: "#232426",
primary_button_text_color: "#FFFDE7",
success_message: "Your account has been successfully connected to Acme!",
},
});
Output
{
"company_name": "Acme",
"connect_partner_name": "Acme",
"connect_webview_customization": {
"inviter_logo_url": "https://connect.getseam.com/internal/images/view?image_id=1de135fa-f0c2-4e57-90d0-6b9a7d090a0c",
"logo_shape": "circle",
"primary_button_color": "#232426",
"primary_button_text_color": "#FFFDE7",
"success_message": "Your account has been successfully connected to Acme!"
},
"is_sandbox": true,
"is_suspended": false,
"name": "My Sandbox Workspace",
"workspace_id": "6a0b6282-6a98-4fef-811e-0904c485ac7a"
}
Last updated
Was this helpful?