Adaptive Card API
Adaptive Card related endpoints
getCardById
GET https://api.looply.io/v1/adaptive-cards/getCardById
Returns the Adaptive Card JSON Payload and related data.
Query Parameters
card_id*
String
id for the card
card_version*
String
version of the card
Headers
x-api-key*
String
Your API Key
Example Payload
{
"message": "success",
"item": {
"organization_id": "****",
"created_by": "****",
"status": "DRAFT",
"modified_by": "****",
"workflow_version": 1,
"card_id": "****",
"workflow_id": "****",
"card_name": "Card Name",
"modified_on": 1697454380810,
"status_version": "DRAFT-1",
"latest": "true",
"card_payload": {
// Adaptive Card JSON Payload
},
"card_version": 1,
"workspace_id": "****",
"created_on": 1695034193817
}
}
getLatestActiveCard
GET https://api.looply.io/v1/adaptive-cards/getLatestActiveCard
Returns the latest active card.
Query Parameters
card_id*
String
id for the card
Example Payload:
{
"message": "success",
"item": {
"organization_id": "****",
"created_by": "****",
"status": "DRAFT",
"modified_by": "****",
"workflow_version": 1,
"card_id": "****",
"workflow_id": "****",
"card_name": "Card Name",
"modified_on": 1697454380810,
"status_version": "DRAFT-1",
"latest": "true",
"card_payload": {
// Adaptive Card JSON Payload
},
"card_version": 1,
"workspace_id": "****",
"created_on": 1695034193817
}
}getOrganizationCards
GET https://api.looply.io/v1/adaptive-cards/getOrganizationCards
Returns a list of all the cards created in the organization. Will return a lastKey attribute. Use this to get the next page of data.
Limit can be added to the request, 30 is the max.
Query Parameters
limit
String
Number of items to return per page. Default 20
card_id
String
Pagination Key from the lastKey attribute
card_version
String
Pagination Key from the lastKey attribute
Headers
x-api-key*
String
Your API Key
Example Payload:
{
"message": "success",
"count": 20,
"items": [
{
"card_name": "Card name",
"status_version": "DRAFT-1",
"organization_id": "****",
"latest": "true",
"created_by": "****",
"status": "DRAFT",
"card_version": 1,
"card_id": "****",
"workspace_id": "****",
"created_on": 1693234726646
}
],
"lastKey": {
"organization_id": "****",
"card_id": "****",
"card_version": 1
}
}
Last updated