45e43b0b89
- 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 )
8 lines
252 B
Ruby
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
|