Skip to main content

Settings

Tags: business-hours, configuration, settings, workspace

Workspace configuration and settings management

In the product: Workspace Settings

Resources

Request and response models used by the endpoints on this page.

BusinessHoursStatusResponse

FieldTypeRequiredDescription
isBusinessHoursBoolean

Example:

{
"isBusinessHours": false // Boolean
}

UpdateWorkspaceDefaultsRequest

FieldTypeRequiredDescription
defaultAgentIdInteger
defaultPhoneNumberIdInteger
emailFooterString
enableAudioRecordingBoolean
enableVoicemailDetectionBoolean
escalationBusinessHoursString
escalationNotifiedMessageTemplateString
escalationOfflineMessageTemplateString
escalationOnlineMessageTemplateString
escalationPausedMessageTemplateString
pauseOnEscalateBoolean
shortenUrlsBoolean
transcriptionModelString

Example:

{
"defaultPhoneNumberId": 0 // Integer, optional,
"defaultAgentId": 0 // Integer, optional,
"escalationBusinessHours": "string" // String, optional,
"escalationOnlineMessageTemplate": "string" // String, optional,
"escalationOfflineMessageTemplate": "string" // String, optional,
"escalationNotifiedMessageTemplate": "string" // String, optional,
"escalationPausedMessageTemplate": "string" // String, optional,
"emailFooter": "string" // String, optional,
"pauseOnEscalate": false // Boolean, optional,
"enableAudioRecording": false // Boolean, optional,
"enableVoicemailDetection": false // Boolean, optional,
"shortenUrls": false // Boolean, optional,
"transcriptionModel": "string" // String, optional
}

UpdateWorkspaceFeaturesRequest

FieldTypeRequiredDescription
featuresdict[str, bool]

Example:

{
"features": {} // dict[str, bool]
}

WorkspaceFeatureState

FieldTypeRequiredDescription
categoryString
descriptionString
editableBoolean
enabledBoolean
iconString
nameString
slugString

Example:

{
"slug": "string" // String,
"name": "string" // String,
"description": "string" // String,
"category": "string" // String,
"icon": "string" // String, optional,
"enabled": false // Boolean,
"editable": false // Boolean
}

WorkspaceFeaturesResponse

FieldTypeRequiredDescription
featuresArray

Example:

{
"features": [] // Array<WorkspaceFeatureState>
}

WorkspaceSettingsResponse

FieldTypeRequiredDescription
defaultAgentIdInteger
defaultChatModelString
defaultInferenceModelString
defaultPhoneNumberIdInteger
defaultRealtimeModelString
defaultVoiceModelString
emailFooterString
enableAudioRecordingBoolean
enableVoicemailDetectionBoolean
escalationBusinessHoursString
escalationNotifiedMessageTemplateString
escalationOfflineMessageTemplateString
escalationOnlineMessageTemplateString
escalationPausedMessageTemplateString
firstRunModeString
idInteger
pauseOnEscalateBoolean
sesDomainString
shortenUrlsBoolean
shortenUrlsAvailableBoolean
shortenUrlsExampleUrlString
slugString
transcriptionModelString
workspaceFolderIdInteger

Example:

{
"id": 0 // Integer,
"slug": "string" // String,
"defaultPhoneNumberId": 0 // Integer,
"defaultAgentId": 0 // Integer,
"workspaceFolderId": 0 // Integer, optional,
"escalationBusinessHours": "string" // String,
"escalationOnlineMessageTemplate": "string" // String,
"escalationOfflineMessageTemplate": "string" // String,
"escalationNotifiedMessageTemplate": "string" // String,
"escalationPausedMessageTemplate": "string" // String,
"emailFooter": "string" // String,
"pauseOnEscalate": false // Boolean,
"sesDomain": "string" // String,
"enableAudioRecording": false // Boolean,
"enableVoicemailDetection": false // Boolean,
"shortenUrls": false // Boolean,
"shortenUrlsExampleUrl": "string" // String,
"shortenUrlsAvailable": false // Boolean,
"transcriptionModel": "string" // String, optional,
"defaultChatModel": "string" // String,
"defaultRealtimeModel": "string" // String,
"defaultInferenceModel": "string" // String,
"defaultVoiceModel": "string" // String,
"firstRunMode": "string" // String, optional
}

Endpoints

Business Hours Status

GET /api/v2/w/{workspace_uuid}/business-hours-status

Description:

Get current business hours status

Get the current business hours status for the workspace.

Authorization: Requires workspace:read scope

Response: See BusinessHoursStatusResponse


Defaults

GET /api/v2/w/{workspace_uuid}/defaults

Description:

Get workspace default settings

Get the default settings for a workspace.

If no settings row exists yet, returns workspace defaults. The row is created on the first update.

Authorization: Requires workspace:read scope

Response: See WorkspaceSettingsResponse


Update Defaults

PUT /api/v2/w/{workspace_uuid}/defaults

Description:

Update workspace default settings

Update default settings for a workspace.

Authorization: Requires workspace:write scope

Parameters:

Response: See WorkspaceSettingsResponse


Features

GET /api/v2/w/{workspace_uuid}/features

Description:

Features this workspace's plan allows, and whether each one is on.

Each entry carries editable: false means an administrator has locked the feature and a change to it will be refused.

Gated on WORKSPACE_WRITE rather than a read scope on purpose: this is the settings surface, and everything it lists is something the caller is about to be offered a toggle for. A member who cannot change any of it has no use for the list.

Authorization: Requires workspace:write scope

Response: See WorkspaceFeaturesResponse


Update Features

PUT /api/v2/w/{workspace_uuid}/features

Description:

Turn plan-allowed features on or off for this workspace.

A feature the org plan does not include is a 400. A feature an administrator has locked is a 403; the response says which and why.

Authorization: Requires workspace:write scope

Parameters:

Response: See WorkspaceFeaturesResponse


First Run State

GET /api/v2/w/{workspace_uuid}/first-run-state

Authorization: Requires workspace:read scope

Response: See FirstRunState


Update First Run State

PUT /api/v2/w/{workspace_uuid}/first-run-state

Authorization: Requires workspace:write scope

Parameters:

  • request (FirstRunState)

Response: See FirstRunState