You can create more than one website inbox in each account
curl --request POST \
--url https://app.chatwoot.com/api/v1/accounts/{account_id}/inboxes/ \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '{
"name": "Support",
"greeting_enabled": true,
"greeting_message": "Hello, how can I help you?",
"enable_email_collect": true,
"csat_survey_enabled": true,
"enable_auto_assignment": true,
"working_hours_enabled": true,
"out_of_office_message": "We are currently out of office. Please leave a message and we will get back to you.",
"timezone": "America/New_York",
"allow_messages_after_resolved": true,
"lock_to_single_conversation": true,
"portal_id": 1,
"sender_name_type": "friendly",
"business_name": "My Business",
"channel": {
"type": "web_widget",
"website_url": "https://example.com",
"welcome_title": "Welcome to our support",
"welcome_tagline": "We are here to help you",
"widget_color": "#FF5733"
}
}'
{
"id": 123,
"name": "<string>",
"website_url": "<string>",
"channel_type": "<string>",
"avatar_url": "<string>",
"widget_color": "<string>",
"website_token": "<string>",
"enable_auto_assignment": true,
"web_widget_script": "<string>",
"welcome_title": "<string>",
"welcome_tagline": "<string>",
"greeting_enabled": true,
"greeting_message": "<string>",
"channel_id": 123,
"working_hours_enabled": true,
"enable_email_collect": true,
"csat_survey_enabled": true,
"auto_assignment_config": {},
"out_of_office_message": "<string>",
"working_hours": [
{
"day_of_week": 123,
"closed_all_day": true,
"open_hour": 123,
"open_minutes": 123,
"close_hour": 123,
"close_minutes": 123,
"open_all_day": true
}
],
"timezone": "<string>",
"callback_webhook_url": "<string>",
"allow_messages_after_resolved": true,
"lock_to_single_conversation": true,
"sender_name_type": "<string>",
"business_name": "<string>",
"hmac_mandatory": true,
"selected_feature_flags": {},
"reply_time": "<string>",
"messaging_service_sid": "<string>",
"phone_number": "<string>",
"medium": "<string>",
"provider": "<string>"
}
This token can be obtained by visiting the profile page or via rails console. Provides access to endpoints based on the user permissions levels. This token can be saved by an external system when user is created via API, to perform activities on behalf of the user.
The numeric ID of the account
Success
The response is of type object
.
curl --request POST \
--url https://app.chatwoot.com/api/v1/accounts/{account_id}/inboxes/ \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '{
"name": "Support",
"greeting_enabled": true,
"greeting_message": "Hello, how can I help you?",
"enable_email_collect": true,
"csat_survey_enabled": true,
"enable_auto_assignment": true,
"working_hours_enabled": true,
"out_of_office_message": "We are currently out of office. Please leave a message and we will get back to you.",
"timezone": "America/New_York",
"allow_messages_after_resolved": true,
"lock_to_single_conversation": true,
"portal_id": 1,
"sender_name_type": "friendly",
"business_name": "My Business",
"channel": {
"type": "web_widget",
"website_url": "https://example.com",
"welcome_title": "Welcome to our support",
"welcome_tagline": "We are here to help you",
"widget_color": "#FF5733"
}
}'
{
"id": 123,
"name": "<string>",
"website_url": "<string>",
"channel_type": "<string>",
"avatar_url": "<string>",
"widget_color": "<string>",
"website_token": "<string>",
"enable_auto_assignment": true,
"web_widget_script": "<string>",
"welcome_title": "<string>",
"welcome_tagline": "<string>",
"greeting_enabled": true,
"greeting_message": "<string>",
"channel_id": 123,
"working_hours_enabled": true,
"enable_email_collect": true,
"csat_survey_enabled": true,
"auto_assignment_config": {},
"out_of_office_message": "<string>",
"working_hours": [
{
"day_of_week": 123,
"closed_all_day": true,
"open_hour": 123,
"open_minutes": 123,
"close_hour": 123,
"close_minutes": 123,
"open_all_day": true
}
],
"timezone": "<string>",
"callback_webhook_url": "<string>",
"allow_messages_after_resolved": true,
"lock_to_single_conversation": true,
"sender_name_type": "<string>",
"business_name": "<string>",
"hmac_mandatory": true,
"selected_feature_flags": {},
"reply_time": "<string>",
"messaging_service_sid": "<string>",
"phone_number": "<string>",
"medium": "<string>",
"provider": "<string>"
}