feat: Add inbox details endpoint (#5549)
This change targets the public API and is related to the Inbox with channel type API.
Exposes public inbox details under /public/api/v1/inboxes/{inbox_identifier}. This allows access to feature flags and business hours configured for the inbox.
ref: #5514
This commit is contained in:
3
app/views/public/api/v1/inboxes/show.json.jbuilder
Normal file
3
app/views/public/api/v1/inboxes/show.json.jbuilder
Normal file
@@ -0,0 +1,3 @@
|
||||
json.identifier @inbox_channel.identifier
|
||||
json.identity_validation_enabled @inbox_channel.hmac_mandatory
|
||||
json.partial! 'public/api/v1/models/inbox.json.jbuilder', resource: @inbox_channel.inbox
|
||||
6
app/views/public/api/v1/models/_inbox.json.jbuilder
Normal file
6
app/views/public/api/v1/models/_inbox.json.jbuilder
Normal file
@@ -0,0 +1,6 @@
|
||||
json.name resource.name
|
||||
json.timezone resource.timezone
|
||||
json.working_hours resource.weekly_schedule
|
||||
json.working_hours_enabled resource.working_hours_enabled
|
||||
json.csat_survey_enabled resource.csat_survey_enabled
|
||||
json.greeting_enabled resource.greeting_enabled
|
||||
Reference in New Issue
Block a user