cURL
curl --request POST \ --url 'https://actionkit.useparagon.com/projects/{project_id}/actions/#TEAMS_SEND_MESSAGE_IN_CHAT' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "action": "TEAMS_SEND_MESSAGE_IN_CHAT", "parameters": { "chatRecipient": "<string>", "message": "<string>", "subject": "<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 workspace member to send the chat message to. Format: "{{chatType}}|{{id}}". Use the TEAMS_MEMBER_LIST intent to get the member id and chatType.
Message : Plaintext/HTML representation of the content of the chat message.
Subject : The subject of the chat message, in plaintext.
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?