Chatwoot/app/views/api/v1/accounts/contacts/contactable_inboxes.json.jbuilder
Sojan Jose 45e43b0b89
feat: Contactable Inboxes API (#2101)
- Add endpoint which lists inboxes through which a contact can be contacted
- Conversation creation API auto-creates contact_inbox for specific channels [ Twilio, email, api]
- Ability to send the initial message payload along with the conversation creation
- Fixes #1678 ( issue saving additional attributes for conversation )
2021-04-15 15:13:01 +05:30

8 lines
252 B
Ruby

json.payload do
json.array! @contactable_inboxes do |contactable_inbox|
json.inbox do
json.partial! 'api/v1/models/inbox.json.jbuilder', resource: contactable_inbox[:inbox]
end
json.source_id contactable_inbox[:source_id]
end
end