search
API
https://jwtsign.objml.com/api/adaptiveCard/v1/sign
POST to this address with a JSON Body containing the following parameters:
- Header
- hAlg: Algorithm
- hTyp: Type
- Payload
- pSender: Sender email address
- pOriginator: Azure SubscriptionId
- pRecipientsSerialized: Array of recipients, serialized
- pAdaptiveCardSerialized: AdaptiveCard, serialized
- pIat: Unix Time that card was signed. Leave blank for server time.
Example:
{ "hAlg": "RS256", "hTyp": "JWT", "pSender": "[email protected]", "pOriginator": "........-....-....-....-............", "pRecipientsSerialized": "[\"[email protected]\",\"[email protected]\"]", "pAdaptiveCardSerialized": "{\"$schema\":\"http://adaptivecards.io/schemas/adaptive-card.json\",\"type\":\"AdaptiveCard\",\"version\":\"1.0\",\"body\":[{\"size\":\"large\",\"text\":\"Hello Actionable message\",\"wrap\":true,\"type\":\"TextBlock\"}],\"actions\":[{\"type\":\"Action.InvokeAddInCommand\",\"title\":\"Open Actionable Messages Debugger\",\"addInId\":\"3d1408f6-afb3-4baf-aacd-55cd867bb0fa\",\"desktopCommandId\":\"amDebuggerOpenPaneButton\"}]}" }
Returns:
- Header: Accept: text/html =>
<section itemscope itemtype="http://schema.org/SignedAdaptiveCard"> <meta itemprop="@context" content="http://schema.org/extensions" /> <meta itemprop="@type" content="SignedAdaptiveCard" /> <div itemprop="signedAdaptiveCard" style="mso-hide:all;display:none;max-height:0px;overflow:hidden;">[...SIGNEDPAYLOAD....]</div> </section>
- Header: Accept: application/json =>
{ success: true, signedCardPayload: [...SIGNEDPAYLOAD....] }