Solved

Send Message with API

  • 18 April 2023
  • 1 reply
  • 156 views

Badge +1

Hello

I am trying to create a conversation with tags  but getting response is_inbound : false  not get any message please help regarding  this issue solved 
check below 


{
    "_links": {
        "self": "https://abcd.api.frontapp.com/messages/msg_1mabcd",
        "related": {
            "conversation": "https://abcd.api.frontapp.com/conversations/cnv_abcd",
            "message_seen": "https://abcd.api.frontapp.com/messages/msg_abcd/seen"
        }
    },
    "id": "msg_1m5lzwnm",
    "type": "custom",
 
  "is_inbound": false,
    "created_at": 1681814409.457,
    "blurb": "",
    "body": "This is an SMS message with an attached photo of a cat",
    "text": "This is an SMS message with an attached photo of a cat",
    "error_type": null,
    "version": "b43db466d7f0c5dabcd6bd9c2cf0-7291346-1681814409457-7fc4",
    "subject": "",
    "draft_mode": "private",
    "metadata": {
        "headers": {
            "in_reply_to": null
        }
    },
    "author": null,
    "recipients": [
        {
            "_links": {
                "related": {
                    "contact": null
                }
            },
            "name": null,
            "handle": "efb3c9babcd0ab2",
            "role": "from"
        },
        {
            "_links": {
                "related": {
                    "contact": "https://abcd.api.frontapp.com/contacts/crd_abcd"
                }
            },
            "name": null,
            "handle": "viral@abcd.io",
            "role": "to"
        }
    ],
    "attachments": [
        {
            "id": "fil_3awg8j6a",
            "url": "https://abcd.api.frontapp.com/download/fil_3awabcd",
            "filename": "cbimage.png",
            "content_type": "image/png",
            "size": 4255,
            "metadata": {
                "is_inline": false
            }
        }
    ],
    "signature": null,
    "is_draft": true,
    "conversation_reference": "b43db466d7f0c5d3abcdc2cf0@frontapp.com",
    "message_uid": "b43db466d7f0c5abcdd9c2cf0",
    "status": "accepted"
}   

 

 

icon

Best answer by jason 18 April 2023, 19:29

View original

1 reply

Userlevel 4
Badge +7

Hi Viral,

I see from your screenshot that you’re calling the `channels/:channel_id/messages` endpoint (see docs), which is the Send a message endpoint - this sends outbound messages only, so this endpoint will never produce an inbound message.

Note; Front’s definitions for inbound vs outbound:

  • Inbound - a message from an external sender, to a Front Channel.
  • Outbound - a message from a Front channel to an external recipient.

Could you share in a little more detail what you’re trying to build here? If you need to share any sensitive data, feel free to reach out directly to api@frontapp.com and we’ll be happy to inspect your account configuration. 

Reply