cURL
curl --request POST \ --url 'https://actionkit.useparagon.com/projects/{project_id}/actions/#TEAMS_SEND_MESSAGE_IN_CHANNEL' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "action": "TEAMS_SEND_MESSAGE_IN_CHANNEL", "parameters": { "channel": "<string>", "message": "<string>", "summary": "<string>", "attachments": {}, "attachmentLayout": "carousel" } } '
Your Paragon User Token (JWT), which you can generate using your project's signing keys.
Your Paragon Project ID. You can copy your Project ID from your dashboard URL or by clicking Copy Project ID under the Environment switcher.
Show child attributes
Specify the channel id to send the message to. Use the TEAMS_CHANNEL_LIST intent to retrieve a list of available channel ids.
Message : Plaintext/HTML representation of the content of the chat message.
Summary : Summary text of the chat message that could be used for push notifications and summary views or fall back views.
Chat Recipient : A JSON list of attachments, such as images, videos, or rich cards. View the attachment objects available in the Microsoft Teams docs. (https://learn.microsoft.com/en-us/azure/bot-service/rest-api/bot-framework-rest-connector-api-reference?view=azure-bot-service-4.0#attachment-object) (example: "[ { "contentType": "application/vnd.microsoft.card.adaptive", "content": { "type": "AdaptiveCard", "version": "1.0", "body": [ { "type": "TextBlock", "text": "Hello World!", "size": "large" }, { "type": "TextBlock", "text": "Sincerely yours," }, { "type": "TextBlock", "text": "Adaptive Cards", "separation": "none" } ], "actions": [ { "type": "Action.OpenUrl", "url": "http://adaptivecards.io", "title": "Learn More" } ] } } ]")
Attachment Layout : If adding multiple attachments, specify a layout to use when rendering the message.
carousel
list
Success
Was this page helpful?