Workspace and team
Change workspace settings
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the settings:write ability
Body
application/jsoncustomer_facing_namestringThe name customers see instead of the workspace's name. null removes it.
Maximum length: 80
link_safetyobjectShow child attributesHide child attributes
allow_domainsstring[] | nullUp to 500 domains whose links skip the warning; each also covers every name under it, such as ["example.com"]. The list sent replaces the old one.
Maximum items: 500
block_domainsstring[] | nullUp to 500 domains whose links cannot be clicked; each also covers every name under it, such as ["bad.example"]. The list sent replaces the old one.
Maximum items: 500
enabledbooleantrue turns link warnings on, false turns them off. They start on.
strip_inbound_email_linksbooleantrue shows the links in incoming email as plain text until a teammate reveals them; false leaves them as links.
localestringThe fallback language for members and customers, such as en or de.
namestringThe name of the workspace, at most 80 characters.
Maximum length: 80
require_two_factorbooleanCannot be changed through a token: the person must switch it in the app, after confirming their password.
retentionobjectShow child attributesHide child attributes
closed_conversation_daysintegerDays closed conversations are kept, from 30 to 3650, such as 365. null keeps them for ever.
Format: int64
export_daysintegerDays a data export is kept, from 1 to 30, such as 7.
Format: int64
raw_email_daysintegerDays raw email is kept, from 0 to 365, such as 30. 0 removes it at once.
Format: int64
spam_daysintegerDays spam is kept, from 7 to 365, such as 30.
Format: int64
trash_daysintegerDays trash is kept, from 7 to 365, such as 30.
Format: int64
seen_receipt_shows_namebooleanWhether the customer's messenger names the teammate who read their message. Off by default: the customer only learns that the team saw it. Example: true.
seen_receiptsbooleanWhether the customer's messenger is told when the team read their message. On unless turned off. Example: false.
show_viewers_on_listbooleanWhether the inbox list shows which teammates are viewing each conversation. On unless turned off. Example: false.
slugstringThe workspace's address: 3 to 40 lowercase letters, digits and dashes.
Minimum length: 3 · Maximum length: 40
team_mentions_enabledbooleanWhether an internal note may mention a whole team. On unless turned off. Example: false.
test_modebooleanFixed when the workspace is created; sending a different value is refused.
timezonestringAn IANA time zone, such as Europe/Berlin.
undo_send_secondsintegerHow long a reply can be taken back after sending: 0, 5, 10, 20 or 30.
Available options:05102030
Format: int64
Response 200
OKdataobjectrequiredShow child attributesHide child attributes
customer_facing_namestring | nullrequiredThe name customers see for the workspace. Null when they see the workspace's own name.
deleted_atstring | nullrequiredWhen the workspace was moved to the trash. Null while it is not deleted.
Format: date-time
idstringrequiredThe id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
link_safetyobjectrequiredShow child attributesHide child attributes
allow_domainsstring[] | nullrequiredDomains whose links skip the warning; each covers the domain and every name under it. Empty when none.
block_domainsstring[] | nullrequiredDomains whose links cannot be clicked; each covers the domain and every name under it. Empty when none.
enabledbooleanrequiredTrue when links in messages are checked and warned about before opening.
strip_inbound_email_linksbooleanrequiredTrue when links in received email show as plain text until a teammate reveals them.
localestringrequiredThe workspace's language, such as en.
logo_urlstring | nullrequiredWeb address of the workspace's logo on this server. Null when it has none.
namestringrequiredThe workspace's name, 1 to 80 characters.
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
onboardingobjectrequiredShow child attributesHide child attributes
completed_atstring | nullrequiredWhen the workspace finished setup. Null while setup is still under way.
Format: date-time
stepstringrequiredThe setup step the workspace is on: workspace, logo, channels, tags, team, knowledge, test_conversations or done.
purge_afterstring | nullrequiredWhen a deleted workspace is removed for good unless restored. Null while it is not deleted.
Format: date-time
require_two_factorbooleanrequiredTrue when every member must have a second sign-in factor to work in the workspace.
retentionobjectrequiredShow child attributesHide child attributes
changed_atstringWhen the retention periods were last changed; left out if they never were.
Format: date-time
closed_conversation_daysinteger | nullrequiredDays a closed conversation is kept; null when closed conversations are kept for ever.
Format: int64
export_daysintegerrequiredDays a data export is kept; 7 unless the workspace chose otherwise.
Format: int64
raw_email_daysintegerrequiredDays raw email is kept after it is read; 30 unless the workspace chose otherwise.
Format: int64
spam_daysintegerrequiredDays spam is kept; 30 unless the workspace chose otherwise.
Format: int64
trash_daysintegerrequiredDays the trash is kept; 30 unless the workspace chose otherwise.
Format: int64
seen_receipt_shows_namebooleanrequiredTrue when the customer's messenger names the teammate who read their message.
seen_receiptsbooleanrequiredTrue when the customer's messenger is told that the team read their message.
show_viewers_on_listbooleanrequiredTrue when inbox lists show who is viewing each conversation.
slugstringrequiredThe workspace's short name used in its web addresses.
team_mentions_enabledbooleanrequiredTrue when a note may mention a whole team.
test_modebooleanrequiredTrue when the workspace is a test-mode workspace. It is fixed and cannot be changed.
timezonestringrequiredThe workspace's time zone, as an IANA name such as UTC or Europe/Paris.
undo_send_secondsintegerrequiredHow many seconds a reply waits before it leaves, during which its writer can undo it. 5 unless the workspace changed it.
Format: int64
Response error
ErrorcodestringrequiredStable code for programs to tell errors apart, such as validation_failed or internal_error.
errorsobjectEach rejected field mapped to its messages. Only present when the input was invalid.
messagestringrequiredWhat went wrong, in words safe to show a person.